com.adventnet.snmp.mibs.agent
Class DatabaseCommand

java.lang.Object
  |
  +--com.adventnet.snmp.mibs.AgentClauseCommandUtil
        |
        +--com.adventnet.snmp.mibs.DatabaseCommandUtil
              |
              +--com.adventnet.snmp.mibs.agent.DatabaseCommand

public class DatabaseCommand
extends DatabaseCommandUtil

DataBaseCommand class is used to implement the DATABASE-COMMAND construct in the AGENTCLAUSE.

API users will not need this file directly.


Field Summary
(package private)  java.lang.Boolean _isText
           
 java.lang.String createTableName
          String only for non-leaf nodes.
 java.lang.String driver
          String for driver name.
(package private)  JDBCAdapter jdbcAdapter
           
(package private)  MibNode node
           
 java.lang.String passwd
          String for password information.
(package private)  SnmpDBAdaptor snmpDBAdaptor
           
 java.lang.String sqlGetStatement
          String for leaf-nodes,used for get command
 java.lang.String sqlSetStatement
          String for leaf-nodes,used for set command
 java.lang.String tableName
          String caontains table name .
 java.lang.String url
          String for url information.
 java.lang.String user
          String for user name.
 
Fields inherited from class com.adventnet.snmp.mibs.DatabaseCommandUtil
_isText, createTableName, driver, node, passwd, sqlGetStatement, sqlSetStatement, tableName, url, user
 
Fields inherited from class com.adventnet.snmp.mibs.AgentClauseCommandUtil
AT_START, command_string, EACH_TIME, FIRST_TIME, instantiate, mibOperations, name, node, runTime, timeout
 
Constructor Summary
DatabaseCommand()
          constructor creates SnmpDBAdaptor.
 
Method Summary
 java.lang.String getAgentClauseString()
          overrides the method in AgentClauseCommand.
(package private)  java.lang.String getReqMesg(byte type)
          overrides the method in AgentClauseCommand
(package private)  java.lang.String getReqMesg(SnmpVarBind varbind, byte type)
          overrides the method in AgentClauseCommand
 SnmpDBAdaptor getSnmpDBAdaptor()
          getter for the SnmpDBAdaptor
 void initAdaptor()
          intialization of the Jdbc adapter is done here for handling sql requests.
 void initialize()
           
 java.util.Vector makeInstances(AgentMibNode leafNode)
          overrides the method in AgentClauseCommand.
 void parseCommand(java.util.StringTokenizer strTok, java.lang.String str)
          Following methods are used by the previous parseClause method to interpret different COMMAND syntax.
 void setAgentMibOperations(AgentMibOperations agentMibOperations)
          setter for the AgentMibOperations
 void setRegisteredOid(java.lang.String registeredOid)
          setter for the registration oid
(package private)  java.lang.String setReqMesg(SnmpVarBind varbind, java.util.Vector arguments)
          overrides the method in AgentClauseCommand
(package private)  java.lang.String setReqMesg(java.util.Vector arguments)
          overrides the method in AgentClauseCommand.
 
Methods inherited from class com.adventnet.snmp.mibs.AgentClauseCommandUtil
getCommandString, getName, getTimeout, isRunTime, setCommandString, setName, setRunTime, setTimeout
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

MibNode node

createTableName

public java.lang.String createTableName
String only for non-leaf nodes.

tableName

public java.lang.String tableName
String caontains table name .

url

public java.lang.String url
String for url information.

driver

public java.lang.String driver
String for driver name.

user

public java.lang.String user
String for user name.

passwd

public java.lang.String passwd
String for password information.

sqlGetStatement

public java.lang.String sqlGetStatement
String for leaf-nodes,used for get command

sqlSetStatement

public java.lang.String sqlSetStatement
String for leaf-nodes,used for set command

_isText

java.lang.Boolean _isText

snmpDBAdaptor

SnmpDBAdaptor snmpDBAdaptor

jdbcAdapter

JDBCAdapter jdbcAdapter
Constructor Detail

DatabaseCommand

public DatabaseCommand()
constructor creates SnmpDBAdaptor.
Method Detail

initialize

public void initialize()
Overrides:
initialize in class AgentClauseCommandUtil

initAdaptor

public void initAdaptor()
intialization of the Jdbc adapter is done here for handling sql requests.

getSnmpDBAdaptor

public SnmpDBAdaptor getSnmpDBAdaptor()
getter for the SnmpDBAdaptor

setRegisteredOid

public void setRegisteredOid(java.lang.String registeredOid)
setter for the registration oid
Overrides:
setRegisteredOid in class DatabaseCommandUtil

setAgentMibOperations

public void setAgentMibOperations(AgentMibOperations agentMibOperations)
setter for the AgentMibOperations
Overrides:
setAgentMibOperations in class DatabaseCommandUtil

getReqMesg

java.lang.String getReqMesg(byte type)
                      throws AgentSnmpException
overrides the method in AgentClauseCommand

getReqMesg

java.lang.String getReqMesg(SnmpVarBind varbind,
                            byte type)
                      throws AgentSnmpException
overrides the method in AgentClauseCommand

setReqMesg

java.lang.String setReqMesg(SnmpVarBind varbind,
                            java.util.Vector arguments)
                      throws AgentSnmpException
overrides the method in AgentClauseCommand

setReqMesg

java.lang.String setReqMesg(java.util.Vector arguments)
                      throws AgentSnmpException
overrides the method in AgentClauseCommand.

makeInstances

public java.util.Vector makeInstances(AgentMibNode leafNode)
                               throws MibException
overrides the method in AgentClauseCommand. does nothing.
Overrides:
makeInstances in class DatabaseCommandUtil

parseCommand

public void parseCommand(java.util.StringTokenizer strTok,
                         java.lang.String str)
                  throws MibException
Following methods are used by the previous parseClause method to interpret different COMMAND syntax.
Overrides:
parseCommand in class DatabaseCommandUtil
Returns:
returns filled DatabaseCommand class to be put in the hashtable

getAgentClauseString

public java.lang.String getAgentClauseString()
overrides the method in AgentClauseCommand.
Overrides:
getAgentClauseString in class DatabaseCommandUtil
Returns:
String having DATABASE-COMMAND class details.