public class SnmpInformResponseCallbackProxy extends Object implements DpSnmpInformResponseCallback
DpSnmpInformResponseCallback
interface and delegates calls to the
registered callback POJO with annotated methodsConstructor and Description |
---|
SnmpInformResponseCallbackProxy(Object backupObject,
String callPoint)
Constructor for Callback proxys.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionCapability(SnmpInformResponseCBType informCBType)
Add action capability from annotated callType used to register
capabilities on the server
|
void |
addActionMethod(String name,
Method method)
Add callback action method to proxy
|
Object |
getBackupObject()
Retrieve the callback POJO
|
String |
getCallPoint()
Retrieve the callback callpoint
|
static SnmpInformResponseCallbackProxy[] |
getSnmpInformResponseCallbackProxys(Object obj)
Get array of proxy objects from registered POJO callback.
|
String |
id()
The id of the SNMP inform callback.
|
int |
mask() |
void |
result(Integer ref,
ConfETuple target,
Boolean gotResponse)
This callback provides the application with possibility to to take
actions based on the result of an inform request for a specific receiver.
|
void |
targets(Integer ref,
ConfETuple[] targets)
This callback provides the application with possibility to to take
actions based on the intended targets of an inform request.
|
public Object getBackupObject()
public String getCallPoint()
public void addActionMethod(String name, Method method)
name
- canonical action namemethod
- registered callback methodpublic void addActionCapability(SnmpInformResponseCBType informCBType)
informCBType
- action typepublic static SnmpInformResponseCallbackProxy[] getSnmpInformResponseCallbackProxys(Object obj) throws DpCallbackException
obj
- registered callback POJODpCallbackException
public String id()
DpSnmpInformResponseCallback
id
in interface DpSnmpInformResponseCallback
public int mask()
mask
in interface DpSnmpInformResponseCallback
public void result(Integer ref, ConfETuple target, Boolean gotResponse) throws DpCallbackException
DpSnmpInformResponseCallback
result
in interface DpSnmpInformResponseCallback
ref
- A reference assigned by the caller of the SNMP inform request @see
DpSnmpNotifier.send(String, com.tailf.conf.SnmpVarbind[], Integer)
target
- the receiver returning the result.gotResponse
- if we got a response or not from the target.DpCallbackException
- Callback method failed.public void targets(Integer ref, ConfETuple[] targets) throws DpCallbackException
DpSnmpInformResponseCallback
targets
in interface DpSnmpInformResponseCallback
ref
- A reference assigned by thetargets
- the intended receivers of the inform request.DpCallbackException
- Callback method failed.