com.tivoli.twg.snmp
Class TWGRemoteSNMP

java.lang.Object
  extended bycom.tivoli.twg.libs.ServiceNode
      extended bycom.tivoli.twg.snmp.TWGRemoteSNMP
All Implemented Interfaces:
CommandReceivedListener, java.lang.Runnable

Deprecated. Use SNMPRemoteRequest

public class TWGRemoteSNMP
extends ServiceNode
implements CommandReceivedListener

This class will allow access to the SNMP Stack on the IT Director Server.

It allows the execution of the primary SNMP Primitives Get, GetNext, and Set to be executed remotely on the IT Director Server from the console.

See Also:
TWGRemoteMIB, TWGMIBItem2, com.tivoli.twg.snmp.iTWGRemoteSNMP

Field Summary
 
Fields inherited from class com.tivoli.twg.libs.ServiceNode
SVCNODE_DISABLE_TRACING_CMD, SVCNODE_ENABLE_TRACING_CMD, SVCNODE_GET_STATUS_CMD, SVCNODE_KILL_SERVICE_CMD
 
Constructor Summary
TWGRemoteSNMP()
          Deprecated. Use SNMPRemoteRequest
 
Method Summary
 void close()
          Deprecated. Please call close when finished with object in order for cleanup.
 boolean CommandReceived(ServiceNode CallBackSN, Command cmd)
          Deprecated. INTERNAL USE ONLY
 void iCommandReceived(Command cmd)
          Deprecated. INTERNAL USE ONLY
 boolean SNMPGet(long iTargetMoid, iTWGRemoteSNMPResponse Caller, java.lang.String OID)
          Deprecated. Use SNMPRemoteRequest.sendGetRequest
 boolean SNMPGetNext(long iTargetMoid, iTWGRemoteSNMPResponse Caller, java.lang.String OID)
          Deprecated. Use SNMPRemoteRequest.sendGetNextRequest
 boolean SNMPSet(long iTargetMoid, iTWGRemoteSNMPResponse Caller, java.lang.String OID, int ObjectType, java.lang.Object NewValue)
          Deprecated. Use SNMPRemoteRequest.sendSetRequest
 
Methods inherited from class com.tivoli.twg.libs.ServiceNode
Close, CommandReceived, ConnectionActive, Create, DeregisterCommandListener, DeregisterDefaultCommandListener, EnqueueCommandFail, EnqueueReceiveBuffer, formatCommandCode, formatReturnCode, GetFeatureFlags, GetServiceNodeFactory, getTS, IsActive, IsRawMode, LocalMACAddress, LocalMacAddressList, LocalSystemName, LocalUniqueID, Name, PeriodicCallback, ProcessCommands, ReceiveData, RegisterAsServiceBase, RegisterCommandListener, RegisterDefaultCommandListener, run, SendAsynchCommand, SendBuffer, SendCommand, SendLocalAsyncCommand, SendLocalCommand, SendPostponedReply, SetActive, setCommandDebugString, SetFeatureFlags, SetGlobalNetworkTimeout, SetLocalSystemName, SetPeriodicCallback, SetServiceNodeFactory, ThreadInit, ThreadTerm, toString, traceCommandCompleteCall, traceCommandReceived, traceCommandReceivedReturn, traceCommandSend, traceError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TWGRemoteSNMP

public TWGRemoteSNMP()
              throws BadServiceNodeImplException,
                     ServiceNodeClosedException,
                     ServiceNodeException
Deprecated. Use SNMPRemoteRequest

Construct An an instance of the remote services. It will attempt to initialize communications with the IT Director Server.

Throws:
BadServiceNodeImplException
ServiceNodeClosedException
ServiceNodeException
Method Detail

close

public void close()
Deprecated. 
Please call close when finished with object in order for cleanup.


CommandReceived

public boolean CommandReceived(ServiceNode CallBackSN,
                               Command cmd)
Deprecated. 
INTERNAL USE ONLY

Specified by:
CommandReceived in interface CommandReceivedListener
Parameters:
CallBackSN - - ServiceNode instance which received Command
cmd - - Instance of Command received
Returns:
true if ServiceNode should stay active, false if it should terminate

SNMPGetNext

public boolean SNMPGetNext(long iTargetMoid,
                           iTWGRemoteSNMPResponse Caller,
                           java.lang.String OID)
                    throws ServiceNodeException
Deprecated. Use SNMPRemoteRequest.sendGetNextRequest

Called to perform an SNMP GetNext operation on the target Managed Object ID.

Parameters:
iTargetMoid -
Caller -
OID -
Returns:
boolean - Either true or flase. If true, then this transaction will be complete when a call-back occurs at either the SNMPGetNextResponse or the SNMPError methods privided by the passed instance of iTWGRemoteSNMPResponse. If false, then the transaction is complete.
Throws:
ServiceNodeException
See Also:
iTWGRemoteSNMPResponse

SNMPGet

public boolean SNMPGet(long iTargetMoid,
                       iTWGRemoteSNMPResponse Caller,
                       java.lang.String OID)
                throws ServiceNodeException
Deprecated. Use SNMPRemoteRequest.sendGetRequest

Called to perform an SNMP Get operation on the target Managed Object ID.

Parameters:
iTargetMoid -
Caller -
OID -
Returns:
boolean - Either true or flase. If true, then this transaction will be complete when a call-back occurs at either the SNMPGetResponse or the SNMPError methods privided by the passed instance of iTWGRemoteSNMPResponse. If false, then the transaction is complete.
Throws:
ServiceNodeException
See Also:
iTWGRemoteSNMPResponse

SNMPSet

public boolean SNMPSet(long iTargetMoid,
                       iTWGRemoteSNMPResponse Caller,
                       java.lang.String OID,
                       int ObjectType,
                       java.lang.Object NewValue)
                throws ServiceNodeException
Deprecated. Use SNMPRemoteRequest.sendSetRequest

Called to perform an SNMP Set operation on the target Managed Object ID.

Parameters:
iTargetMoid -
Caller -
OID -
ObjectType -
NewValue -
Returns:
boolean - Either true or flase. If true, then this transaction will be complete when a call-back occurs at either the SNMPSetResponse or the SNMPError methods privided by the passed instance of iTWGRemoteSNMPResponse. If false, then the transaction is complete.
Throws:
ServiceNodeException
ServiceNodeException
See Also:
iTWGRemoteSNMPResponse, TWGMIBItem2

iCommandReceived

public void iCommandReceived(Command cmd)
Deprecated. 
INTERNAL USE ONLY