|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--com.adventnet.utils.agent.SubAgentPoller
This class is to check whether the SubAgent is alive or not.
This continuously polls the SubAgent with the parameters set and updates the proxy Tables with the status of the SubAgents.
This class also sends SubAgent LinkUp and LinkDown Traps on configurations.
| Field Summary | |
(package private) java.util.Vector |
addVarBindVector
|
(package private) RegistrationListener |
agent
|
(package private) SnmpAgent |
agentRef
|
(package private) DynamicRegistrationWithCommunity |
dynCom
|
(package private) DynamicRegistrationEntry |
dynEntry
|
(package private) java.util.Vector |
dynProxyVector
|
(package private) DynamicRegistration |
dynReg
|
(package private) DynamicRegistrationWithInstance |
dynRegInst
|
(package private) java.util.Vector |
holderVector
|
(package private) java.lang.String |
linkDownOidForContext
|
(package private) java.lang.String |
linkDownOidForInstance
|
(package private) java.lang.String |
linkDownOidForOid
|
(package private) java.lang.String |
linkUpOidForContext
|
(package private) java.lang.String |
linkUpOidForInstance
|
(package private) java.lang.String |
linkUpOidForOid
|
(package private) java.lang.String |
managerHost
|
(package private) long |
pollingInterval
|
(package private) DynamicSnmpProxy |
proxy
|
(package private) int |
retries
|
(package private) SnmpOID |
snmpOID
|
(package private) int |
timeOut
|
(package private) int |
trapPort
|
(package private) int |
trapVersion
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY,
values |
| Constructor Summary | |
SubAgentPoller(java.util.Vector dynProxyVector,
RegistrationListener agent,
DynamicRegistration dynReg,
long pollingInterval,
int timeOut,
int retries)
Constructs a SubAgent poller for the OID based Proxy Table. |
|
SubAgentPoller(java.util.Vector dynProxyVector,
RegistrationListener agent,
DynamicRegistrationWithCommunity dynCom,
long pollingInterval,
int timeOut,
int retries)
Constructs a SubAgent poller for the Context based Proxy Table. |
|
SubAgentPoller(java.util.Vector dynProxyVector,
RegistrationListener agent,
DynamicRegistrationWithInstance dynRegInst,
long pollingInterval,
int timeOut,
int retries)
Constructs a SubAgent poller for the Instance based Proxy Table. |
|
| Method Summary | |
(package private) void |
doPolling()
|
java.util.Vector |
getExtraVarBinds()
Getter for the Vector of Additional VarBinds sent along with the SubAgent LinkUp or LinkDown Traps. |
java.lang.String |
getLinkDownOidForContext()
Getter for the LinkDownOid sent with the LinkUp Traps for Context Based Proxy. |
java.lang.String |
getLinkDownOidForInstance()
Getter for the LinkDownOid sent with the LinkUp Traps for Instance Based Proxy. |
java.lang.String |
getLinkDownOidForOid()
Getter for the LinkUpOid sent with the LinkDown Traps for OID Based Proxy. |
java.lang.String |
getLinkUpOidForContext()
Getter for the LinkUpOid sent with the LinkUp Traps for Context Based Proxy. |
java.lang.String |
getLinkUpOidForInstance()
Getter for the LinkUpOid sent with the LinkUp Traps for Instance Based Proxy. |
java.lang.String |
getLinkUpOidForOid()
Getter for the LinkUpOid sent with the LinkUp Traps for OID Based Proxy. |
void |
handleAction(com.adventnet.utilities.ui.event.ActionHandlerEvent event)
Implementation method of ActionHandlerListener Interface. |
void |
run()
Starts Polling the SubAgents. |
void |
sendTrap(java.lang.String status,
DynamicRegistrationEntry entry,
java.lang.String proxyType)
The Method to send the LinkUp and LinkDown Traps\Notifications API users need not call this method directly. |
void |
setAgent(SnmpAgent agentRef)
Setter for the SnmpAgent Reference. |
void |
setExtraVarBinds(java.util.Vector vector)
Method to set Additional VarBinds to be sent along with the SubAgent LinkUp or LinkDown Traps. |
void |
setLinkDownOidForContext(java.lang.String linkDownOid)
Setter for the LinkDownTrap OID for Context Based Proxy. |
void |
setLinkDownOidForInstance(java.lang.String linkDownOid)
Setter for the LinkDownTrap OID for Instance Based Proxy. |
void |
setLinkDownOidForOid(java.lang.String linkDownOid)
Setter for the LinkDownTrap OID for OID Based Proxy. |
void |
setLinkUpOidForContext(java.lang.String linkUpOid)
Setter for the LinkUpTrap OID for Context Based Proxy. |
void |
setLinkUpOidForInstance(java.lang.String linkUpOid)
Setter for the LinkUpTrap OID for Instance Based Proxy. |
void |
setLinkUpOidForOid(java.lang.String linkUpOid)
Setter for the LinkUpTrap OID for OID Based Proxy. |
void |
setManagerHost(java.lang.String host)
Deprecated. The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. |
void |
setTrapPort(int port)
Deprecated. The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. |
void |
setTrapVersion(int version)
Deprecated. The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
java.util.Vector dynProxyVector
DynamicRegistrationEntry dynEntry
RegistrationListener agent
DynamicRegistration dynReg
DynamicRegistrationWithInstance dynRegInst
DynamicRegistrationWithCommunity dynCom
DynamicSnmpProxy proxy
SnmpAgent agentRef
long pollingInterval
int timeOut
int retries
java.util.Vector addVarBindVector
java.util.Vector holderVector
int trapPort
int trapVersion
java.lang.String managerHost
SnmpOID snmpOID
java.lang.String linkUpOidForOid
java.lang.String linkDownOidForOid
java.lang.String linkUpOidForContext
java.lang.String linkDownOidForContext
java.lang.String linkUpOidForInstance
java.lang.String linkDownOidForInstance
| Constructor Detail |
public SubAgentPoller(java.util.Vector dynProxyVector,
RegistrationListener agent,
DynamicRegistration dynReg,
long pollingInterval,
int timeOut,
int retries)
dynProxyVector - The vector of ProxyEntries which are to be polled.dynReg - The DynamicRegistration instance associated with
the proxyTableagent - The RegistrationListener associated with the Agent.pollingInterval - The TimeInterval between two consecutive polls.timeOut - The Time for which this Poller should wait to get back
the responseretries - The number of retires to be made to receive the response.
public SubAgentPoller(java.util.Vector dynProxyVector,
RegistrationListener agent,
DynamicRegistrationWithCommunity dynCom,
long pollingInterval,
int timeOut,
int retries)
dynProxyVector - The vector of ProxyEntries which are to be polled.dynCom - The DynamicRegistrationWithCommunity instance associated
with the proxyTableagent - The RegistrationListener associated with the Agent.pollingInterval - The TimeInterval between two consecutive polls.timeOut - The Time for which this Poller should wait to get back
the responseretries - The number of retires to be made to receive the response.
public SubAgentPoller(java.util.Vector dynProxyVector,
RegistrationListener agent,
DynamicRegistrationWithInstance dynRegInst,
long pollingInterval,
int timeOut,
int retries)
dynProxyVector - The vector of ProxyEntries which are to be polled.dynRegInst - The DynamicRegistrationWithInstance instance associated
with the proxyTableagent - The RegistrationListener associated with the Agent.pollingInterval - The TimeInterval between two consecutive polls.timeOut - The Time for which this Poller should wait to get back
the responseretries - The number of retires to be made to receive the response.| Method Detail |
public void run()
public void setAgent(SnmpAgent agentRef)
agentRef - The SnmpAgent Reference.public void setExtraVarBinds(java.util.Vector vector)
addVector - the Vector of additional VarBinds.public java.util.Vector getExtraVarBinds()
public void setLinkUpOidForOid(java.lang.String linkUpOid)
The - LinkUpOid to be sent with the Traps.public java.lang.String getLinkUpOidForOid()
public void setLinkDownOidForOid(java.lang.String linkDownOid)
The - LinkUpOid to be sent with the Traps.public java.lang.String getLinkDownOidForOid()
public void setLinkUpOidForInstance(java.lang.String linkUpOid)
The - LinkUpOid to be sent with the Traps.public java.lang.String getLinkUpOidForInstance()
public void setLinkDownOidForInstance(java.lang.String linkDownOid)
The - LinkDownOid to be sent with the Traps.public java.lang.String getLinkDownOidForInstance()
public void setLinkUpOidForContext(java.lang.String linkUpOid)
The - LinkUpOid to be sent with the Traps.public java.lang.String getLinkUpOidForContext()
public void setLinkDownOidForContext(java.lang.String linkDownOid)
The - LinkDownOid to be sent with the Traps.public java.lang.String getLinkDownOidForContext()
void doPolling()
public void setTrapPort(int port)
public void setManagerHost(java.lang.String host)
public void setTrapVersion(int version)
public void sendTrap(java.lang.String status,
DynamicRegistrationEntry entry,
java.lang.String proxyType)
status - the change in Status of the SubAgent (up\down)entry - the DynamicRegistrationEntry of the proxy Agent.proxyType - String specifying the Type of Proxy
This can be "OIDBased", "ContextBased" or "InstanceBased".public void handleAction(com.adventnet.utilities.ui.event.ActionHandlerEvent event)
event - the ActionHandlerEvent that has to be handled.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||