net.agmodel.utilBean
Class DataSourceEvent

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

public class DataSourceEvent
extends ServerBeanEvent

Contains details of the currently selected data source, and provides a connection to the broker.

See Also:
Serialized Form

Field Summary
protected  DataSourceDetail dataSource
           
 
Fields inherited from class net.agmodel.utilBean.ServiceBeanEvent
serverHTTP, serverRMI
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DataSourceEvent(Object source, GenericBrokerHTTP newBroker, String newSessionID, DataSourceDetail newSource)
          Create a new event corresponding to an HTTP connection to the broker.
DataSourceEvent(Object source, GenericBrokerRMI newBroker, String newSessionID, DataSourceDetail newSource)
          Create a new event corresponding to an RMI connection to the broker.
 
Method Summary
 DataSourceDetail getDataSourceDetail()
          Gets details of the currently selected data source.
 
Methods inherited from class net.agmodel.utilBean.ServerBeanEvent
getServerHTTP, getServerRMI, getSessionID
 
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
 

Field Detail

dataSource

protected DataSourceDetail dataSource
Constructor Detail

DataSourceEvent

public DataSourceEvent(Object source,
                       GenericBrokerRMI newBroker,
                       String newSessionID,
                       DataSourceDetail newSource)
Create a new event corresponding to an RMI connection to the broker.

Parameters:
source - the originator of the event
newBroker - a remote reference to the broker
newSessionID - a unique identifier assigned by the broker to this connection
newSource - details of the currently selected data source

DataSourceEvent

public DataSourceEvent(Object source,
                       GenericBrokerHTTP newBroker,
                       String newSessionID,
                       DataSourceDetail newSource)
Create a new event corresponding to an HTTP connection to the broker.

Parameters:
source - the originator of the event
newSessionID - a unique identifier assigned by the broker to this connection
newSource - details of the currently selected data source
Method Detail

getDataSourceDetail

public DataSourceDetail getDataSourceDetail()
Gets details of the currently selected data source.