com.adventnet.services.proxy
Class ProxyInfo

java.lang.Object
  extended by com.adventnet.services.proxy.ProxyInfo

 class ProxyInfo
extends java.lang.Object

This class encapsulates the details of the SubAgent Host, Port and Community for a particular MBean. This class will be instantiated by the register() of the JmxProxy class.


Field Summary
(package private)  java.lang.String community
           
(package private)  java.lang.String host
           
(package private)  int port
           
(package private)  java.lang.String version
           
 
Constructor Summary
ProxyInfo()
          Default Constructor for Proxy Info
ProxyInfo(java.lang.String host, int port, java.lang.String community)
          Three Argument Constructor with host, port and community.
ProxyInfo(java.lang.String host, int port, java.lang.String community, java.lang.String version)
          Four Argument Constructor with host, port, community and version.
 
Method Summary
 java.lang.String getAgentCommunity()
          Returns the Agent Community
 java.lang.String getAgentHost()
          Returns the Agent Host
 int getAgentPort()
          Returns the port
 java.lang.String getSNMPVersion()
          Returns the SNMP Version
 void setAgentCommunity(java.lang.String community)
          Sets the community with the given value
 void setAgentHost(java.lang.String host)
          Sets the Agent Host with the given value
 void setAgentPort(int port)
          Sets the port with the given value
 void setSNMPVersion(java.lang.String version)
          Sets the SNMP Version with the given value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

int port

host

java.lang.String host

community

java.lang.String community

version

java.lang.String version
Constructor Detail

ProxyInfo

public ProxyInfo()
Default Constructor for Proxy Info


ProxyInfo

public ProxyInfo(java.lang.String host,
                 int port,
                 java.lang.String community)
Three Argument Constructor with host, port and community.

Parameters:
host - The Host name
port - The Port
community - The community

ProxyInfo

public ProxyInfo(java.lang.String host,
                 int port,
                 java.lang.String community,
                 java.lang.String version)
Four Argument Constructor with host, port, community and version.

Parameters:
host - The Host name
port - The Port
community - The community
version - The SNMP Version
Method Detail

setAgentPort

public void setAgentPort(int port)
Sets the port with the given value

Parameters:
port - The Port

getAgentPort

public int getAgentPort()
Returns the port

Returns:
The Port

setAgentCommunity

public void setAgentCommunity(java.lang.String community)
Sets the community with the given value

Parameters:
community - The Agent Community

getAgentCommunity

public java.lang.String getAgentCommunity()
Returns the Agent Community


setAgentHost

public void setAgentHost(java.lang.String host)
Sets the Agent Host with the given value

Parameters:
The - Agent Community

getAgentHost

public java.lang.String getAgentHost()
Returns the Agent Host


getSNMPVersion

public java.lang.String getSNMPVersion()
Returns the SNMP Version


setSNMPVersion

public void setSNMPVersion(java.lang.String version)
Sets the SNMP Version with the given value

Parameters:
version - The SNMP Version