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.
SocketComPoint
public SocketComPoint(String hostName,
int aPort)
- Default Constructor
- Parameters:
hostName
- The server(host) nameport
- The port number for the connection
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