GigaSpaces XAP 9.7.2 API

org.openspaces.admin.pu.events
Class ProcessingUnitInstanceProvisionStatusChangedEvent

java.lang.Object
  extended by 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()

Constructor Summary
ProcessingUnitInstanceProvisionStatusChangedEvent(ProcessingUnit processingUnit, String processingUnitInstanceName, ProvisionStatus previousStatus, ProvisionStatus newStatus, GridServiceContainer gridServiceContainer, ProcessingUnitInstance processingUnitInstance)
           
ProcessingUnitInstanceProvisionStatusChangedEvent(ProcessingUnit processingUnit, String processingUnitInstanceName, ProvisionStatus previousStatus, ProvisionStatus newStatus, String gscServiceId)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.