fulmine.distribution.events
Class ContextDiscoveredEvent

java.lang.Object
  extended by fulmine.event.AbstractEvent
      extended by fulmine.event.system.AbstractSystemEvent
          extended by fulmine.distribution.events.ContextDiscoveredEvent
All Implemented Interfaces:
IEvent, ISystemEvent, IAddressable, IDescriptor, Cloneable

public final class ContextDiscoveredEvent
extends AbstractSystemEvent

Raised by an IConnectionDiscoverer implementation and encapsulates the connection details to a remote IFrameworkContext.

Author:
Ramon Servadei

Constructor Summary
ContextDiscoveredEvent(IEventManager context, IConnectionParameters connectionParameters)
          Standard constructor with the details of how to connect to a discovered remote IFrameworkContext
 
Method Summary
protected  String getAdditionalToString()
          Delegate method for subclasses to provide additional toString information.
<T extends IConnectionParameters>
T
getConnectionParameters()
          Get the details required to make the connection to the remote IFrameworkContext
 String toDetailedString()
          Provides a formatted string describing this object in detail.
 String toIdentityString()
          Get a string that provides the identification for this object.
 
Methods inherited from class fulmine.event.system.AbstractSystemEvent
hideSourceFromToString
 
Methods inherited from class fulmine.event.AbstractEvent
clone, equals, getAddress, getDomain, getDrivingFrame, getFrame, getIdentity, getSource, getTriggerEvent, getType, hashCode, setAddress, setDrivingFrame, setFrame, setSource, setTriggerEvent, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fulmine.event.IEvent
clone, getDrivingFrame, getFrame, getSource, getTriggerEvent, setTriggerEvent
 
Methods inherited from interface fulmine.IAddressable
getAddress, getDomain, getIdentity, getType
 

Constructor Detail

ContextDiscoveredEvent

public ContextDiscoveredEvent(IEventManager context,
                              IConnectionParameters connectionParameters)
Standard constructor with the details of how to connect to a discovered remote IFrameworkContext

Parameters:
context - the context for event operations
connectionParameters - the details required to make the connection to the remote context
Method Detail

getConnectionParameters

public <T extends IConnectionParameters> T getConnectionParameters()
Get the details required to make the connection to the remote IFrameworkContext

Type Parameters:
T - a type of IConnectionParameters
Returns:
the parameters that can be used to create the IConnection to the remote context
See Also:
IConnectionBroker.connect(IConnectionParameters)

toDetailedString

public String toDetailedString()
Description copied from interface: IDescriptor
Provides a formatted string describing this object in detail. This has the same or more information than the standard Object.toString() method.

Specified by:
toDetailedString in interface IDescriptor
Overrides:
toDetailedString in class AbstractEvent
Returns:
a formatted string describing this object in detail

toIdentityString

public String toIdentityString()
Description copied from interface: IDescriptor
Get a string that provides the identification for this object. This should have no more detail than the Object.toString() method.

Specified by:
toIdentityString in interface IDescriptor
Overrides:
toIdentityString in class AbstractEvent
Returns:
a string that provides the identification for this object

getAdditionalToString

protected String getAdditionalToString()
Description copied from class: AbstractEvent
Delegate method for subclasses to provide additional toString information. This should be a comma separated string, e.g. "one, two, three"

Overrides:
getAdditionalToString in class AbstractSystemEvent
Returns:
the additional toString information in comma separated format


Copyright © 2007-2009. All Rights Reserved.