public class DefaultZone extends Object implements InternalZone
Constructor and Description |
---|
DefaultZone(InternalAdmin admin,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
Allows to add a
SpaceInstanceLifecycleEventListener . |
void |
addProcessingUnitInstance(ProcessingUnitInstance processingUnitInstance) |
void |
addProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Allows to add a
ProcessingUnitInstanceLifecycleEventListener . |
void |
addSpaceInstance(SpaceInstance spaceInstance) |
boolean |
equals(Object o) |
DumpResult |
generateDump(String cause,
Map<String,Object> context)
Generates dump for all the provided dump processors.
|
DumpResult |
generateDump(String cause,
Map<String,Object> context,
String... processor)
Generates dump for the provided processors.
|
ElasticServiceManagers |
getElasticServiceManagers()
Returns the elastic service managers running within the zone.
|
GridServiceAgents |
getGridServiceAgents()
Returns the grid service agents running within the zone.
|
GridServiceContainers |
getGridServiceContainers()
Returns the grid service containers running within the zone.
|
GridServiceManagers |
getGridServiceManagers()
Returns the grid service managers running within the zone.
|
LookupServices |
getLookupServices()
Returns the lookup services that are running within the zone.
|
Machines |
getMachines()
Returns the machines running within the zone.
|
String |
getName()
Returns name of the zone.
|
ProcessingUnitInstanceAddedEventManager |
getProcessingUnitInstanceAdded()
Returns the processing unit instance added event manager allowing to add and remove
ProcessingUnitInstanceAddedEventListener s. |
ProcessingUnitInstanceRemovedEventManager |
getProcessingUnitInstanceRemoved()
Returns the processing unit instance removed event manager allowing to add and remove
ProcessingUnitInstanceRemovedEventListener s. |
ProcessingUnitInstance[] |
getProcessingUnitInstances()
Returns all the processing unit instances running within the zone.
|
SpaceInstanceAddedEventManager |
getSpaceInstanceAdded()
Returns the space instance added event manager allowing to add and remove
SpaceInstanceAddedEventListener s. |
SpaceInstanceRemovedEventManager |
getSpaceInstanceRemoved()
Returns the space instance removed event manager allowing to add and remove
SpaceInstanceRemovedEventListener s. |
SpaceInstance[] |
getSpaceInstances()
Returns all the space instances running within the zone.
|
Transports |
getTransports()
Returns the transports "running" within the zone.
|
VirtualMachines |
getVirtualMachines()
Returns the virtual machines running within the zone.
|
boolean |
hasGridComponents()
Returns
true if there are grid components. |
int |
hashCode() |
void |
removeLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
Allows to remove a
SpaceInstanceLifecycleEventListener . |
void |
removeProcessingUnitInstance(String uid) |
void |
removeProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Allows to remove a
ProcessingUnitInstanceLifecycleEventListener . |
void |
removeSpaceInstance(String uid) |
public DefaultZone(InternalAdmin admin, String name)
public Machines getMachines()
Zone
getMachines
in interface Zone
public GridServiceAgents getGridServiceAgents()
Zone
getGridServiceAgents
in interface Zone
public LookupServices getLookupServices()
Zone
getLookupServices
in interface Zone
public GridServiceManagers getGridServiceManagers()
Zone
getGridServiceManagers
in interface Zone
public ElasticServiceManagers getElasticServiceManagers()
Zone
getElasticServiceManagers
in interface Zone
public GridServiceContainers getGridServiceContainers()
Zone
getGridServiceContainers
in interface Zone
public boolean hasGridComponents()
Zone
true
if there are grid components.hasGridComponents
in interface Zone
public Transports getTransports()
Zone
getTransports
in interface Zone
public VirtualMachines getVirtualMachines()
Zone
getVirtualMachines
in interface Zone
public ProcessingUnitInstanceAddedEventManager getProcessingUnitInstanceAdded()
Zone
ProcessingUnitInstanceAddedEventListener
s.getProcessingUnitInstanceAdded
in interface Zone
public ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved()
Zone
ProcessingUnitInstanceRemovedEventListener
s.getProcessingUnitInstanceRemoved
in interface Zone
public void addProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Zone
ProcessingUnitInstanceLifecycleEventListener
.addProcessingUnitInstanceLifecycleEventListener
in interface Zone
public void removeProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Zone
ProcessingUnitInstanceLifecycleEventListener
.removeProcessingUnitInstanceLifecycleEventListener
in interface Zone
public ProcessingUnitInstance[] getProcessingUnitInstances()
Zone
getProcessingUnitInstances
in interface Zone
public SpaceInstance[] getSpaceInstances()
Zone
getSpaceInstances
in interface Zone
public SpaceInstanceAddedEventManager getSpaceInstanceAdded()
Zone
SpaceInstanceAddedEventListener
s.getSpaceInstanceAdded
in interface Zone
public SpaceInstanceRemovedEventManager getSpaceInstanceRemoved()
Zone
SpaceInstanceRemovedEventListener
s.getSpaceInstanceRemoved
in interface Zone
public void addLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
Zone
SpaceInstanceLifecycleEventListener
.addLifecycleListener
in interface Zone
public void removeLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
Zone
SpaceInstanceLifecycleEventListener
.removeLifecycleListener
in interface Zone
public void addProcessingUnitInstance(ProcessingUnitInstance processingUnitInstance)
addProcessingUnitInstance
in interface InternalZone
public void removeProcessingUnitInstance(String uid)
removeProcessingUnitInstance
in interface InternalZone
public void addSpaceInstance(SpaceInstance spaceInstance)
addSpaceInstance
in interface InternalZone
public void removeSpaceInstance(String uid)
removeSpaceInstance
in interface InternalZone
public DumpResult generateDump(String cause, Map<String,Object> context) throws AdminException
DumpProvider
generateDump
in interface DumpProvider
cause
- The cause that this dump was generatedcontext
- Allows to provide specific parameters to specific processorsAdminException
public DumpResult generateDump(String cause, Map<String,Object> context, String... processor) throws AdminException
DumpProvider
generateDump
in interface DumpProvider
cause
- The cause this dump was generated.context
- Allows to provide specific parameters to specific processors.processor
- The list of processors to be used.AdminException
Copyright © GigaSpaces.