Package com.tailf.dp.annotations
Class SnmpInformResponseCallbackProxy
Object
com.tailf.dp.annotations.SnmpInformResponseCallbackProxy
- All Implemented Interfaces:
DpSnmpInformResponseCallback
Callback proxy for SnmpInformResponse Callbacks. Implements the
DpSnmpInformResponseCallback
interface and delegates calls to the
registered callback POJO with annotated methods- Since:
- 3.2.0
-
Constructor Summary
ConstructorDescriptionSnmpInformResponseCallbackProxy
(Object backupObject, String callPoint) Constructor for Callback proxys. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionCapability
(SnmpInformResponseCBType informCBType) Add action capability from annotated callType used to register capabilities on the servervoid
addActionMethod
(String name, Method method) Add callback action method to proxyRetrieve the callback POJORetrieve the callback callpointstatic SnmpInformResponseCallbackProxy[]
Get array of proxy objects from registered POJO callback.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.
-
Constructor Details
-
SnmpInformResponseCallbackProxy
Constructor for Callback proxys. Used internally.- Parameters:
backupObject
- registered callback POJOcallPoint
- string describing the callpoint for this callback
-
-
Method Details
-
getBackupObject
Retrieve the callback POJO- Returns:
- Object registered callback object
-
getCallPoint
Retrieve the callback callpoint- Returns:
- callpoint string
-
addActionMethod
Add callback action method to proxy- Parameters:
name
- canonical action namemethod
- registered callback method
-
addActionCapability
Add action capability from annotated callType used to register capabilities on the server- Parameters:
informCBType
- action type
-
getSnmpInformResponseCallbackProxys
public static SnmpInformResponseCallbackProxy[] getSnmpInformResponseCallbackProxys(Object obj) throws DpCallbackException Get array of proxy objects from registered POJO callback. Used internally at callback registration- Parameters:
obj
- registered callback POJO- Returns:
- array of SnmpInformResponseCallbackProxy
- Throws:
DpCallbackException
-
id
Description copied from interface:DpSnmpInformResponseCallback
The id of the SNMP inform callback.- Specified by:
id
in interfaceDpSnmpInformResponseCallback
-
mask
public int mask()- Specified by:
mask
in interfaceDpSnmpInformResponseCallback
-
result
Description copied from interface:DpSnmpInformResponseCallback
This callback provides the application with possibility to to take actions based on the result of an inform request for a specific receiver.- Specified by:
result
in interfaceDpSnmpInformResponseCallback
- Parameters:
ref
- A reference assigned by the caller of the SNMP inform request @seeDpSnmpNotifier.send(String, com.tailf.conf.SnmpVarbind[], Integer)
target
- the receiver returning the result.gotResponse
- if we got a response or not from the target.- Throws:
DpCallbackException
- Callback method failed.
-
targets
Description copied from interface:DpSnmpInformResponseCallback
This callback provides the application with possibility to to take actions based on the intended targets of an inform request.- Specified by:
targets
in interfaceDpSnmpInformResponseCallback
- Parameters:
ref
- A reference assigned by thetargets
- the intended receivers of the inform request.- Throws:
DpCallbackException
- Callback method failed.
-