Package org.openspaces.admin.pu
Interface ProcessingUnits
- All Superinterfaces:
AdminAware,Iterable<ProcessingUnit>,StatisticsMonitor
- All Known Subinterfaces:
InternalProcessingUnits
- All Known Implementing Classes:
DefaultProcessingUnits
Holds one or more
ProcessingUnits.- Author:
- kimchy
-
Field Summary
Fields inherited from interface org.openspaces.admin.StatisticsMonitor
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLifecycleListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Allows to add aProcessingUnitInstanceLifecycleEventListener.voidaddLifecycleListener(ProcessingUnitLifecycleEventListener eventListener) Allows to add aProcessingUnitLifecycleEventListener.Returns an event manager allowing to globally register for anyBackupGridServiceManagerChangedEvents occurring on any processing unit.Returns an event manager allowing to globally register for anyManagingGridServiceManagerChangedEvents occurring on any processing unit.getNames()Returns a map ofProcessingUnitkeyed by their respective names.getProcessingUnit(String name) Returns theProcessingUnitfor the given processing unit name.Returns an event manager allowing to registerProcessingUnitAddedEventListeners.Returns an event manager allowing to registerProcessingUnitInstanceAddedEventListeners.Returns an event manager allowing to registerProcessingUnitInstanceMemberAliveIndicatorStatusChangedEventListeners.Returns an event manager allowing to registerProcessingUnitInstanceProvisionStatusChangedEventListeners.Returns an event manager allowing to registerProcessingUnitInstanceRemovedEventListeners.Returns a processing unit instance statistics change event manger allowing to register for events ofProcessingUnitInstanceStatisticsChangedEvent.Returns an event manager allowing to registerProcessingUnitRemovedEventListeners.Returns theProcessingUnits currently deployed.Returns an event manager allowing to globally register for anyProcessingUnitSpaceCorrelatedEvents occurring on any processing unit.intgetSize()Returns the number of currently deployedProcessingUnits.booleanisEmpty()Returnstrueif there are no currently deployed processing units.voidAllows to remove aProcessingUnitInstanceLifecycleEventListener.voidremoveLifecycleListener(ProcessingUnitLifecycleEventListener eventListener) Allows to remove aProcessingUnitLifecycleEventListener.Waits indefinitely till the processing unit is identified as deployed.Waits for the specified timeout (in time interval) till the processing unit is identified as deployed.Methods inherited from interface org.openspaces.admin.AdminAware
getAdminMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.openspaces.admin.StatisticsMonitor
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMonitor
-
Method Details
-
getSize
int getSize()Returns the number of currently deployedProcessingUnits. -
isEmpty
boolean isEmpty()Returnstrueif there are no currently deployed processing units. -
getProcessingUnits
ProcessingUnit[] getProcessingUnits()Returns theProcessingUnits currently deployed. -
getProcessingUnit
Returns theProcessingUnitfor the given processing unit name. -
getNames
Map<String,ProcessingUnit> getNames()Returns a map ofProcessingUnitkeyed by their respective names. -
waitFor
Waits indefinitely till the processing unit is identified as deployed. Returns theProcessingUnit. -
waitFor
Waits for the specified timeout (in time interval) till the processing unit is identified as deployed. Returns theProcessingUnit. Returnnullif the processing unit is not deployed within the specified timeout. -
getProcessingUnitAdded
ProcessingUnitAddedEventManager getProcessingUnitAdded()Returns an event manager allowing to registerProcessingUnitAddedEventListeners. -
getProcessingUnitRemoved
ProcessingUnitRemovedEventManager getProcessingUnitRemoved()Returns an event manager allowing to registerProcessingUnitRemovedEventListeners. -
addLifecycleListener
Allows to add aProcessingUnitLifecycleEventListener. -
removeLifecycleListener
Allows to remove aProcessingUnitLifecycleEventListener. -
getProcessingUnitInstanceAdded
ProcessingUnitInstanceAddedEventManager getProcessingUnitInstanceAdded()Returns an event manager allowing to registerProcessingUnitInstanceAddedEventListeners. -
getProcessingUnitInstanceRemoved
ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved()Returns an event manager allowing to registerProcessingUnitInstanceRemovedEventListeners. -
addLifecycleListener
Allows to add aProcessingUnitInstanceLifecycleEventListener. -
removeLifecycleListener
Allows to remove aProcessingUnitInstanceLifecycleEventListener. -
getManagingGridServiceManagerChanged
ManagingGridServiceManagerChangedEventManager getManagingGridServiceManagerChanged()Returns an event manager allowing to globally register for anyManagingGridServiceManagerChangedEvents occurring on any processing unit. -
getBackupGridServiceManagerChanged
BackupGridServiceManagerChangedEventManager getBackupGridServiceManagerChanged()Returns an event manager allowing to globally register for anyBackupGridServiceManagerChangedEvents occurring on any processing unit. -
getProcessingUnitStatusChanged
ProcessingUnitStatusChangedEventManager getProcessingUnitStatusChanged()Returns an event manager allowing to globally register for anyProcessingUnitSpaceCorrelatedEvents occurring on any processing unit. -
getProcessingUnitInstanceStatisticsChanged
ProcessingUnitInstanceStatisticsChangedEventManager getProcessingUnitInstanceStatisticsChanged()Returns a processing unit instance statistics change event manger allowing to register for events ofProcessingUnitInstanceStatisticsChangedEvent.Note, in order to receive events, the virtual machines need to be in a "statistics" monitored state.
-
getProcessingUnitInstanceProvisionStatusChanged
ProcessingUnitInstanceProvisionStatusChangedEventManager getProcessingUnitInstanceProvisionStatusChanged()Returns an event manager allowing to registerProcessingUnitInstanceProvisionStatusChangedEventListeners.- Since:
- 8.0.6
-
getProcessingUnitInstanceMemberAliveIndicatorStatusChanged
ProcessingUnitInstanceMemberAliveIndicatorStatusChangedEventManager getProcessingUnitInstanceMemberAliveIndicatorStatusChanged()Returns an event manager allowing to registerProcessingUnitInstanceMemberAliveIndicatorStatusChangedEventListeners.- Since:
- 8.0.6
-