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

Field Summary
protected  ServiceHTTP serverHTTP
           
protected  Remote serverRMI
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServiceBeanEvent(Object source, Remote newService)
          Create a new event corresponding to an RMI connection to the server.
ServiceBeanEvent(Object source, ServiceHTTP newServiceHTTP)
          Create a new event corresponding to an HTTP connection to the server.
 
Method Summary
 ServiceHTTP getServiceHTTP()
          Get a wrapper object linked servlet wrapper for the server.
 Remote getServiceRMI()
          Get the remote reference to the broker.
 
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

serverRMI

protected Remote serverRMI

serverHTTP

protected ServiceHTTP serverHTTP
Constructor Detail

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 event
newService - 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 event
newServiceHTTP - a wrapper object linked to a wrapper servlet.
Method Detail

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.