HPSearch

cgl.hpsearch.wsproxy
Class WrapperProxyWebService

java.lang.Object
  extended bycgl.hpsearch.wsproxy.ProxyWebService
      extended bycgl.hpsearch.wsproxy.WrapperProxyWebService
All Implemented Interfaces:
Runnable

public abstract class WrapperProxyWebService
extends ProxyWebService
implements Runnable

Created on Sep 15, 2004

Author:
Harshawardhan Gadgil (hgadgil@grids.ucs.indiana.edu)

Field Summary
 
Fields inherited from class cgl.hpsearch.wsproxy.ProxyWebService
container, INCORRECT_PARAMETERS, INIT_FAILURE, INIT_SUCCESS, INVOCATION_ERROR, SERVICE_DONE, SERVICE_FINISHED, SERVICE_NOT_FOUND, SERVICE_READY, SERVICE_RUNNING, SERVICE_STATUS, SERVICE_STOPPED, SERVICE_SUSPENDED, SERVICE_TERMINATED, serviceName
 
Constructor Summary
WrapperProxyWebService()
           
 
Method Summary
 String[] Exceptions()
           
abstract  void initService(InputStream[] in, OutputStream[] out)
          Should be used by services to set the i/p and o/p streams.
abstract  void process()
          Other services MUST override this.
 void resumeService()
           
 void run()
           
 void startService()
           
 void stopService()
           
 void suspendService()
           
 
Methods inherited from class cgl.hpsearch.wsproxy.ProxyWebService
cleanup, getContext, getNewTemporaryFileName, getProperty, getStatus, handleException, registerTemporaryFile, serviceExceptions, serviceFinished, setContext, setInvocationHandler, setLogEntry, setProperty, setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperProxyWebService

public WrapperProxyWebService()
Method Detail

startService

public void startService()
                  throws Exception
Specified by:
startService in class ProxyWebService
Throws:
Exception

stopService

public void stopService()
                 throws Exception
Specified by:
stopService in class ProxyWebService
Throws:
Exception

suspendService

public void suspendService()
                    throws Exception
Specified by:
suspendService in class ProxyWebService
Throws:
Exception

resumeService

public void resumeService()
                   throws Exception
Specified by:
resumeService in class ProxyWebService
Throws:
Exception

process

public abstract void process()
                      throws Exception
Description copied from class: ProxyWebService
Other services MUST override this. This defines the unit of execution of the service.

Specified by:
process in class ProxyWebService
Throws:
Exception

initService

public abstract void initService(InputStream[] in,
                                 OutputStream[] out)
Description copied from class: ProxyWebService
Should be used by services to set the i/p and o/p streams.

Specified by:
initService in class ProxyWebService
Parameters:
in - - An array containing input streams used by the service
out - - An array containing output streams used by the service

Exceptions

public String[] Exceptions()

run

public final void run()
Specified by:
run in interface Runnable

HPSearch

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