com.adventnet.utils.agent
Class AgentParamOptions

java.lang.Object
  extended by com.adventnet.utils.agent.AgentParamOptions

public class AgentParamOptions
extends java.lang.Object

This class is for parsing the specified options for agent.


Constructor Summary
AgentParamOptions()
          Constructor for AgentParamOptions.
AgentParamOptions(java.lang.String[] args)
          constructor for AgentParamOptions with the Arguments.
 
Method Summary
 java.lang.String getAgentDir()
          To get the Agent Directory.
 java.lang.String getCommunity()
          Deprecated. this will be no Longer used. Getter of community. Default Value is null.
 int getDebugLevel()
          getter of debugLevel.
 java.lang.String[] getLocalAddresses()
          Deprecated. No longer used. getter of Agent Local Addresses. default value is null.
 java.lang.String getMibFile()
          Deprecated. this is no longer used. getter of MibFileName. default value is null.
 int getPort()
          Getter of Agent Port.
 int getTrapSendingPort()
          Getter of Trap Sending Port if Seperate Session is needed.
 java.lang.String getVersion()
          Getter of Version.
 java.lang.String getWriteCommunity()
          Deprecated. this will be no Longer used. Getter of write community. default value is null.
 void init(java.lang.String[] args)
          This method can be used to pass the commndLine arguements, -d debugLevel(0-6) -p port -t trapSendingPort.
 void setAgentDir(java.lang.String agentDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentParamOptions

public AgentParamOptions()
Constructor for AgentParamOptions.


AgentParamOptions

public AgentParamOptions(java.lang.String[] args)
constructor for AgentParamOptions with the Arguments.

Parameters:
args[] - The CommandLine arguements.
Method Detail

init

public void init(java.lang.String[] args)
This method can be used to pass the commndLine arguements, -d debugLevel(0-6) -p port -t trapSendingPort.

Parameters:
args[] - The CommandLine Arguments.

getAgentDir

public java.lang.String getAgentDir()
To get the Agent Directory.

Returns:

setAgentDir

public void setAgentDir(java.lang.String agentDir)

getDebugLevel

public int getDebugLevel()
getter of debugLevel. default is warn

Returns:
The DebugLevel of the Agent.

getTrapSendingPort

public int getTrapSendingPort()
Getter of Trap Sending Port if Seperate Session is needed. default is 8002

Returns:
The Trap Sending Port.

getMibFile

public java.lang.String getMibFile()
Deprecated. this is no longer used. getter of MibFileName. default value is null.

Returns:
The MibFile Name.

getPort

public int getPort()
Getter of Agent Port. default value is 8001.

Returns:
The Port where the Agent Runs.

getVersion

public java.lang.String getVersion()
Getter of Version. default value is v2c.

Returns:
The SnmpVersion of the Agent.

getLocalAddresses

public java.lang.String[] getLocalAddresses()
Deprecated. No longer used. getter of Agent Local Addresses. default value is null.

Returns:
The LocalAddresses.

getCommunity

public java.lang.String getCommunity()
Deprecated. this will be no Longer used. Getter of community. Default Value is null.

Returns:
The Community of the Agent.

getWriteCommunity

public java.lang.String getWriteCommunity()
Deprecated. this will be no Longer used. Getter of write community. default value is null.

Returns:
The Write Community string.