public class GridJobSiblingImpl extends GridMetadataAwareAdapter implements GridComputeJobSibling, Externalizable
| Constructor and Description |
|---|
GridJobSiblingImpl() |
GridJobSiblingImpl(GridUuid sesId,
GridUuid jobId,
UUID nodeId,
GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Sends a request to cancel this sibling.
|
GridUuid |
getJobId()
Gets ID of this grid job sibling.
|
boolean |
isJobDone() |
Object |
jobTopic() |
UUID |
nodeId() |
void |
nodeId(UUID nodeId) |
void |
onJobDone() |
void |
readExternal(ObjectInput in) |
Object |
taskTopic() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
addMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, readExternalMeta, removeMeta, removeMeta, replaceMeta, writeExternalMetaequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, removeMeta, removeMeta, replaceMetapublic GridJobSiblingImpl()
public GridJobSiblingImpl(GridUuid sesId, GridUuid jobId, UUID nodeId, GridKernalContext ctx)
sesId - Task session ID.jobId - Job ID.nodeId - ID of the node where this sibling was sent for execution.ctx - Managers registry.public GridUuid getJobId()
getJobId in interface GridComputeJobSiblingpublic UUID nodeId()
public void nodeId(UUID nodeId)
nodeId - Node where this sibling is executing.public boolean isJobDone()
True if job has finished.public void onJobDone()
public Object taskTopic()
public Object jobTopic()
public void cancel()
throws GridException
cancel in interface GridComputeJobSiblingGridException - If cancellation message could not be sent.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2014. All rights reserved.