public class SnmpInformResponseCallbackProxy extends Object implements DpSnmpInformResponseCallback
DpSnmpInformResponseCallback interface and delegates calls to the
registered callback POJO with annotated methods| Constructor 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 void addActionCapability(SnmpInformResponseCBType informCBType)
informCBType - action typepublic void addActionMethod(String name, Method method)
name - canonical action namemethod - registered callback methodpublic Object getBackupObject()
public String getCallPoint()
public static SnmpInformResponseCallbackProxy[] getSnmpInformResponseCallbackProxys(Object obj) throws DpCallbackException
obj - registered callback POJODpCallbackExceptionpublic String id()
DpSnmpInformResponseCallbackid in interface DpSnmpInformResponseCallbackpublic int mask()
mask in interface DpSnmpInformResponseCallbackpublic void result(Integer ref, ConfETuple target, Boolean gotResponse) throws DpCallbackException
DpSnmpInformResponseCallbackresult in interface DpSnmpInformResponseCallbackref - 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
DpSnmpInformResponseCallbacktargets in interface DpSnmpInformResponseCallbackref - A reference assigned by thetargets - the intended receivers of the inform request.DpCallbackException - Callback method failed.