net.agmodel.utilBean
Class ServerBeanEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--net.agmodel.utilBean.ServiceBeanEvent
              |
              +--net.agmodel.utilBean.ServerBeanEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ChizuBrokerEvent, DataSourceEvent, DEMBrokerEvent, MetBrokerEvent

public class ServerBeanEvent
extends ServiceBeanEvent

Generic class containing contact details for a newly-connected server.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.agmodel.utilBean.ServiceBeanEvent
serverHTTP, serverRMI
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServerBeanEvent(Object source, ServerHTTP newServerHTTP, String newSessionID)
          Create a new event corresponding to an HTTP connection to the server.
ServerBeanEvent(Object source, ServerRMI newServerRMI, String newSessionID)
          Create a new event corresponding to an RMI connection to the server.
 
Method Summary
 ServerHTTP getServerHTTP()
          Get a wrapper object linked servlet wrapper for the server.
 ServerRMI getServerRMI()
          Get the remote reference to the broker.
 String getSessionID()
          Get the unique id assigned to this connection by the server.
 
Methods inherited from class net.agmodel.utilBean.ServiceBeanEvent
getServiceHTTP, getServiceRMI
 
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
 

Constructor Detail

ServerBeanEvent

public ServerBeanEvent(Object source,
                       ServerRMI newServerRMI,
                       String newSessionID)
Create a new event corresponding to an RMI connection to the server.

Parameters:
source - the originator of the event
newServerRMI - a remote reference to the server
newSessionID - a unique identifier assigned by the server to this connection

ServerBeanEvent

public ServerBeanEvent(Object source,
                       ServerHTTP newServerHTTP,
                       String newSessionID)
Create a new event corresponding to an HTTP connection to the server.

Parameters:
source - the originator of the event
newServerHTTP - a wrapper object linked to a wrapper servlet.
newSessionID - a unique identifier assigned by the server to this connection
Method Detail

getServerRMI

public ServerRMI getServerRMI()
Get the remote reference to the broker.

Returns:
an RMI remote object reference, or null if the server has been connected to using a wrapper servlet.

getServerHTTP

public ServerHTTP getServerHTTP()
Get a wrapper object linked servlet wrapper for the server.

Returns:
an HTTP wrapper reference, or null if the server has been connected to using RMI.

getSessionID

public String getSessionID()
Get the unique id assigned to this connection by the server.

Returns:
a session identifier