org.openspaces.admin.pu.events
Class ProcessingUnitInstanceProvisionStatusChangedEvent
java.lang.Object
org.openspaces.admin.pu.events.ProcessingUnitInstanceProvisionStatusChangedEvent
public class ProcessingUnitInstanceProvisionStatusChangedEvent
- extends Object
An event raised when a processing unit instance ProvisionStatus
has changed.
- Since:
- 8.0.6
- Author:
- moran
- See Also:
ProcessingUnit.getProcessingUnitInstanceProvisionStatusChanged()
,
ProcessingUnits.getProcessingUnitInstanceProvisionStatusChanged()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessingUnitInstanceProvisionStatusChangedEvent
public ProcessingUnitInstanceProvisionStatusChangedEvent(ProcessingUnit processingUnit,
String processingUnitInstanceName,
ProvisionStatus previousStatus,
ProvisionStatus newStatus,
GridServiceContainer gridServiceContainer,
ProcessingUnitInstance processingUnitInstance)
ProcessingUnitInstanceProvisionStatusChangedEvent
public ProcessingUnitInstanceProvisionStatusChangedEvent(ProcessingUnit processingUnit,
String processingUnitInstanceName,
ProvisionStatus previousStatus,
ProvisionStatus newStatus,
String gscServiceId)
getProcessingUnit
public ProcessingUnit getProcessingUnit()
- Returns:
- The processing unit this event refers to.
getProcessingUnitInstanceName
public String getProcessingUnitInstanceName()
- Returns:
- The processing unit instance name this event refers to.
- See Also:
ProcessingUnitInstance.getProcessingUnitInstanceName().
getPreviousStatus
public ProvisionStatus getPreviousStatus()
- Returns:
- The previous provision status or
null
if not status was recorded.
getNewStatus
public ProvisionStatus getNewStatus()
- Returns:
- The current (new) provision status for the specified processing unit instance.
getGridServiceContainer
public GridServiceContainer getGridServiceContainer()
- For
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
.
- Returns:
- The Grid Service Container this provision change refers to. May be
null
.
getProcessingUnitInstance
public ProcessingUnitInstance getProcessingUnitInstance()
- For
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
.
- Returns:
- The Processing Unit Instance (extracted by name) this provision change refers to. May be
null
.
Copyright © GigaSpaces.