Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.comm
Class AbstractChannel
All Implemented Interfaces:
       Channel
Direct Known Subclasses:
       ProtocolElement, TcpChannel, UDPChannel

public abstract class AbstractChannel      
Abstract.
Implements:
Channel
 
Links:
Kernel Association Association Link
to Interface ChannelListener
Associates type:
aggregation
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
0..1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
link:
aggregation
 
Kernel Association Association Link
to Enumeration ChannelState
Associates type:
aggregation
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
link:
aggregation
 
Kernel Association Association Link
to Interface ChannelStatusListener
Associates type:
aggregation
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
associates:
ChannelStatusListener
link:
aggregation
 
Implementation Implementation Link
to Interface Channel
 
 

Field Summary
protected static Logger
private ChannelState
private List
Constructor Summary
public void
Method Summary
public void
protected void
public abstract void
public abstract Address
public abstract Address
protected void
public abstract void
public void
public void
public void
public String
public abstract void
write(Message message)
Field Detail
channelListener
ChannelListener channelListener
 

channelListener
private ChannelListener channelListener
Multiplicity:
1
 

logger
protected static Logger logger
Multiplicity:
1
Static.
 

state
private ChannelState state
Multiplicity:
1
 

state
ChannelState state
 

statusListeners
private List statusListeners
Multiplicity:
1
Custom properties
associates:
ChannelStatusListener
 
Constructor Detail
AbstractChannel
public void AbstractChannel ()
 
Stereotype:
create
 
Method Detail
addChannelStatusListener
public void addChannelStatusListener (ChannelStatusListener listener)
 
Channel interface .Adds a channel status listener to this channel's
status listeners list
Parameters:
listener
ChannelStatusListener
 

cleanListeners
protected void cleanListeners ()
 
Cleans the status listener list and gives the garbagge collector a
helping hand.
 

close
public abstract void close ()
 
Channel interface . Closes the channel.
Abstract.
Throws:
ChannelException
 

getChannelListener
public ChannelListener getChannelListener ()
 
Channel interface. Returns this channel's listener.
Return:
ChannelListener
 

getLocalAddress
public abstract Address getLocalAddress ()
 
Channel interface. Returns the local address of a channel
Abstract.
 

getRemoteAddress
public abstract Address getRemoteAddress ()
 
Channel interface . Return the remote address of a channel
Abstract.
 

getState
public ChannelState getState ()
 
Returns the channel state
Return:
ChannelState
 

notifyStatusChange
protected void notifyStatusChange (ChannelState newState)
 
Sets the state and notifies any status listeners of a change in state.
Parameters:
newState
ChannelState
 

open
public abstract void open ()
 
Channel interface. Opens the channel
Abstract.
Throws:
ChannelException
 

removeChannelStatusListener
public void removeChannelStatusListener (ChannelStatusListener listener)
 
Channel interface . Removes a channel listener to this channel's status
listeners list
Parameters:
listener
ChannelStatusListener
 

setChannelListener
public void setChannelListener (ChannelListener listener)
 
Channel interface. Sets this channel's listener.
Parameters:
listener
ChannelListener
 

setState
public void setState (ChannelState newState)
 
Sets the channel state
Parameters:
newState
ChannelState
 

toString
public String toString ()
 
 

write
public abstract void write (Message message)
 
Channel interface. Writes a message to this channel.
Parameters:
message
Message
Abstract.
Throws:
ChannelException
 

Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD