org.activemq.transport
Class TransportStatusEvent

java.lang.Object
  extended by org.activemq.transport.TransportStatusEvent

public class TransportStatusEvent
extends Object

A TransportStatusEvent is raised when the state of the underlying transport channel changes

Version:
$Revision: 1.2 $

Field Summary
static int CONNECTED
          The channel has been intially and successfully connected
static int DISCONNECTED
          The channel has been disconnected, but maybe reconnected
static int FAILED
          The channel has failed
static int RECONNECTED
          The channel has successfully reconnected after a disconnect
static int STOPPED
          The channel has been STOPPED
 
Constructor Summary
TransportStatusEvent()
          Default Constructor
TransportStatusEvent(TransportChannel tc, int channelStatus)
          Constructs an event with the given channel status.
 
Method Summary
 int getChannelStatus()
           
 URI getRemoteURI()
           
 TransportChannel getTransportChannel()
           
 void setChannelStatus(int channelStatus)
           
 void setRemoteURI(URI remoteURI)
           
 void setTransportChannel(TransportChannel transportChannel)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONNECTED

public static final int CONNECTED
The channel has been intially and successfully connected

See Also:
Constant Field Values

DISCONNECTED

public static final int DISCONNECTED
The channel has been disconnected, but maybe reconnected

See Also:
Constant Field Values

RECONNECTED

public static final int RECONNECTED
The channel has successfully reconnected after a disconnect

See Also:
Constant Field Values

FAILED

public static final int FAILED
The channel has failed

See Also:
Constant Field Values

STOPPED

public static final int STOPPED
The channel has been STOPPED

See Also:
Constant Field Values
Constructor Detail

TransportStatusEvent

public TransportStatusEvent()
Default Constructor


TransportStatusEvent

public TransportStatusEvent(TransportChannel tc,
                            int channelStatus)
Constructs an event with the given channel status.

Parameters:
tc -
channelStatus - the channel status
Method Detail

toString

public String toString()
Overrides:
toString in class Object
Returns:
a pretty print of this

getChannelStatus

public int getChannelStatus()
Returns:
Returns the channelStatus.

setChannelStatus

public void setChannelStatus(int channelStatus)
Parameters:
channelStatus - The channelStatus to set.

getTransportChannel

public TransportChannel getTransportChannel()
Returns:
Returns the transportChannel.

setTransportChannel

public void setTransportChannel(TransportChannel transportChannel)
Parameters:
transportChannel - The transportChannel to set.

getRemoteURI

public URI getRemoteURI()
Returns:
Returns the remoteURI.

setRemoteURI

public void setRemoteURI(URI remoteURI)
Parameters:
remoteURI - The remoteURI to set.


Copyright © 2004-2010 Protique, Ltd.. All Rights Reserved.