aleph.comm.tcp
Class CommunicationManager

java.lang.Object
  |
  +--aleph.comm.CommunicationManager
        |
        +--aleph.comm.tcp.CommunicationManager

public class CommunicationManager
extends CommunicationManager

TCP-based implementation of Communication Manager.


Fields inherited from class aleph.comm.CommunicationManager
theManager
 
Constructor Summary
CommunicationManager()
          No-args constructor.
 
Method Summary
 void close()
          Shuts down this CommunicationManager
 void flush(Address address)
          Make sure nothing left in the stream.
 Address getAddress()
           
 Address getConsoleAddress()
           
 Address getParentAddress()
           
 boolean ping(Address address)
          Ask if connection is active.
 void send(Address _address, Message message)
          Sends a message
 
Methods inherited from class aleph.comm.CommunicationManager
getManager, send, setManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommunicationManager

public CommunicationManager()
No-args constructor.
Method Detail

getAddress

public Address getAddress()
Returns:
my address
Overrides:
getAddress in class CommunicationManager

send

public void send(Address _address,
                 Message message)
Sends a message
Parameters:
address - destination
message - what to send
Overrides:
send in class CommunicationManager

close

public void close()
Shuts down this CommunicationManager
Overrides:
close in class CommunicationManager

flush

public void flush(Address address)
Make sure nothing left in the stream.
Overrides:
flush in class CommunicationManager

ping

public boolean ping(Address address)
Ask if connection is active.
Overrides:
ping in class CommunicationManager

getConsoleAddress

public Address getConsoleAddress()
Returns:
the Console's address Computed from aleph.console.addressand aleph.console.port properties.
Overrides:
getConsoleAddress in class CommunicationManager

getParentAddress

public Address getParentAddress()
Returns:
parent's address, or null
Overrides:
getParentAddress in class CommunicationManager