public abstract class Slot extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ALLOCATED_AND_ALIVE |
protected static int |
CANCELLED |
protected Instance |
instance
The instance on which the slot is allocated
|
protected JobID |
jobID
The ID of the job this slice belongs to.
|
protected static int |
RELEASED |
protected int |
slotNumber
The number of the slot on which the task is deployed
|
protected int |
status
The state of the vertex, only atomically updated
|
protected static AtomicIntegerFieldUpdater<Slot> |
STATUS_UPDATER |
| 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() |
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 AtomicIntegerFieldUpdater<Slot> STATUS_UPDATER
protected static final int ALLOCATED_AND_ALIVE
protected static final int CANCELLED
protected static final int RELEASED
protected final JobID jobID
protected final Instance instance
protected final int slotNumber
protected volatile int status
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 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 © 2015 The Apache Software Foundation. All rights reserved.