net.agmodel.utilBean
Class ServiceBeanEvent
java.lang.Object
|
+--java.util.EventObject
|
+--net.agmodel.utilBean.ServiceBeanEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ServerBeanEvent
- public class ServiceBeanEvent
- extends EventObject
Generic class containing contact details for a newly-connected server.
- See Also:
- Serialized Form
serverRMI
protected Remote serverRMI
serverHTTP
protected ServiceHTTP serverHTTP
ServiceBeanEvent
public ServiceBeanEvent(Object source,
Remote newService)
- Create a new event corresponding to an RMI connection to the server.
- Parameters:
source - the originator of the eventnewService - a remote reference to the server
ServiceBeanEvent
public ServiceBeanEvent(Object source,
ServiceHTTP newServiceHTTP)
- Create a new event corresponding to an HTTP connection to the server.
- Parameters:
source - the originator of the eventnewServiceHTTP - a wrapper object linked to a wrapper servlet.
getServiceRMI
public Remote getServiceRMI()
- 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.
getServiceHTTP
public ServiceHTTP getServiceHTTP()
- 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.