public interface InstanceListener
InstanceListener interface can be notified about
the availability or the unexpected failure of an instance.| Modifier and Type | Method and Description |
|---|---|
void |
allocatedResourcesDied(JobID jobID,
List<AllocatedResource> allocatedResource)
Called if one or more allocated resources assigned to at least one job have died unexpectedly.
|
void |
resourcesAllocated(JobID jobID,
List<AllocatedResource> allocatedResources)
Called if one or more requested resources have become available.
|
void resourcesAllocated(JobID jobID, List<AllocatedResource> allocatedResources)
jobID - the ID of the job the initial request has been triggered forallocatedResources - the resources which have been allocated as a response to the initial requestvoid allocatedResourcesDied(JobID jobID, List<AllocatedResource> allocatedResource)
jobID - the ID of the job the instance is used forallocatedResource - the allocated resources which are affected by the instance deathCopyright © 2014 The Apache Software Foundation. All rights reserved.