|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.utils.agent.DynamicRegistrationEntry
This class is for Storing all the Sub Agent Informations. Represents an entry under Dynamic registration table Supports a row Status of createAndGo.
This class having information of PROXY AGENT.
If any requests comes for this OID , the requests proxied to the the coresponding agent which is specified in the table.
Dynamically we can create new entry and we can overwrite an old entry.
| Field Summary | |
(package private) java.lang.String |
community
|
(package private) java.lang.String |
entryInstance
|
(package private) java.lang.String |
host
|
(package private) boolean |
isOid
|
(package private) SnmpOID |
oid
|
(package private) java.lang.Long |
port
|
(package private) java.lang.String |
proxyContextName
|
(package private) java.lang.Long |
retries
|
(package private) java.lang.Integer |
rowStatus
|
(package private) java.lang.Long |
timeout
|
(package private) java.lang.Integer |
version
|
| Constructor Summary | |
(package private) |
DynamicRegistrationEntry()
|
(package private) |
DynamicRegistrationEntry(java.lang.String className)
|
| Method Summary | |
int[] |
computeInstanceOID()
This Method is used for the computing the InstanceOids. |
void |
decrementCount()
Decrementer for columnCount. |
java.lang.String |
getCommunity()
Getter for the Community to be proxied. |
int |
getCount()
getter for number of coulmn in a row. |
java.lang.String |
getEntryInstance()
This method will be used when the proxy table is instance based proxy table, to get the entry instance OID column value. |
java.lang.String |
getHost()
Getter for the host name to be proxied. |
int[] |
getInstanceOID()
Getter for the InstanceOid of the Row, Part of interface TableEntry. |
java.lang.String |
getOid()
Getter for the oid to be proxied. |
java.lang.String |
getPort()
Getter for the port to be proxied. |
SnmpProxy |
getProxyCommand()
Getter for SnmpProxy. |
java.lang.String |
getProxyContextName()
This method will be used when the proxy table is Context based proxy table, to get the proxyContextName column value. |
java.lang.String |
getRetries()
Getter for the Retries that is used while proxying. |
java.lang.String |
getRowStatus()
Getter for the rowStatus. |
java.lang.String |
getTimeOut()
Getter for the Agent Time Out Values. |
java.lang.String |
getVersion()
Getter for the proxying PDU Version. |
boolean |
isOid()
Checks if the Oid is set. |
void |
setCommunity(SnmpVar var)
Setter for the Community to be proxied. |
void |
setEntryInstance(SnmpVar var)
This method will be used when the proxy table is instance based proxy table, to set the entry instance OID column value. |
void |
setHost(SnmpVar var)
Setter for the HOST to be proxied. |
void |
setInstanceOID(int[] instanceOID)
Setter for the InstanceOID of the Row, Part of interface TableEntry. |
void |
setOid(SnmpVar var)
Setter for the oid to be proxied. |
void |
setPort(SnmpVar var)
Setter for the PORT to be proxied. |
void |
setProxyContextName(SnmpVar var)
This method will be used when the proxy table is Context based proxy table, to set the proxyContextName column value. |
void |
setRetries(SnmpVar var)
Setter for the Retries value for which the Request is to be proxied. |
void |
setRowStatus(SnmpVar var)
Setter for the RowStatus. |
void |
setTimeOut(SnmpVar var)
The setter for timeout. |
void |
setVersion(SnmpVar var)
The setter for Version of the PDU to be proxied. |
java.lang.String |
toString()
The toString method to show the registration with details. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
SnmpOID oid
boolean isOid
java.lang.String host
java.lang.String community
java.lang.String proxyContextName
java.lang.Long port
java.lang.Long retries
java.lang.Integer rowStatus
java.lang.Long timeout
java.lang.Integer version
java.lang.String entryInstance
| Constructor Detail |
DynamicRegistrationEntry()
DynamicRegistrationEntry(java.lang.String className)
| Method Detail |
public SnmpProxy getProxyCommand()
public void setOid(SnmpVar var)
throws AgentSnmpException
var - The OID value to be proxied.getOid()public java.lang.String getOid()
setOid(SnmpVar var)public boolean isOid()
public void setHost(SnmpVar var)
throws AgentSnmpException
var - having real agent name.getHost()public java.lang.String getHost()
setHost(SnmpVar var)
public void setCommunity(SnmpVar var)
throws AgentSnmpException
var - having real agent community.getCommunity()public java.lang.String getCommunity()
setCommunity(SnmpVar var)public int[] getInstanceOID()
setInstanceOID()public void setInstanceOID(int[] instanceOID)
instanceOID - The Instance Oid Value.getInstanceOID().public int[] computeInstanceOID()
AgentUtil.encodeInstanceString()
public void setPort(SnmpVar var)
throws AgentSnmpException
var - The port number.getPort().public java.lang.String getPort()
setPort(SnmpVar var).
public void setRetries(SnmpVar var)
throws AgentSnmpException
var - The Retries value.getRetries().public java.lang.String getRetries()
setRetires(SnmpVar var)
public void setRowStatus(SnmpVar var)
throws AgentSnmpException
var - SnmpVar having rowstatus information.getRowStatus()public java.lang.String getRowStatus()
setRowStatus(SnmpVar var)
public void setTimeOut(SnmpVar var)
throws AgentSnmpException
The proxy agent waits for response for a specified time.
var - value of TimeOut.getTimeOut()
public java.lang.String getTimeOut()
throws AgentSnmpException
setTimeOut(SnmpVar var)
public void setVersion(SnmpVar var)
throws AgentSnmpException
var - SnmpVersion value to be set.getVersion()
public java.lang.String getVersion()
throws AgentSnmpException
setVersion(SnmpVar var)public void decrementCount()
public int getCount()
public java.lang.String getEntryInstance()
setEntryInstance(SnmpVar var)
public void setEntryInstance(SnmpVar var)
throws AgentSnmpException
var - the SnmpVar of instance value to be set.getEntryInstance()public java.lang.String toString()
public void setProxyContextName(SnmpVar var)
throws AgentSnmpException
var - the SnmpVar of context value to be set.getProxyContextName()public java.lang.String getProxyContextName()
setProxyContextName(SnmpVar var)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||