|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.Connector
com.ibm.di.connector.SNMPServerConnector
public class SNMPServerConnector
The SNMP Server Connector is used by a monitoring console (an SNMP Manager). The SNMP Server Connector receives SNMP packets on a specified port, and returns appropriate SNMP response packets.
Nested Class Summary | |
---|---|
class |
SNMPServerConnector.EmptyValue
|
Field Summary |
---|
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
SNMPServerConnector()
Default constructor. |
Method Summary | |
---|---|
com.tivoli.snmp.data.BadValue |
createBadValue()
Convenient methods to create SNMP object types |
com.tivoli.snmp.data.Boolean |
createBoolean(boolean aValue)
|
com.tivoli.snmp.data.Counter |
createCounter(long aValue)
|
com.tivoli.snmp.data.Counter64 |
createCounter64(long aValue)
|
com.tivoli.snmp.data.FixedLengthOctetString |
createFixedLengthOctetString(String aValue)
|
com.tivoli.snmp.data.FullCounter64 |
createFullCounter64(BigInteger aValue)
|
com.tivoli.snmp.data.Gauge |
createGauge(long aValue)
|
com.tivoli.snmp.data.IPAddress |
createIPAddress(String aValue)
|
com.tivoli.snmp.data.NoChange |
createNoChange()
|
com.tivoli.snmp.data.NoSuchInstance |
createNoSuchInstance()
|
com.tivoli.snmp.data.NoSuchObject |
createNoSuchObject()
|
com.tivoli.snmp.data.NotSupported |
createNotSupported()
|
com.tivoli.snmp.data.Null |
createNull()
|
com.tivoli.snmp.data.OctetString |
createOctetString(String aValue)
|
com.tivoli.snmp.data.OID |
createOID(String aValue)
|
com.tivoli.snmp.data.Opaque |
createOpaque(byte[] aValue)
|
com.tivoli.snmp.data.TimeTicks |
createTimeTicks(long aValue)
|
ConnectorInterface |
getNextClient()
Server mode - returns a new instance of the Connector for each client connection. |
Entry |
getNextEntry()
Returns the next Entry from the SNMP client(Manager). |
SNMPServerConnector |
getServerConnector()
Returns the server Connector if this Connector is handling a client session. |
String |
getVersion()
Return version information |
void |
initialize(Object aObj)
Initialize the Connector. |
boolean |
isAccepting()
Returns true if this Connector is currently waiting for a client connection. |
boolean |
isTerminating()
|
void |
putEntry(Entry aEntry)
Send response to the SNMP client (Manager). |
void |
replyEntry(Entry aEntry)
Send response to the SNMP client (Manager). |
void |
setCommunity(String aCommunity)
Sets community parameter |
void |
setServerConnector(SNMPServerConnector aServerConnector)
Sets the server Connector for this Connector. |
void |
terminate()
Terminate the connector. |
void |
terminateServer()
This method tries to terminate the server by setting the termination flag for the Connector returned by getServerConnector and immediatly connecting to its port. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SNMPServerConnector()
Method Detail |
---|
public SNMPServerConnector getServerConnector()
public void setCommunity(String aCommunity)
aCommunity
- The communitypublic void setServerConnector(SNMPServerConnector aServerConnector)
aServerConnector
- The serverConnector.public boolean isAccepting()
public boolean isTerminating()
public void initialize(Object aObj) throws Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
aObj
- Null, DatagramPacket or ConnectorMode class
Exception
- If invalid Connector parameter values are supplied.public ConnectorInterface getNextClient() throws Exception
getNextClient
in interface ConnectorInterface
getNextClient
in class Connector
Exception
public Entry getNextEntry() throws Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
- If retrieving the next Entry fails.Connector.selectEntries()
public void replyEntry(Entry aEntry) throws Exception
replyEntry
in interface ConnectorInterface
replyEntry
in class Connector
aEntry
- The entry.
Exception
- If sending response fails.public void putEntry(Entry aEntry) throws Exception
putEntry
in interface ConnectorInterface
putEntry
in class Connector
aEntry
- The entry.
Exception
- If sending response fails.public void terminateServer() throws Exception
terminateServer
in interface ConnectorInterface
terminateServer
in class Connector
Exception
public void terminate() throws Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
Exception
public com.tivoli.snmp.data.BadValue createBadValue()
public com.tivoli.snmp.data.Boolean createBoolean(boolean aValue)
public com.tivoli.snmp.data.Counter createCounter(long aValue)
public com.tivoli.snmp.data.Counter64 createCounter64(long aValue)
public com.tivoli.snmp.data.FixedLengthOctetString createFixedLengthOctetString(String aValue)
public com.tivoli.snmp.data.FullCounter64 createFullCounter64(BigInteger aValue)
public com.tivoli.snmp.data.Gauge createGauge(long aValue)
public com.tivoli.snmp.data.IPAddress createIPAddress(String aValue)
public com.tivoli.snmp.data.NoChange createNoChange()
public com.tivoli.snmp.data.NoSuchInstance createNoSuchInstance()
public com.tivoli.snmp.data.NoSuchObject createNoSuchObject()
public com.tivoli.snmp.data.NotSupported createNotSupported()
public com.tivoli.snmp.data.Null createNull()
public com.tivoli.snmp.data.OctetString createOctetString(String aValue)
public com.tivoli.snmp.data.OID createOID(String aValue)
public com.tivoli.snmp.data.Opaque createOpaque(byte[] aValue)
public com.tivoli.snmp.data.TimeTicks createTimeTicks(long aValue)
public String getVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |