public abstract class Slot extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ALLOCATED_AND_ALIVE |
protected static int |
CANCELLED |
protected static int |
RELEASED |
| Constructor and Description |
|---|
Slot(JobID jobID,
Instance instance,
int slotNumber,
SharedSlot parent,
AbstractID groupID) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
cancel() |
AbstractID |
getGroupID() |
Instance |
getInstance() |
JobID |
getJobID()
Returns the ID of the job this allocated slot belongs to.
|
abstract int |
getNumberLeaves() |
SharedSlot |
getParent() |
Slot |
getRoot() |
int |
getSlotNumber() |
int |
getStatus() |
protected String |
hierarchy() |
boolean |
isAlive() |
boolean |
isCanceled() |
boolean |
isDead() |
boolean |
isDisposed() |
boolean |
isReleased() |
boolean |
markCancelled() |
boolean |
markDead()
Marks this shared slot to be dead.
|
boolean |
markDisposed() |
boolean |
markReleased() |
abstract void |
releaseSlot() |
String |
toString() |
protected static final int ALLOCATED_AND_ALIVE
protected static final int CANCELLED
protected static final int RELEASED
public Slot(JobID jobID, Instance instance, int slotNumber, SharedSlot parent, AbstractID groupID)
public JobID getJobID()
public Instance getInstance()
public int getSlotNumber()
public AbstractID getGroupID()
public SharedSlot getParent()
public Slot getRoot()
public int getStatus()
public abstract int getNumberLeaves()
public boolean isAlive()
public boolean isCanceled()
public boolean isReleased()
public abstract void cancel()
public abstract void releaseSlot()
public boolean markReleased()
public boolean markCancelled()
public boolean markDead()
SlotSharingGroupAssignment attribute assignmentGroup.public boolean isDead()
public boolean markDisposed()
public boolean isDisposed()
protected String hierarchy()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.