Prism.extensions.port.distribution
Class Connection

java.lang.Object
  extended by Prism.extensions.port.distribution.AbstractConnection
      extended by Prism.extensions.port.distribution.Connection

public class Connection
extends AbstractConnection

Connection object used by the SocketDistribution to connect.


Constructor Summary
Connection(AbstractDistribution p, java.net.Socket s)
           
Connection(AbstractDistribution p, java.lang.String hostName, int portNum)
           
 
Method Summary
 void close()
           
 java.net.InetAddress getHost()
           
 int getPort()
           
 void readEvent(java.lang.Object eventObject)
           
 void teardown()
           
 void writeEvent(java.lang.Object eventObject)
           
 
Methods inherited from class Prism.extensions.port.distribution.AbstractConnection
getParentDistribution
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connection

public Connection(AbstractDistribution p,
                  java.lang.String hostName,
                  int portNum)

Connection

public Connection(AbstractDistribution p,
                  java.net.Socket s)
Method Detail

getHost

public java.net.InetAddress getHost()
Specified by:
getHost in class AbstractConnection

getPort

public int getPort()
Specified by:
getPort in class AbstractConnection

writeEvent

public void writeEvent(java.lang.Object eventObject)
Specified by:
writeEvent in class AbstractConnection

readEvent

public void readEvent(java.lang.Object eventObject)
Specified by:
readEvent in class AbstractConnection

close

public void close()
Specified by:
close in class AbstractConnection

teardown

public void teardown()
Specified by:
teardown in class AbstractConnection