public class InstanceNotifier extends Thread
Instance to the given InstanceListener object. The notification must be sent from
a separate thread, otherwise the atomic operation of requesting an instance
for a vertex and switching to the state ASSIGNING could not be guaranteed.
This class is thread-safe.Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
InstanceNotifier(InstanceListener instanceListener,
JobID jobID,
List<AllocatedResource> allocatedResources)
Constructs a new instance notifier object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic InstanceNotifier(InstanceListener instanceListener, JobID jobID, List<AllocatedResource> allocatedResources)
instanceListener - the listener to send the notification tojobID - the ID of the job the notification refers toallocatedResources - the resources with has been allocated for the jobCopyright © 2014 The Apache Software Foundation. All rights reserved.