com.adventnet.services.discovery
Class DiscoveryObject

java.lang.Object
  extended by com.adventnet.services.discovery.DiscoveryObject

public class DiscoveryObject
extends java.lang.Object

The JMX Agents to be discovered by using Discovery Service are represented as objects of this class


Field Summary
(package private)  java.util.Hashtable adaptorsInfo
           
(package private)  java.lang.String agentName
           
(package private)  boolean agentState
           
static java.lang.String CORBA
          The static variable to specify the CORBA connector
(package private)  DiscoveryPacket dpacket
           
static java.lang.String HTML
          The static variable to specify the HTML adaptor
static java.lang.String HTTP
          The static variable to specify the HTTP connector
(package private)  java.lang.String mBeanServerId
           
static java.lang.String RMI
          The static variable to specify the SNMP connector
static java.lang.String SNMP
          The static variable to specify the SNMP adaptor
static java.lang.String TL1
          The static variable to specify the TL1 adaptor
(package private)  java.util.Properties userData
           
 
Constructor Summary
DiscoveryObject()
          Default Constructor for DiscoveryObject
 
Method Summary
 java.util.Hashtable getAdaptorsInfo()
          The hashtable which has information about the adaptors registered in this JMX agent.
 java.lang.String getAgentHost()
          Gets the hostname of the agent
 boolean getAgentState()
          AgentState indicates the state of the agent, true indicates the JMX agent is alive.
(package private)  DiscoveryPacket getDiscoveryPacket()
           
 java.lang.String getMBeanServerId()
          Gets the MBeanServerId of the JMX agent running at the specified host
 java.util.Properties getUserData()
          Gets the user defined data sent in the discovery packet by the JMX agent
(package private)  void setAdaptorsInfo(java.util.Hashtable adaptorsInfo)
           
(package private)  void setAgentHost(java.lang.String agentName)
           
(package private)  void setAgentState(boolean agentState)
           
(package private)  void setDiscoveryPacket(DiscoveryPacket dpacket)
           
(package private)  void setMBeanServerId(java.lang.String mBeanServerId)
           
(package private)  void setUserData(java.util.Properties userData)
          Sets the user defined data which will be sent in the discovery packet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RMI

public static final java.lang.String RMI
The static variable to specify the SNMP connector

See Also:
Constant Field Values

CORBA

public static final java.lang.String CORBA
The static variable to specify the CORBA connector

See Also:
Constant Field Values

HTTP

public static final java.lang.String HTTP
The static variable to specify the HTTP connector

See Also:
Constant Field Values

SNMP

public static final java.lang.String SNMP
The static variable to specify the SNMP adaptor

See Also:
Constant Field Values

HTML

public static final java.lang.String HTML
The static variable to specify the HTML adaptor

See Also:
Constant Field Values

TL1

public static final java.lang.String TL1
The static variable to specify the TL1 adaptor

See Also:
Constant Field Values

agentState

boolean agentState

agentName

java.lang.String agentName

mBeanServerId

java.lang.String mBeanServerId

adaptorsInfo

java.util.Hashtable adaptorsInfo

dpacket

DiscoveryPacket dpacket

userData

java.util.Properties userData
Constructor Detail

DiscoveryObject

public DiscoveryObject()
Default Constructor for DiscoveryObject

Method Detail

getAgentState

public boolean getAgentState()
AgentState indicates the state of the agent, true indicates the JMX agent is alive. False indicate the JMX agent is stopped


setAgentState

void setAgentState(boolean agentState)

getAgentHost

public java.lang.String getAgentHost()
Gets the hostname of the agent


setAgentHost

void setAgentHost(java.lang.String agentName)

setMBeanServerId

void setMBeanServerId(java.lang.String mBeanServerId)

getMBeanServerId

public java.lang.String getMBeanServerId()
Gets the MBeanServerId of the JMX agent running at the specified host


getAdaptorsInfo

public java.util.Hashtable getAdaptorsInfo()
The hashtable which has information about the adaptors registered in this JMX agent. The key of this Hashtable is protocol name (String). Could be any one of the static variables : DiscoveryObject.SNMP, DiscoveryObject.RMI, DiscoveryObject.HTML, DiscoveryObject.CORBA, DiscoveryObject.TL1, DiscoveryObject.HTTP. The value of the Hashtable is Integer object specifying the port of the relevant adaptor.


setAdaptorsInfo

void setAdaptorsInfo(java.util.Hashtable adaptorsInfo)

getDiscoveryPacket

DiscoveryPacket getDiscoveryPacket()

setDiscoveryPacket

void setDiscoveryPacket(DiscoveryPacket dpacket)

getUserData

public java.util.Properties getUserData()
Gets the user defined data sent in the discovery packet by the JMX agent


setUserData

void setUserData(java.util.Properties userData)
Sets the user defined data which will be sent in the discovery packet