aleph.comm.udp
Class CommunicationManager
java.lang.Object
|
+--aleph.comm.CommunicationManager
|
+--aleph.comm.udp.CommunicationManager
- public class CommunicationManager
- extends CommunicationManager
| 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
getLabel
public java.lang.String getLabel()
- Returns:
- who we are
send
public void send(Address _address,
Message message)
throws java.io.IOException
- 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 destination)
throws java.io.InterruptedIOException
- Wait until all packets sent to this address are acknowledged.
- Parameters:
destination - where packets were senttimout - when to give up- Throws:
- java.io.InterruptedIOException - on timeout
- Overrides:
- flush in class CommunicationManager
ping
public boolean ping(Address destination)
- Detect if anyone is listening to this connection.
- 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