aleph.comm.udp
Class CommunicationManager

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

public class CommunicationManager
extends CommunicationManager


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 destination)
          Wait until all packets sent to this address are acknowledged.
 Address getAddress()
           
 Address getConsoleAddress()
           
 java.lang.String getLabel()
           
 Address getParentAddress()
           
 boolean ping(Address destination)
          Detect if anyone is listening to this connection.
 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

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 - 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 destination)
           throws java.io.InterruptedIOException
Wait until all packets sent to this address are acknowledged.
Parameters:
destination - where packets were sent
timout - 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