cgl.hpsearch.wsproxy
Class RunnableProxyWebService
java.lang.Object
cgl.hpsearch.wsproxy.ProxyWebService
cgl.hpsearch.wsproxy.RunnableProxyWebService
- All Implemented Interfaces:
- Runnable
- public abstract class RunnableProxyWebService
- extends ProxyWebService
- implements Runnable
Provides an Implementation of the RunnableProxyWebService Interface.
Interested implementors of services / existing service wrappers must extend
this class and implement the process method. The process
method contains the processing that needs to be done as part of the service.
The sole purpose of this implementation is to provide a thread-safe service
with additional features such as start, suspend, resume and stop.
Created on Apr 23, 2004
- Author:
- Harshawardhan Gadgil (hgadgil@grids.ucs.indiana.edu)
| 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 |
| Methods inherited from class cgl.hpsearch.wsproxy.ProxyWebService |
cleanup, getContext, getNewTemporaryFileName, getProperty, getStatus, handleException, initService, process, 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 |
RunnableProxyWebService
public RunnableProxyWebService()
startService
public final void startService()
throws Exception
- Specified by:
startService in class ProxyWebService
- Throws:
Exception
stopService
public final void stopService()
throws Exception
- Specified by:
stopService in class ProxyWebService
- Throws:
Exception
suspendService
public final void suspendService()
throws Exception
- Specified by:
suspendService in class ProxyWebService
- Throws:
Exception
resumeService
public final void resumeService()
throws Exception
- Specified by:
resumeService in class ProxyWebService
- Throws:
Exception
run
public final void run()
- Starts the thread of execution
- Specified by:
run in interface Runnable
- See Also:
Runnable.run()