fulmine.distribution.events
Class ConnectionDestroyedEvent

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

public final class ConnectionDestroyedEvent
extends AbstractSystemEvent

A system event raised by an IConnection implementation and represents that the connection has been destroyed. This is either due to the remote IFrameworkContext terminating the connection or the local context terminating the connection.

Author:
Ramon Servadei

Constructor Summary
ConnectionDestroyedEvent(IEventManager context, String remoteRuntimeIdentity)
          Standard constructor to encapsulate the identity of the remote IFrameworkContext that the destroyed connection was for
 
Method Summary
protected  String getAdditionalToString()
          Delegate method for subclasses to provide additional toString information.
 String getRemoteContextIdentity()
          Get the identity of the remote IFrameworkContext that the destroyed connection was for
 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

ConnectionDestroyedEvent

public ConnectionDestroyedEvent(IEventManager context,
                                String remoteRuntimeIdentity)
Standard constructor to encapsulate the identity of the remote IFrameworkContext that the destroyed connection was for

Parameters:
context - the context for event operations
remoteContextIdentity - the identity of the remote context that the destroyed connection was for
Method Detail

getRemoteContextIdentity

public String getRemoteContextIdentity()
Get the identity of the remote IFrameworkContext that the destroyed connection was for

Returns:
the identity of the remote context that the destroyed connection was for

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.