GigaSpaces XAP 10.0.1 API

org.openspaces.admin.samples
Class TestEventSampler

java.lang.Object
  extended by org.openspaces.admin.samples.TestEventSampler
All Implemented Interfaces:
AdminEventListener, ElasticServiceManagerAddedEventListener, ElasticServiceManagerLifecycleEventListener, ElasticServiceManagerRemovedEventListener, 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, ElasticServiceManagerLifecycleEventListener, GridServiceContainerLifecycleEventListener, GridServiceManagerLifecycleEventListener, ProcessingUnitLifecycleEventListener, ProcessingUnitInstanceLifecycleEventListener, LookupServiceLifecycleEventListener, VirtualMachineLifecycleEventListener, SpaceLifecycleEventListener, SpaceInstanceLifecycleEventListener, SpaceModeChangedEventListener, ReplicationStatusChangedEventListener, ZoneLifecycleEventListener

Author:
kimchy

Constructor Summary
TestEventSampler()
           
 
Method Summary
 void elasticServiceManagerAdded(ElasticServiceManager elasticServiceManager)
          Called when an elastic service manager is added.
 void elasticServiceManagerRemoved(ElasticServiceManager elasticServiceManager)
          Called when an elastic service manager is removed.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestEventSampler

public TestEventSampler()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

machineAdded

public void machineAdded(Machine machine)
Description copied from interface: MachineAddedEventListener
Called when a machine is added.

Specified by:
machineAdded in interface MachineAddedEventListener

machineRemoved

public void machineRemoved(Machine machine)
Description copied from interface: MachineRemovedEventListener
Called when a machine is removed.

Specified by:
machineRemoved in interface MachineRemovedEventListener

processingUnitAdded

public void processingUnitAdded(ProcessingUnit processingUnit)
Description copied from interface: ProcessingUnitAddedEventListener
A callback indicating that a Processing Unit was added (deployed/discovered).

Specified by:
processingUnitAdded in interface ProcessingUnitAddedEventListener

processingUnitRemoved

public void processingUnitRemoved(ProcessingUnit processingUnit)
Description copied from interface: ProcessingUnitRemovedEventListener
A callback indicating that a Processing Unit was removed (undeployed).

Specified by:
processingUnitRemoved in interface ProcessingUnitRemovedEventListener

processingUnitInstanceAdded

public void processingUnitInstanceAdded(ProcessingUnitInstance processingUnitInstance)
Description copied from interface: ProcessingUnitInstanceAddedEventListener
A callback indicating that a Processing Unit Instance was added.

Specified by:
processingUnitInstanceAdded in interface ProcessingUnitInstanceAddedEventListener

processingUnitInstanceRemoved

public void processingUnitInstanceRemoved(ProcessingUnitInstance processingUnitInstance)
Description copied from interface: ProcessingUnitInstanceRemovedEventListener
A callback indicating that a Processing Unit Instance was removed.

Specified by:
processingUnitInstanceRemoved in interface ProcessingUnitInstanceRemovedEventListener

gridServiceManagerAdded

public void gridServiceManagerAdded(GridServiceManager gridServiceManager)
Description copied from interface: GridServiceManagerAddedEventListener
Called when a grid service manager is added.

Specified by:
gridServiceManagerAdded in interface GridServiceManagerAddedEventListener

gridServiceManagerRemoved

public void gridServiceManagerRemoved(GridServiceManager gridServiceManager)
Description copied from interface: GridServiceManagerRemovedEventListener
Called when a grid service manager is removed.

Specified by:
gridServiceManagerRemoved in interface GridServiceManagerRemovedEventListener

gridServiceContainerAdded

public void gridServiceContainerAdded(GridServiceContainer gridServiceContainer)
Description copied from interface: GridServiceContainerAddedEventListener
Called when a grid service container is added.

Specified by:
gridServiceContainerAdded in interface GridServiceContainerAddedEventListener

gridServiceContainerRemoved

public void gridServiceContainerRemoved(GridServiceContainer gridServiceContainer)
Description copied from interface: GridServiceContainerRemovedEventListener
Called when a grid service container is removed.

Specified by:
gridServiceContainerRemoved in interface GridServiceContainerRemovedEventListener

lookupServiceAdded

public void lookupServiceAdded(LookupService lookupService)
Description copied from interface: LookupServiceAddedEventListener
Called when a lookup service is added.

Specified by:
lookupServiceAdded in interface LookupServiceAddedEventListener

lookupServiceRemoved

public void lookupServiceRemoved(LookupService lookupService)
Description copied from interface: LookupServiceRemovedEventListener
Called when a lookup service is removed.

Specified by:
lookupServiceRemoved in interface LookupServiceRemovedEventListener

virtualMachineAdded

public void virtualMachineAdded(VirtualMachine virtualMachine)
Description copied from interface: VirtualMachineAddedEventListener
Called when a virtual machine is added.

Specified by:
virtualMachineAdded in interface VirtualMachineAddedEventListener

virtualMachineRemoved

public void virtualMachineRemoved(VirtualMachine virtualMachine)
Description copied from interface: VirtualMachineRemovedEventListener
Called when a virtual machine is removed.

Specified by:
virtualMachineRemoved in interface VirtualMachineRemovedEventListener

processingUnitStatusChanged

public void processingUnitStatusChanged(ProcessingUnitStatusChangedEvent event)
Description copied from interface: ProcessingUnitStatusChangedEventListener
Callback indicating that a deployment status of a Processing Unit was changed.

Specified by:
processingUnitStatusChanged in interface ProcessingUnitStatusChangedEventListener

processingUnitManagingGridServiceManagerChanged

public void processingUnitManagingGridServiceManagerChanged(ManagingGridServiceManagerChangedEvent event)
Description copied from interface: ManagingGridServiceManagerChangedEventListener
Callback indicating that a managing GSM for a processing unit was changed.

Specified by:
processingUnitManagingGridServiceManagerChanged in interface ManagingGridServiceManagerChangedEventListener

processingUnitBackupGridServiceManagerChanged

public void processingUnitBackupGridServiceManagerChanged(BackupGridServiceManagerChangedEvent event)
Description copied from interface: BackupGridServiceManagerChangedEventListener
Callback indicating that a backup GSM for a processing unit was either removed or added.

Specified by:
processingUnitBackupGridServiceManagerChanged in interface BackupGridServiceManagerChangedEventListener

spaceAdded

public void spaceAdded(Space space)
Description copied from interface: SpaceAddedEventListener
A callback indicating that a Space was added.

Specified by:
spaceAdded in interface SpaceAddedEventListener

spaceRemoved

public void spaceRemoved(Space space)
Description copied from interface: SpaceRemovedEventListener
A callback indicating that a Space was removed.

Specified by:
spaceRemoved in interface SpaceRemovedEventListener

spaceInstanceAdded

public void spaceInstanceAdded(SpaceInstance spaceInstance)
Description copied from interface: SpaceInstanceAddedEventListener
A callback indicating that a Space Instance was added.

Specified by:
spaceInstanceAdded in interface SpaceInstanceAddedEventListener

spaceInstanceRemoved

public void spaceInstanceRemoved(SpaceInstance spaceInstance)
Description copied from interface: SpaceInstanceRemovedEventListener
A callback indicating that a Space Instance was removed.

Specified by:
spaceInstanceRemoved in interface SpaceInstanceRemovedEventListener

spaceModeChanged

public void spaceModeChanged(SpaceModeChangedEvent event)
Description copied from interface: SpaceModeChangedEventListener
Callback indicating that a space mode changed event has occured.

Specified by:
spaceModeChanged in interface SpaceModeChangedEventListener

replicationStatusChanged

public void replicationStatusChanged(ReplicationStatusChangedEvent event)
Description copied from interface: ReplicationStatusChangedEventListener
Callback indicating that a replication status changed event has occured.

Specified by:
replicationStatusChanged in interface ReplicationStatusChangedEventListener

zoneAdded

public void zoneAdded(Zone zone)
Description copied from interface: ZoneAddedEventListener
Called when a zone is added.

Specified by:
zoneAdded in interface ZoneAddedEventListener

zoneRemoved

public void zoneRemoved(Zone zone)
Description copied from interface: ZoneRemovedEventListener
Called when a zone is removed.

Specified by:
zoneRemoved in interface ZoneRemovedEventListener

elasticServiceManagerAdded

public void elasticServiceManagerAdded(ElasticServiceManager elasticServiceManager)
Description copied from interface: ElasticServiceManagerAddedEventListener
Called when an elastic service manager is added.

Specified by:
elasticServiceManagerAdded in interface ElasticServiceManagerAddedEventListener

elasticServiceManagerRemoved

public void elasticServiceManagerRemoved(ElasticServiceManager elasticServiceManager)
Description copied from interface: ElasticServiceManagerRemovedEventListener
Called when an elastic service manager is removed.

Specified by:
elasticServiceManagerRemoved in interface ElasticServiceManagerRemovedEventListener

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.