Prism.extensions.port.distribution
Class Connection

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

public class Connection
extends java.lang.Object

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()
           
 AbstractDistribution getParentDistribution()
           
 int getPort()
           
 void readEvent(java.lang.Object eventObject)
           
 void teardown()
           
 void writeEvent(java.lang.Object eventObject)
           
 
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()

getPort

public int getPort()

getParentDistribution

public AbstractDistribution getParentDistribution()

writeEvent

public void writeEvent(java.lang.Object eventObject)

readEvent

public void readEvent(java.lang.Object eventObject)

close

public void close()

teardown

public void teardown()