|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.AbstractInvocable
com.tangosol.coherence.weblogic.PortalCacheProvider.FlushAgent
public static class PortalCacheProvider.FlushAgent
Invocable implementation that is used to flush a Cache instance located on one or more remote cluster nodes.
Field Summary | |
---|---|
protected Object |
m_oKey The optional key to flush. |
protected String |
m_sName The name of the Cache to flush. |
protected String |
m_sScopeId The scope identifier of the CacheProvider that created this FlushAgent. |
Fields inherited from interface com.tangosol.net.PriorityTask |
---|
SCHEDULE_FIRST, SCHEDULE_IMMEDIATE, SCHEDULE_STANDARD, TIMEOUT_DEFAULT, TIMEOUT_NONE |
Constructor Summary | |
---|---|
|
PortalCacheProvider.FlushAgent() Default constructor necessary for ExternalizableLite support. |
protected |
PortalCacheProvider.FlushAgent(String sName, Object oKey, String sScopeId) Create a new FlushAgent that can be used to flush the Cache with the given name. |
Method Summary | |
---|---|
protected String |
getCacheName() Return the name of the Cache to flush. |
protected String |
getDescription() Return a string representation of this EntryInfo's attributes. |
protected Object |
getKey() Return the optional key to flush. |
protected Object |
getScopeIdentifier() Return the scope identifier of the CacheProvider that created this FlushAgent. |
void |
init(InvocationService service) Called by the InvocationService exactly once on this Invocable object as part of its initialization. |
void |
readExternal(DataInput in) Restore the contents of this object by loading the object's state from the passed DataInput object. |
void |
run() Called exactly once by the InvocationService to invoke this Invocable object. |
String |
toString() Return a human readable description of this FlushAgent object. |
void |
writeExternal(DataOutput out) Save the contents of this object by storing the object's state into the passed DataOutput object. |
Methods inherited from class com.tangosol.net.AbstractInvocable |
---|
getExecutionTimeoutMillis, getRequestTimeoutMillis, getResult, getSchedulingPriority, getService, isRespondInOrder, runCanceled, setResult |
Field Detail |
---|
protected String m_sName
protected Object m_oKey
protected String m_sScopeId
Constructor Detail |
---|
public PortalCacheProvider.FlushAgent()
protected PortalCacheProvider.FlushAgent(String sName, Object oKey, String sScopeId)
sName
- the name of the Cache to flush; must not be nulloKey
- an optional key; if non-null, only the Cache entry with the given key will be flushedsScopeId
- the scope identifier of the CacheProvider that is creating this FlushAgentMethod Detail |
---|
public void init(InvocationService service)
init
in interface Invocable
init
in class AbstractInvocable
service
- the containing InvocationServicepublic void run()
run
in interface Invocable
run
in interface Runnable
Thread.run()
public void readExternal(DataInput in) throws IOException
readExternal
in interface ExternalizableLite
in
- the DataInput stream to read data from in order to restore the state of this objectIOException
- if an I/O exception occursNotActiveException
- if the object is not in its initial state, and therefore cannot be deserialized intopublic void writeExternal(DataOutput out) throws IOException
writeExternal
in interface ExternalizableLite
out
- the DataOutput stream to write the state of this object toIOException
- if an I/O exception occurspublic String toString()
protected String getDescription()
protected String getCacheName()
protected Object getKey()
protected Object getScopeIdentifier()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |