public class TestEventSampler extends Object implements MachineLifecycleEventListener, GridServiceContainerLifecycleEventListener, GridServiceManagerLifecycleEventListener, ProcessingUnitLifecycleEventListener, ProcessingUnitInstanceLifecycleEventListener, LookupServiceLifecycleEventListener, VirtualMachineLifecycleEventListener, SpaceLifecycleEventListener, SpaceInstanceLifecycleEventListener, SpaceModeChangedEventListener, ReplicationStatusChangedEventListener, ZoneLifecycleEventListener
Constructor and Description |
---|
TestEventSampler() |
Modifier and Type | Method and Description |
---|---|
void |
gridServiceContainerAdded(GridServiceContainer gridServiceContainer)
Called when a grid service container is added.
|
void |
gridServiceContainerRemoved(GridServiceContainer gridServiceContainer)
Called when a grid service container is removed.
|
void |
gridServiceManagerAdded(GridServiceManager gridServiceManager)
Called when a grid service manager is added.
|
void |
gridServiceManagerRemoved(GridServiceManager gridServiceManager)
Called when a grid service manager is removed.
|
void |
lookupServiceAdded(LookupService lookupService)
Called when a lookup service is added.
|
void |
lookupServiceRemoved(LookupService lookupService)
Called when a lookup service is removed.
|
void |
machineAdded(Machine machine)
Called when a machine is added.
|
void |
machineRemoved(Machine machine)
Called when a machine is removed.
|
static void |
main(String[] args) |
void |
processingUnitAdded(ProcessingUnit processingUnit)
A callback indicating that a Processing Unit was added (deployed/discovered).
|
void |
processingUnitBackupGridServiceManagerChanged(BackupGridServiceManagerChangedEvent event)
Callback indicating that a backup GSM for a processing unit was either removed or added.
|
void |
processingUnitInstanceAdded(ProcessingUnitInstance processingUnitInstance)
A callback indicating that a Processing Unit Instance was added.
|
void |
processingUnitInstanceRemoved(ProcessingUnitInstance processingUnitInstance)
A callback indicating that a Processing Unit Instance was removed.
|
void |
processingUnitManagingGridServiceManagerChanged(ManagingGridServiceManagerChangedEvent event)
Callback indicating that a managing GSM for a processing unit was changed.
|
void |
processingUnitRemoved(ProcessingUnit processingUnit)
A callback indicating that a Processing Unit was removed (undeployed).
|
void |
processingUnitStatusChanged(ProcessingUnitStatusChangedEvent event)
Callback indicating that a deployment status of a Processing Unit was changed.
|
void |
replicationStatusChanged(ReplicationStatusChangedEvent event)
Callback indicating that a replication status changed event has occured.
|
void |
spaceAdded(Space space)
A callback indicating that a Space was added.
|
void |
spaceInstanceAdded(SpaceInstance spaceInstance)
A callback indicating that a Space Instance was added.
|
void |
spaceInstanceRemoved(SpaceInstance spaceInstance)
A callback indicating that a Space Instance was removed.
|
void |
spaceModeChanged(SpaceModeChangedEvent event)
Callback indicating that a space mode changed event has occured.
|
void |
spaceRemoved(Space space)
A callback indicating that a Space was removed.
|
void |
virtualMachineAdded(VirtualMachine virtualMachine)
Called when a virtual machine is added.
|
void |
virtualMachineRemoved(VirtualMachine virtualMachine)
Called when a virtual machine is removed.
|
void |
zoneAdded(Zone zone)
Called when a zone is added.
|
void |
zoneRemoved(Zone zone)
Called when a zone is removed.
|
public void machineAdded(Machine machine)
MachineAddedEventListener
machineAdded
in interface MachineAddedEventListener
public void machineRemoved(Machine machine)
MachineRemovedEventListener
machineRemoved
in interface MachineRemovedEventListener
public void processingUnitAdded(ProcessingUnit processingUnit)
ProcessingUnitAddedEventListener
processingUnitAdded
in interface ProcessingUnitAddedEventListener
public void processingUnitRemoved(ProcessingUnit processingUnit)
ProcessingUnitRemovedEventListener
processingUnitRemoved
in interface ProcessingUnitRemovedEventListener
public void processingUnitInstanceAdded(ProcessingUnitInstance processingUnitInstance)
ProcessingUnitInstanceAddedEventListener
processingUnitInstanceAdded
in interface ProcessingUnitInstanceAddedEventListener
public void processingUnitInstanceRemoved(ProcessingUnitInstance processingUnitInstance)
ProcessingUnitInstanceRemovedEventListener
processingUnitInstanceRemoved
in interface ProcessingUnitInstanceRemovedEventListener
public void gridServiceManagerAdded(GridServiceManager gridServiceManager)
GridServiceManagerAddedEventListener
gridServiceManagerAdded
in interface GridServiceManagerAddedEventListener
public void gridServiceManagerRemoved(GridServiceManager gridServiceManager)
GridServiceManagerRemovedEventListener
gridServiceManagerRemoved
in interface GridServiceManagerRemovedEventListener
public void gridServiceContainerAdded(GridServiceContainer gridServiceContainer)
GridServiceContainerAddedEventListener
gridServiceContainerAdded
in interface GridServiceContainerAddedEventListener
public void gridServiceContainerRemoved(GridServiceContainer gridServiceContainer)
GridServiceContainerRemovedEventListener
gridServiceContainerRemoved
in interface GridServiceContainerRemovedEventListener
public void lookupServiceAdded(LookupService lookupService)
LookupServiceAddedEventListener
lookupServiceAdded
in interface LookupServiceAddedEventListener
public void lookupServiceRemoved(LookupService lookupService)
LookupServiceRemovedEventListener
lookupServiceRemoved
in interface LookupServiceRemovedEventListener
public void virtualMachineAdded(VirtualMachine virtualMachine)
VirtualMachineAddedEventListener
virtualMachineAdded
in interface VirtualMachineAddedEventListener
public void virtualMachineRemoved(VirtualMachine virtualMachine)
VirtualMachineRemovedEventListener
virtualMachineRemoved
in interface VirtualMachineRemovedEventListener
public void processingUnitStatusChanged(ProcessingUnitStatusChangedEvent event)
ProcessingUnitStatusChangedEventListener
processingUnitStatusChanged
in interface ProcessingUnitStatusChangedEventListener
public void processingUnitManagingGridServiceManagerChanged(ManagingGridServiceManagerChangedEvent event)
ManagingGridServiceManagerChangedEventListener
processingUnitManagingGridServiceManagerChanged
in interface ManagingGridServiceManagerChangedEventListener
public void processingUnitBackupGridServiceManagerChanged(BackupGridServiceManagerChangedEvent event)
BackupGridServiceManagerChangedEventListener
processingUnitBackupGridServiceManagerChanged
in interface BackupGridServiceManagerChangedEventListener
public void spaceAdded(Space space)
SpaceAddedEventListener
spaceAdded
in interface SpaceAddedEventListener
public void spaceRemoved(Space space)
SpaceRemovedEventListener
spaceRemoved
in interface SpaceRemovedEventListener
public void spaceInstanceAdded(SpaceInstance spaceInstance)
SpaceInstanceAddedEventListener
spaceInstanceAdded
in interface SpaceInstanceAddedEventListener
public void spaceInstanceRemoved(SpaceInstance spaceInstance)
SpaceInstanceRemovedEventListener
spaceInstanceRemoved
in interface SpaceInstanceRemovedEventListener
public void spaceModeChanged(SpaceModeChangedEvent event)
SpaceModeChangedEventListener
spaceModeChanged
in interface SpaceModeChangedEventListener
public void replicationStatusChanged(ReplicationStatusChangedEvent event)
ReplicationStatusChangedEventListener
replicationStatusChanged
in interface ReplicationStatusChangedEventListener
public void zoneAdded(Zone zone)
ZoneAddedEventListener
zoneAdded
in interface ZoneAddedEventListener
public void zoneRemoved(Zone zone)
ZoneRemovedEventListener
zoneRemoved
in interface ZoneRemovedEventListener
Copyright © GigaSpaces.