Class DefaultZone
java.lang.Object
org.openspaces.admin.internal.zone.DefaultZone
- All Implemented Interfaces:
DumpProvider,InternalZone,Zone
- Author:
- kimchy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLifecycleListener(SpaceInstanceLifecycleEventListener eventListener) Allows to add aSpaceInstanceLifecycleEventListener.voidaddProcessingUnitInstance(ProcessingUnitInstance processingUnitInstance) voidaddProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Allows to add aProcessingUnitInstanceLifecycleEventListener.voidaddSpaceInstance(SpaceInstance spaceInstance) booleangenerateDump(String cause, Map<String, Object> context) Generates dump for all the provided dump processors.Generates dump for the provided processors.Returns the grid service agents running within the zone.Returns the grid service containers running within the zone.Returns the grid service managers running within the zone.Returns the lookup services that are running within the zone.Returns the machines running within the zone.getName()Returns name of the zone.Returns the processing unit instance added event manager allowing to add and removeProcessingUnitInstanceAddedEventListeners.Returns the processing unit instance removed event manager allowing to add and removeProcessingUnitInstanceRemovedEventListeners.Returns all the processing unit instances running within the zone.Returns the space instance added event manager allowing to add and removeSpaceInstanceAddedEventListeners.Returns the space instance removed event manager allowing to add and removeSpaceInstanceRemovedEventListeners.Returns all the space instances running within the zone.Returns the transports "running" within the zone.Returns the virtual machines running within the zone.booleanReturnstrueif there are grid components.inthashCode()voidremoveLifecycleListener(SpaceInstanceLifecycleEventListener eventListener) Allows to remove aSpaceInstanceLifecycleEventListener.voidvoidremoveProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Allows to remove aProcessingUnitInstanceLifecycleEventListener.void
-
Constructor Details
-
DefaultZone
-
-
Method Details
-
getName
Description copied from interface:ZoneReturns name of the zone. -
getMachines
Description copied from interface:ZoneReturns the machines running within the zone.- Specified by:
getMachinesin interfaceZone
-
getGridServiceAgents
Description copied from interface:ZoneReturns the grid service agents running within the zone.- Specified by:
getGridServiceAgentsin interfaceZone
-
getLookupServices
Description copied from interface:ZoneReturns the lookup services that are running within the zone.- Specified by:
getLookupServicesin interfaceZone
-
getGridServiceManagers
Description copied from interface:ZoneReturns the grid service managers running within the zone.- Specified by:
getGridServiceManagersin interfaceZone
-
getGridServiceContainers
Description copied from interface:ZoneReturns the grid service containers running within the zone.- Specified by:
getGridServiceContainersin interfaceZone
-
hasGridComponents
public boolean hasGridComponents()Description copied from interface:ZoneReturnstrueif there are grid components.- Specified by:
hasGridComponentsin interfaceZone
-
getTransports
Description copied from interface:ZoneReturns the transports "running" within the zone.- Specified by:
getTransportsin interfaceZone
-
getVirtualMachines
Description copied from interface:ZoneReturns the virtual machines running within the zone.- Specified by:
getVirtualMachinesin interfaceZone
-
getProcessingUnitInstanceAdded
Description copied from interface:ZoneReturns the processing unit instance added event manager allowing to add and removeProcessingUnitInstanceAddedEventListeners.- Specified by:
getProcessingUnitInstanceAddedin interfaceZone
-
getProcessingUnitInstanceRemoved
Description copied from interface:ZoneReturns the processing unit instance removed event manager allowing to add and removeProcessingUnitInstanceRemovedEventListeners.- Specified by:
getProcessingUnitInstanceRemovedin interfaceZone
-
addProcessingUnitInstanceLifecycleEventListener
public void addProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Description copied from interface:ZoneAllows to add aProcessingUnitInstanceLifecycleEventListener.- Specified by:
addProcessingUnitInstanceLifecycleEventListenerin interfaceZone
-
removeProcessingUnitInstanceLifecycleEventListener
public void removeProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Description copied from interface:ZoneAllows to remove aProcessingUnitInstanceLifecycleEventListener.- Specified by:
removeProcessingUnitInstanceLifecycleEventListenerin interfaceZone
-
getProcessingUnitInstances
Description copied from interface:ZoneReturns all the processing unit instances running within the zone.- Specified by:
getProcessingUnitInstancesin interfaceZone
-
getSpaceInstances
Description copied from interface:ZoneReturns all the space instances running within the zone.- Specified by:
getSpaceInstancesin interfaceZone
-
getSpaceInstanceAdded
Description copied from interface:ZoneReturns the space instance added event manager allowing to add and removeSpaceInstanceAddedEventListeners.- Specified by:
getSpaceInstanceAddedin interfaceZone
-
getSpaceInstanceRemoved
Description copied from interface:ZoneReturns the space instance removed event manager allowing to add and removeSpaceInstanceRemovedEventListeners.- Specified by:
getSpaceInstanceRemovedin interfaceZone
-
addLifecycleListener
Description copied from interface:ZoneAllows to add aSpaceInstanceLifecycleEventListener.- Specified by:
addLifecycleListenerin interfaceZone
-
removeLifecycleListener
Description copied from interface:ZoneAllows to remove aSpaceInstanceLifecycleEventListener.- Specified by:
removeLifecycleListenerin interfaceZone
-
addProcessingUnitInstance
- Specified by:
addProcessingUnitInstancein interfaceInternalZone
-
removeProcessingUnitInstance
- Specified by:
removeProcessingUnitInstancein interfaceInternalZone
-
addSpaceInstance
- Specified by:
addSpaceInstancein interfaceInternalZone
-
removeSpaceInstance
- Specified by:
removeSpaceInstancein interfaceInternalZone
-
generateDump
Description copied from interface:DumpProviderGenerates dump for all the provided dump processors. Note, this will include a heap dump which can consume time and potentially be of very large size- Specified by:
generateDumpin interfaceDumpProvider- Parameters:
cause- The cause that this dump was generatedcontext- Allows to provide specific parameters to specific processors- Throws:
AdminException
-
generateDump
public DumpResult generateDump(String cause, Map<String, Object> context, String... processor) throws AdminExceptionDescription copied from interface:DumpProviderGenerates dump for the provided processors. The current list of processors include:- summary: General summary information of the process.
- network: Information on the network layer of the process and the OS network stats.
- thread: Thread dump of the process.
- heap: Heap dump of the process. Note, this is a heavy operation and can produce very large dump files
- log: Adds all the log files of the process to the dump file.
- processingUnits: Dump of all the processing units (applicable only for GSCs) information.
- Specified by:
generateDumpin interfaceDumpProvider- Parameters:
cause- The cause this dump was generated.context- Allows to provide specific parameters to specific processors.processor- The list of processors to be used.- Throws:
AdminException
-
equals
-
hashCode
public int hashCode()
-