public class ProcessingUnitInstanceProvisionStatusChangedEvent extends Object
ProvisionStatus
has changed.ProcessingUnit.getProcessingUnitInstanceProvisionStatusChanged()
,
ProcessingUnits.getProcessingUnitInstanceProvisionStatusChanged()
Constructor and Description |
---|
ProcessingUnitInstanceProvisionStatusChangedEvent(ProcessingUnit processingUnit,
String processingUnitInstanceName,
ProvisionStatus previousStatus,
ProvisionStatus newStatus,
GridServiceContainer gridServiceContainer,
ProcessingUnitInstance processingUnitInstance,
ProcessingUnitInstanceProvisionFailure provisionFailure) |
ProcessingUnitInstanceProvisionStatusChangedEvent(ProcessingUnit processingUnit,
String processingUnitInstanceName,
ProvisionStatus previousStatus,
ProvisionStatus newStatus,
String gscServiceId,
ProcessingUnitInstanceProvisionFailure provisionFailure) |
Modifier and Type | Method and Description |
---|---|
GridServiceContainer |
getGridServiceContainer()
For
ProvisionStatus.ATTEMPT - returns the GridServiceContainer a processing
unit instance is instantiating on. |
ProvisionStatus |
getNewStatus() |
ProvisionStatus |
getPreviousStatus() |
ProcessingUnit |
getProcessingUnit() |
ProcessingUnitInstance |
getProcessingUnitInstance()
For
ProvisionStatus.ATTEMPT - returns null until the processing unit
instance is discovered and added. |
String |
getProcessingUnitInstanceName() |
ProcessingUnitInstanceProvisionFailure |
getProvisionFailure()
A provision life-cycle failure can result due to missing container, illegal instance count,
or a failure to instantiate.
|
public ProcessingUnitInstanceProvisionStatusChangedEvent(ProcessingUnit processingUnit, String processingUnitInstanceName, ProvisionStatus previousStatus, ProvisionStatus newStatus, GridServiceContainer gridServiceContainer, ProcessingUnitInstance processingUnitInstance, ProcessingUnitInstanceProvisionFailure provisionFailure)
public ProcessingUnitInstanceProvisionStatusChangedEvent(ProcessingUnit processingUnit, String processingUnitInstanceName, ProvisionStatus previousStatus, ProvisionStatus newStatus, String gscServiceId, ProcessingUnitInstanceProvisionFailure provisionFailure)
public ProcessingUnit getProcessingUnit()
public String getProcessingUnitInstanceName()
ProcessingUnitInstance.getProcessingUnitInstanceName().
public ProvisionStatus getPreviousStatus()
null
if not status was recorded.public ProvisionStatus getNewStatus()
public GridServiceContainer getGridServiceContainer()
ProvisionStatus.ATTEMPT
- returns the GridServiceContainer
a processing
unit instance is instantiating on. May be null
if not yet discovered. For ProvisionStatus.SUCCESS
- returns the GridServiceContainer
a processing unit
instance has successfully instantiated on. May be null
if not yet discovered.
For ProvisionStatus.FAILURE
- returns the GridServiceContainer
a processing
unit instance has failed to instantiate on. May be null
if no longer available.
For ProvisionStatus.PENDING
- returns null
.null
.public ProcessingUnitInstance getProcessingUnitInstance()
ProvisionStatus.ATTEMPT
- returns null
until the processing unit
instance is discovered and added. For ProvisionStatus.SUCCESS
- returns the ProcessingUnitInstance
that has successfully instantiated. May be null
if not
yet discovered. For ProvisionStatus.FAILURE
- returns null
. For ProvisionStatus.PENDING
- returns null
.null
.public ProcessingUnitInstanceProvisionFailure getProvisionFailure()
ProvisionStatus.PENDING
or ProvisionStatus.FAILURE
.getNewStatus()
, or null
if no failure was raised.Copyright © GigaSpaces.