org.gridvise.coherence.cache.invocation
Class AbstractRemoteTask<R>

java.lang.Object
  extended by org.gridvise.coherence.cache.invocation.AbstractRemoteTask<R>
All Implemented Interfaces:
com.tangosol.io.pof.PortableObject, com.tangosol.net.Invocable, Serializable, Runnable

public abstract class AbstractRemoteTask<R>
extends Object
implements com.tangosol.net.Invocable, com.tangosol.io.pof.PortableObject

See Also:
Serialized Form

Constructor Summary
AbstractRemoteTask()
           
 
Method Summary
protected  void addParameter(String name, Serializable value)
           
abstract  R execute()
           
protected
<P> P
getParameter(String name)
           
 Object getResult()
           
 void init(com.tangosol.net.InvocationService invocationService)
           
 void readExternal(com.tangosol.io.pof.PofReader pofReader)
           
 void run()
           
 void writeExternal(com.tangosol.io.pof.PofWriter pofWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRemoteTask

public AbstractRemoteTask()
Method Detail

execute

public abstract R execute()

getResult

public Object getResult()
Specified by:
getResult in interface com.tangosol.net.Invocable

init

public void init(com.tangosol.net.InvocationService invocationService)
Specified by:
init in interface com.tangosol.net.Invocable

run

public void run()
Specified by:
run in interface com.tangosol.net.Invocable
Specified by:
run in interface Runnable

addParameter

protected void addParameter(String name,
                            Serializable value)

getParameter

protected <P> P getParameter(String name)

readExternal

public void readExternal(com.tangosol.io.pof.PofReader pofReader)
                  throws IOException
Specified by:
readExternal in interface com.tangosol.io.pof.PortableObject
Throws:
IOException

writeExternal

public void writeExternal(com.tangosol.io.pof.PofWriter pofWriter)
                   throws IOException
Specified by:
writeExternal in interface com.tangosol.io.pof.PortableObject
Throws:
IOException


Copyright © 2013. All Rights Reserved.