Package org.openspaces.admin.samples
Class TestEventSampler
java.lang.Object
org.openspaces.admin.samples.TestEventSampler
- All Implemented Interfaces:
AdminEventListener,GridServiceContainerAddedEventListener,GridServiceContainerLifecycleEventListener,GridServiceContainerRemovedEventListener,GridServiceManagerAddedEventListener,GridServiceManagerLifecycleEventListener,GridServiceManagerRemovedEventListener,LookupServiceAddedEventListener,LookupServiceLifecycleEventListener,LookupServiceRemovedEventListener,MachineAddedEventListener,MachineLifecycleEventListener,MachineRemovedEventListener,BackupGridServiceManagerChangedEventListener,ManagingGridServiceManagerChangedEventListener,ProcessingUnitAddedEventListener,ProcessingUnitInstanceAddedEventListener,ProcessingUnitInstanceLifecycleEventListener,ProcessingUnitInstanceRemovedEventListener,ProcessingUnitLifecycleEventListener,ProcessingUnitRemovedEventListener,ProcessingUnitStatusChangedEventListener,ReplicationStatusChangedEventListener,SpaceAddedEventListener,SpaceInstanceAddedEventListener,SpaceInstanceLifecycleEventListener,SpaceInstanceRemovedEventListener,SpaceLifecycleEventListener,SpaceModeChangedEventListener,SpaceRemovedEventListener,VirtualMachineAddedEventListener,VirtualMachineLifecycleEventListener,VirtualMachineRemovedEventListener,ZoneAddedEventListener,ZoneLifecycleEventListener,ZoneRemovedEventListener
public class TestEventSampler
extends Object
implements MachineLifecycleEventListener, GridServiceContainerLifecycleEventListener, GridServiceManagerLifecycleEventListener, ProcessingUnitLifecycleEventListener, ProcessingUnitInstanceLifecycleEventListener, LookupServiceLifecycleEventListener, VirtualMachineLifecycleEventListener, SpaceLifecycleEventListener, SpaceInstanceLifecycleEventListener, SpaceModeChangedEventListener, ReplicationStatusChangedEventListener, ZoneLifecycleEventListener
- Author:
- kimchy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgridServiceContainerAdded(GridServiceContainer gridServiceContainer) Called when a grid service container is added.voidgridServiceContainerRemoved(GridServiceContainer gridServiceContainer) Called when a grid service container is removed.voidgridServiceManagerAdded(GridServiceManager gridServiceManager) Called when a grid service manager is added.voidgridServiceManagerRemoved(GridServiceManager gridServiceManager) Called when a grid service manager is removed.voidlookupServiceAdded(LookupService lookupService) Called when a lookup service is added.voidlookupServiceRemoved(LookupService lookupService) Called when a lookup service is removed.voidmachineAdded(Machine machine) Called when a machine is added.voidmachineRemoved(Machine machine) Called when a machine is removed.static voidvoidprocessingUnitAdded(ProcessingUnit processingUnit) A callback indicating that a Processing Unit was added (deployed/discovered).voidCallback indicating that a backup GSM for a processing unit was either removed or added.voidprocessingUnitInstanceAdded(ProcessingUnitInstance processingUnitInstance) A callback indicating that a Processing Unit Instance was added.voidprocessingUnitInstanceRemoved(ProcessingUnitInstance processingUnitInstance) A callback indicating that a Processing Unit Instance was removed.voidCallback indicating that a managing GSM for a processing unit was changed.voidprocessingUnitRemoved(ProcessingUnit processingUnit) A callback indicating that a Processing Unit was removed (undeployed).voidCallback indicating that a deployment status of a Processing Unit was changed.voidCallback indicating that a replication status changed event has occured.voidspaceAdded(Space space) A callback indicating that a Space was added.voidspaceInstanceAdded(SpaceInstance spaceInstance) A callback indicating that a Space Instance was added.voidspaceInstanceRemoved(SpaceInstance spaceInstance) A callback indicating that a Space Instance was removed.voidCallback indicating that a space mode changed event has occured.voidspaceRemoved(Space space) A callback indicating that a Space was removed.voidvirtualMachineAdded(VirtualMachine virtualMachine) Called when a virtual machine is added.voidvirtualMachineRemoved(VirtualMachine virtualMachine) Called when a virtual machine is removed.voidCalled when a zone is added.voidzoneRemoved(Zone zone) Called when a zone is removed.
-
Constructor Details
-
TestEventSampler
public TestEventSampler()
-
-
Method Details
-
main
- Throws:
Exception
-
machineAdded
Description copied from interface:MachineAddedEventListenerCalled when a machine is added.- Specified by:
machineAddedin interfaceMachineAddedEventListener
-
machineRemoved
Description copied from interface:MachineRemovedEventListenerCalled when a machine is removed.- Specified by:
machineRemovedin interfaceMachineRemovedEventListener
-
processingUnitAdded
Description copied from interface:ProcessingUnitAddedEventListenerA callback indicating that a Processing Unit was added (deployed/discovered).- Specified by:
processingUnitAddedin interfaceProcessingUnitAddedEventListener
-
processingUnitRemoved
Description copied from interface:ProcessingUnitRemovedEventListenerA callback indicating that a Processing Unit was removed (undeployed).- Specified by:
processingUnitRemovedin interfaceProcessingUnitRemovedEventListener
-
processingUnitInstanceAdded
Description copied from interface:ProcessingUnitInstanceAddedEventListenerA callback indicating that a Processing Unit Instance was added.- Specified by:
processingUnitInstanceAddedin interfaceProcessingUnitInstanceAddedEventListener
-
processingUnitInstanceRemoved
Description copied from interface:ProcessingUnitInstanceRemovedEventListenerA callback indicating that a Processing Unit Instance was removed.- Specified by:
processingUnitInstanceRemovedin interfaceProcessingUnitInstanceRemovedEventListener
-
gridServiceManagerAdded
Description copied from interface:GridServiceManagerAddedEventListenerCalled when a grid service manager is added.- Specified by:
gridServiceManagerAddedin interfaceGridServiceManagerAddedEventListener
-
gridServiceManagerRemoved
Description copied from interface:GridServiceManagerRemovedEventListenerCalled when a grid service manager is removed.- Specified by:
gridServiceManagerRemovedin interfaceGridServiceManagerRemovedEventListener
-
gridServiceContainerAdded
Description copied from interface:GridServiceContainerAddedEventListenerCalled when a grid service container is added.- Specified by:
gridServiceContainerAddedin interfaceGridServiceContainerAddedEventListener
-
gridServiceContainerRemoved
Description copied from interface:GridServiceContainerRemovedEventListenerCalled when a grid service container is removed.- Specified by:
gridServiceContainerRemovedin interfaceGridServiceContainerRemovedEventListener
-
lookupServiceAdded
Description copied from interface:LookupServiceAddedEventListenerCalled when a lookup service is added.- Specified by:
lookupServiceAddedin interfaceLookupServiceAddedEventListener
-
lookupServiceRemoved
Description copied from interface:LookupServiceRemovedEventListenerCalled when a lookup service is removed.- Specified by:
lookupServiceRemovedin interfaceLookupServiceRemovedEventListener
-
virtualMachineAdded
Description copied from interface:VirtualMachineAddedEventListenerCalled when a virtual machine is added.- Specified by:
virtualMachineAddedin interfaceVirtualMachineAddedEventListener
-
virtualMachineRemoved
Description copied from interface:VirtualMachineRemovedEventListenerCalled when a virtual machine is removed.- Specified by:
virtualMachineRemovedin interfaceVirtualMachineRemovedEventListener
-
processingUnitStatusChanged
Description copied from interface:ProcessingUnitStatusChangedEventListenerCallback indicating that a deployment status of a Processing Unit was changed.- Specified by:
processingUnitStatusChangedin interfaceProcessingUnitStatusChangedEventListener
-
processingUnitManagingGridServiceManagerChanged
public void processingUnitManagingGridServiceManagerChanged(ManagingGridServiceManagerChangedEvent event) Description copied from interface:ManagingGridServiceManagerChangedEventListenerCallback indicating that a managing GSM for a processing unit was changed.- Specified by:
processingUnitManagingGridServiceManagerChangedin interfaceManagingGridServiceManagerChangedEventListener
-
processingUnitBackupGridServiceManagerChanged
public void processingUnitBackupGridServiceManagerChanged(BackupGridServiceManagerChangedEvent event) Description copied from interface:BackupGridServiceManagerChangedEventListenerCallback indicating that a backup GSM for a processing unit was either removed or added.- Specified by:
processingUnitBackupGridServiceManagerChangedin interfaceBackupGridServiceManagerChangedEventListener
-
spaceAdded
Description copied from interface:SpaceAddedEventListenerA callback indicating that a Space was added.- Specified by:
spaceAddedin interfaceSpaceAddedEventListener
-
spaceRemoved
Description copied from interface:SpaceRemovedEventListenerA callback indicating that a Space was removed.- Specified by:
spaceRemovedin interfaceSpaceRemovedEventListener
-
spaceInstanceAdded
Description copied from interface:SpaceInstanceAddedEventListenerA callback indicating that a Space Instance was added.- Specified by:
spaceInstanceAddedin interfaceSpaceInstanceAddedEventListener
-
spaceInstanceRemoved
Description copied from interface:SpaceInstanceRemovedEventListenerA callback indicating that a Space Instance was removed.- Specified by:
spaceInstanceRemovedin interfaceSpaceInstanceRemovedEventListener
-
spaceModeChanged
Description copied from interface:SpaceModeChangedEventListenerCallback indicating that a space mode changed event has occured.- Specified by:
spaceModeChangedin interfaceSpaceModeChangedEventListener
-
replicationStatusChanged
Description copied from interface:ReplicationStatusChangedEventListenerCallback indicating that a replication status changed event has occured.- Specified by:
replicationStatusChangedin interfaceReplicationStatusChangedEventListener
-
zoneAdded
Description copied from interface:ZoneAddedEventListenerCalled when a zone is added.- Specified by:
zoneAddedin interfaceZoneAddedEventListener
-
zoneRemoved
Description copied from interface:ZoneRemovedEventListenerCalled when a zone is removed.- Specified by:
zoneRemovedin interfaceZoneRemovedEventListener
-