|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.tangosol.util.Base
com.tangosol.net.AbstractInvocable
com.tangosol.coherence.commonj.WorkManager.AbstractWork
protected abstract static class WorkManager.AbstractWork
Base class for Invocable tasks related to the WorkManager. Note, that
aside of the ScheduleWork task all other tasks have
to be scheduled immediately.
| Field Summary | |
|---|---|
protected long |
m_lWorkId
The work id. |
protected int |
m_nMemberId
The Work originator Member id. |
| Fields inherited from interface com.tangosol.net.PriorityTask |
|---|
SCHEDULE_FIRST, SCHEDULE_IMMEDIATE, SCHEDULE_STANDARD, TIMEOUT_DEFAULT, TIMEOUT_NONE |
| Constructor Summary | |
|---|---|
WorkManager.AbstractWork()
Default constructor (necessary for a lite serialization). |
|
WorkManager.AbstractWork(long lWorkId,
int nMemberId)
Construct the AbstractWork to be executed on behalf of the specified member (a Work originator). |
|
| Method Summary | |
|---|---|
Member |
getMember()
Return a Work originator's Member object. |
int |
getMemberId()
Return a Work originator's Member id. |
int |
getSchedulingPriority()
Obtain this task's scheduling priority. Valid values are one of the SCHEDULE_* constants. |
long |
getWorkId()
Return a Work id. |
void |
readExternal(DataInput in)
Restore the contents of this object by loading the object's state from the passed DataInput 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, getService, init, isRespondInOrder, runCanceled, setResult |
| Field Detail |
|---|
protected long m_lWorkId
protected int m_nMemberId
| Constructor Detail |
|---|
public WorkManager.AbstractWork()
public WorkManager.AbstractWork(long lWorkId,
int nMemberId)
| Method Detail |
|---|
public int getSchedulingPriority()
This implementation returns SCHEDULE_STANDARD.
getSchedulingPriority in interface PriorityTaskgetSchedulingPriority in class AbstractInvocablepublic long getWorkId()
public int getMemberId()
public Member getMember()
public void readExternal(DataInput in)
throws IOException
readExternal in interface ExternalizableLitein - the DataInput stream to read data from in order to restore
the state of this object
IOException - if an I/O exception occurs
NotActiveException - if the object is not in its initial
state, and therefore cannot be deserialized into
public void writeExternal(DataOutput out)
throws IOException
writeExternal in interface ExternalizableLiteout - the DataOutput stream to write the state of this object to
IOException - if an I/O exception occurs
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||