HPSearch

cgl.hpsearch.engine.URIBindings
Class ClientSocketHandler

java.lang.Object
  extended bycgl.hpsearch.engine.URIBindings.ClientSocketHandler
All Implemented Interfaces:
SystemConstants

public class ClientSocketHandler
extends Object
implements SystemConstants

Handler for reading and writing from/to server socket.

Author:
Harshawardhan S. Gadgil

Field Summary
 
Fields inherited from interface cgl.hpsearch.common.SystemConstants
ABANDON_HANDLER, ABANDONED, BROKER_HOST, BROKER_PORT, BUF_SIZE, EOT, EXCEPTION, FAILURE, FILESEPARTOR, FLOW_LOGGING_MANAGER, FLOW_MANAGER, HPSEARCH_CONFIG, HPSEARCH_HOME, HPSEARCH_SHELL, HPSEARCH_WS, MARKER, NB_HOME, NB_PERFORMANCE_DATA_TOPIC, OS_TYPE, OS_UNIX, OS_WIN, PORT, PROTOCOL, READY, RESUME, RUNNING, SCRIPT_ARGS, SCRIPT_PATH, SHELLWS_PORT, START_HANDLER, STREAM_MARKER_DATA, STREAM_MARKER_EOF, STX, SUCCESS, SUSPEND, TASK_DEFINED, TASK_SCHEDULER_ENGINE, TASKSCHEDULER_AUTO_CONNECT_COMM_LINK, TASKSCHEDULER_ENGINE_COMM_LINK, THREAD_SLEEP_INTERVAL, UNKNOWN, WAITING, WSCONTEXT_RESULT_BIN, WSCONTEXT_SERVICE
 
Constructor Summary
ClientSocketHandler()
          Connects to a server socket specified by the the string ipAddr/port pair.
 
Method Summary
 void Connect(String ipAddrPort)
          Try and connect to the server socket.
 InputStream getInputStream()
          Get the socket's input stream.
 OutputStream getOutputStream()
          Get the socket's output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientSocketHandler

public ClientSocketHandler()
Connects to a server socket specified by the the string ipAddr/port pair.

Method Detail

Connect

public void Connect(String ipAddrPort)
Try and connect to the server socket. Does not return until connection is made...

Parameters:
ipAddrPort - The ipaddress:port string of the server

getInputStream

public InputStream getInputStream()
Get the socket's input stream.

Returns:
The socket's input stream, Null on error

getOutputStream

public OutputStream getOutputStream()
Get the socket's output stream. Provided for future use only.

Returns:
The socket's output stream, Null on error

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006