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
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 eventnewServerRMI - a remote reference to the servernewSessionID - 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 eventnewServerHTTP - a wrapper object linked to a wrapper servlet.newSessionID - a unique identifier assigned by the server to this connection
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