Package org.openspaces.admin.vm
Interface VirtualMachine
- All Superinterfaces:
MachineAware,StatisticsMonitor
- All Known Subinterfaces:
InternalVirtualMachine
- All Known Implementing Classes:
DefaultVirtualMachine
A virtual machine is a JVM that runs grid components.
- Author:
- kimchy
-
Field Summary
Fields inherited from interface org.openspaces.admin.StatisticsMonitor
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLifecycleListener(SpaceInstanceLifecycleEventListener eventListener) Adds anSpaceInstanceLifecycleEventListenerallowing to be notified when a space instance was added or removed from this virtual machine.voidaddProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Adds anProcessingUnitInstanceLifecycleEventListenerallowing to be notified when a processing unit instance was added or removed from this virtual machine.Returns the details (non changeable information) of the virtual machine.Returns the grid service agent started within this virtual machine.Returns the grid service container started within this virtual machine.Returns the grid service manager started within this virtual machine.Returns the lookup services that are running on the machine.Returns an event manager allowing to registerProcessingUnitInstanceAddedEventListeners for processing unit instances added on this virtual machine.Returns an event manager allowing to registerProcessingUnitRemovedEventListeners for processing unit instances removed on this virtual machine.Returns the processing unit instances started within this virtual machine.Returns an event manager allowing to register forSpaceInstanceAddedEventListeners for space instances added on this virtual machine.Returns an event manager allowing to register forSpaceInstanceRemovedEventListeners for space instances added on this virtual machine.Returns the space instances started within this virtual machine.Returns the statistics of the virtual machine.getUid()Returns the uid of the virtual machine.Returns an event manager allowing to register forVirtualMachineStatisticsChangedEvents.voidremoveLifecycleListener(SpaceInstanceLifecycleEventListener eventListener) Removes anSpaceInstanceLifecycleEventListenerallowing to be notified when a space instance was added or removed from this virtual machine.voidremoveProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Removes anProcessingUnitInstanceLifecycleEventListenerallowing to be notified when a processing unit instance was added or removed from this virtual machine.voidrunGc()Runs GC on the virtual machine.voidsetLogLevel(String loggerName, String level) set the log level of the virtual machineMethods inherited from interface org.openspaces.admin.machine.MachineAware
getMachineMethods inherited from interface org.openspaces.admin.StatisticsMonitor
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMonitor
-
Method Details
-
getUid
String getUid()Returns the uid of the virtual machine. -
getDetails
VirtualMachineDetails getDetails()Returns the details (non changeable information) of the virtual machine. -
getStatistics
VirtualMachineStatistics getStatistics()Returns the statistics of the virtual machine. -
runGc
void runGc()Runs GC on the virtual machine. -
getLookupService
LookupService getLookupService()Returns the lookup services that are running on the machine. Returnsnullif no lookup service was started within it.- Since:
- 8.0
-
getGridServiceAgent
GridServiceAgent getGridServiceAgent()Returns the grid service agent started within this virtual machine. Returnsnullif no grid service agent was started within it. -
getGridServiceManager
GridServiceManager getGridServiceManager()Returns the grid service manager started within this virtual machine. Returnsnullif no grid service manager was started within it. -
getGridServiceContainer
GridServiceContainer getGridServiceContainer()Returns the grid service container started within this virtual machine. Returnsnullif no grid service manager was started within it. -
getProcessingUnitInstances
ProcessingUnitInstance[] getProcessingUnitInstances()Returns the processing unit instances started within this virtual machine. -
getSpaceInstances
SpaceInstance[] getSpaceInstances()Returns the space instances started within this virtual machine. -
getProcessingUnitInstanceAdded
ProcessingUnitInstanceAddedEventManager getProcessingUnitInstanceAdded()Returns an event manager allowing to registerProcessingUnitInstanceAddedEventListeners for processing unit instances added on this virtual machine. -
getProcessingUnitInstanceRemoved
ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved()Returns an event manager allowing to registerProcessingUnitRemovedEventListeners for processing unit instances removed on this virtual machine. -
addProcessingUnitInstanceLifecycleEventListener
void addProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Adds anProcessingUnitInstanceLifecycleEventListenerallowing to be notified when a processing unit instance was added or removed from this virtual machine. -
removeProcessingUnitInstanceLifecycleEventListener
void removeProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Removes anProcessingUnitInstanceLifecycleEventListenerallowing to be notified when a processing unit instance was added or removed from this virtual machine. -
getSpaceInstanceAdded
SpaceInstanceAddedEventManager getSpaceInstanceAdded()Returns an event manager allowing to register forSpaceInstanceAddedEventListeners for space instances added on this virtual machine. -
getSpaceInstanceRemoved
SpaceInstanceRemovedEventManager getSpaceInstanceRemoved()Returns an event manager allowing to register forSpaceInstanceRemovedEventListeners for space instances added on this virtual machine. -
addLifecycleListener
Adds anSpaceInstanceLifecycleEventListenerallowing to be notified when a space instance was added or removed from this virtual machine. -
removeLifecycleListener
Removes anSpaceInstanceLifecycleEventListenerallowing to be notified when a space instance was added or removed from this virtual machine. -
getVirtualMachineStatisticsChanged
VirtualMachineStatisticsChangedEventManager getVirtualMachineStatisticsChanged()Returns an event manager allowing to register forVirtualMachineStatisticsChangedEvents.Note, the events will be raised only when the
StatisticsMonitor.startStatisticsMonitor()is called. -
setLogLevel
set the log level of the virtual machine- Since:
- 15.8.0
-