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.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CommunicationManager
public CommunicationManager()
- No-args constructor.
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 - destinationmessage - 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