com.jivesoftware.base.search.task
Class ServiceInvocation
java.lang.Object
com.jivesoftware.base.search.task.ServiceInvocation
- All Implemented Interfaces:
- com.tangosol.io.ExternalizableLite, com.tangosol.net.Invocable, commonj.work.Work, java.io.Serializable, java.lang.Runnable
- Direct Known Subclasses:
- TaskWithNoResult
public abstract class ServiceInvocation
- extends java.lang.Object
- implements commonj.work.Work, com.tangosol.io.ExternalizableLite, com.tangosol.net.Invocable
A ServiceInvocation is responsible for executing a service in a cluster service member.
Subclasses should implement executeService()
to define the service to be executed
in the remote cluster service member.
- See Also:
- Serialized Form
Method Summary |
abstract void |
executeService()
Effectively executes the requested service. |
abstract java.lang.Object |
getResult()
Returns the result of executing this task. |
void |
init(com.tangosol.net.InvocationService invocationService)
|
void |
release()
|
void |
run()
Invokes the services to be executed in the remote cluster member and updates the
current number of services being executed in the remote cluster member. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface commonj.work.Work |
isDaemon |
Methods inherited from interface com.tangosol.io.ExternalizableLite |
readExternal, writeExternal |
ServiceInvocation
public ServiceInvocation()
run
public void run()
- Invokes the services to be executed in the remote cluster member and updates the
current number of services being executed in the remote cluster member.
- Specified by:
run
in interface com.tangosol.net.Invocable
- Specified by:
run
in interface java.lang.Runnable
release
public void release()
- Specified by:
release
in interface commonj.work.Work
init
public void init(com.tangosol.net.InvocationService invocationService)
- Specified by:
init
in interface com.tangosol.net.Invocable
executeService
public abstract void executeService()
- Effectively executes the requested service. Subclass should implement this method
with the specific service logic.
getResult
public abstract java.lang.Object getResult()
- Returns the result of executing this task.
- Specified by:
getResult
in interface com.tangosol.net.Invocable
Copyright © 1999-2006 Jive Software.