com.adventnet.adaptors.clients
Class HeartBeatEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.adventnet.adaptors.clients.HeartBeatEvent
All Implemented Interfaces:
java.io.Serializable

public class HeartBeatEvent
extends java.util.EventObject

The heart beat event will be triggered by the connector clients (RMIClient, CorbaClient, HttpClient) if the relevant connector present in the JMX server is down

See Also:
Serialized Form

Field Summary
(package private)  java.lang.String connectorHost
           
(package private)  int connectorPort
           
(package private)  boolean connectorStatus
           
(package private)  java.lang.String protocol
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
HeartBeatEvent(java.lang.Object source, java.lang.String connectorHost, int connectorPort, java.lang.String protocol, boolean connectorStatus, java.lang.String mbeanServerID)
          Constructs a HeartBeatEvent object
 
Method Summary
 java.lang.String getConnectorHost()
          Get the host name of the JMX server where the connector resides
 int getConnectorPort()
          Get the port name of this connector
 boolean getConnectorStatus()
          Gets the status of the connector
 java.lang.String getMBeanServerID()
          Getter for the MBeanServerID
 java.lang.String getProtocol()
          Get the protocol i.e type of connector.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

connectorHost

java.lang.String connectorHost

connectorPort

int connectorPort

protocol

java.lang.String protocol

connectorStatus

boolean connectorStatus
Constructor Detail

HeartBeatEvent

public HeartBeatEvent(java.lang.Object source,
                      java.lang.String connectorHost,
                      int connectorPort,
                      java.lang.String protocol,
                      boolean connectorStatus,
                      java.lang.String mbeanServerID)
Constructs a HeartBeatEvent object

Parameters:
source - The source of the event
connectorHost - The connector host
connectorPort - The connector port
protocol - The protocol type
connectorStatus - The connector status
mbeanserverID - The MBeanServer ID
Method Detail

getConnectorHost

public java.lang.String getConnectorHost()
Get the host name of the JMX server where the connector resides


getConnectorPort

public int getConnectorPort()
Get the port name of this connector


getProtocol

public java.lang.String getProtocol()
Get the protocol i.e type of connector. Could be either "HTTP", "RMI" or "IIOP" (corba)


getConnectorStatus

public boolean getConnectorStatus()
Gets the status of the connector


getMBeanServerID

public java.lang.String getMBeanServerID()
Getter for the MBeanServerID

Returns:
String representing the MBeanServerID.