com.ibm.etill.framework.io
Class SocketComPoint

java.lang.Object
  |
  +--com.ibm.etill.framework.io.SocketComPoint
All Implemented Interfaces:
ComPoint
Direct Known Subclasses:
SyncSocketComPoint

public abstract class SocketComPoint
extends Object
implements ComPoint

This is an abstract client ComPoint class for Socket based communications. This class instantiates Socket objects to generate socket connections to a specified host. The class is used to create concrete classes that establish connections for specific ETillConnection objects. Thus, a concrete class need only override the establishConnection() method.


Fields inherited from interface com.ibm.etill.framework.io.ComPoint
COMPOINT_CLOSED, COMPOINT_OPEN
 
Constructor Summary
SocketComPoint(String hostName, int aPort)
          Default Constructor
 
Method Summary
 String getClassName()
          getClassName()
 String getHost()
          getHost()
 int getPort()
          getPort()
 int getTimeOut()
          getTimeOut()
 void setClassName(String name)
          setClassName()
 String toString()
          toString()
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.etill.framework.io.ComPoint
establishConnection
 

Constructor Detail

SocketComPoint

public SocketComPoint(String hostName,
                      int aPort)
Default Constructor
Parameters:
hostName - The server(host) name
port - The port number for the connection
Method Detail

getTimeOut

public int getTimeOut()
getTimeOut()

getClassName

public String getClassName()
getClassName()

setClassName

public void setClassName(String name)
setClassName()

getHost

public String getHost()
getHost()
Returns:
A Host address

getPort

public int getPort()
getPort()
Returns:
A port number

toString

public String toString()
toString()
Overrides:
toString in class Object
Returns:
A String representation of the class