public interface VirtualMachine extends MachineAware, StatisticsMonitor
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL
Modifier and Type | Method and Description |
---|---|
void |
addLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
Adds an
SpaceInstanceLifecycleEventListener allowing to be notified when a space
instance was added or removed from this virtual machine. |
void |
addProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Adds an
ProcessingUnitInstanceLifecycleEventListener allowing to be notified when a
processing unit instance was added or removed from this virtual machine. |
VirtualMachineDetails |
getDetails()
Returns the details (non changeable information) of the virtual machine.
|
ElasticServiceManager |
getElasticServiceManager()
Returns the elastic service manager started within this virtual machine.
|
GridServiceAgent |
getGridServiceAgent()
Returns the grid service agent started within this virtual machine.
|
GridServiceContainer |
getGridServiceContainer()
Returns the grid service container started within this virtual machine.
|
GridServiceManager |
getGridServiceManager()
Returns the grid service manager started within this virtual machine.
|
LookupService |
getLookupService()
Returns the lookup services that are running on the machine.
|
ProcessingUnitInstanceAddedEventManager |
getProcessingUnitInstanceAdded()
Returns an event manager allowing to register
ProcessingUnitInstanceAddedEventListener s
for processing unit instances added on this virtual machine. |
ProcessingUnitInstanceRemovedEventManager |
getProcessingUnitInstanceRemoved()
Returns an event manager allowing to register
ProcessingUnitRemovedEventListener s
for processing unit instances removed on this virtual machine. |
ProcessingUnitInstance[] |
getProcessingUnitInstances()
Returns the processing unit instances started within this virtual machine.
|
SpaceInstanceAddedEventManager |
getSpaceInstanceAdded()
Returns an event manager allowing to register for
SpaceInstanceAddedEventListener s
for space instances added on this virtual machine. |
SpaceInstanceRemovedEventManager |
getSpaceInstanceRemoved()
Returns an event manager allowing to register for
SpaceInstanceRemovedEventListener s
for space instances added on this virtual machine. |
SpaceInstance[] |
getSpaceInstances()
Returns the space instances started within this virtual machine.
|
VirtualMachineStatistics |
getStatistics()
Returns the statistics of the virtual machine.
|
String |
getUid()
Returns the uid of the virtual machine.
|
VirtualMachineStatisticsChangedEventManager |
getVirtualMachineStatisticsChanged()
Returns an event manager allowing to register for
VirtualMachineStatisticsChangedEvent s. |
void |
removeLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
Removes an
SpaceInstanceLifecycleEventListener allowing to be notified when a space
instance was added or removed from this virtual machine. |
void |
removeProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Removes an
ProcessingUnitInstanceLifecycleEventListener allowing to be notified when
a processing unit instance was added or removed from this virtual machine. |
void |
runGc()
Runs GC on the virtual machine.
|
void |
setLogLevel(String loggerName,
String level)
set the log level of the virtual machine
|
getMachine
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMonitor
String getUid()
VirtualMachineDetails getDetails()
VirtualMachineStatistics getStatistics()
void runGc()
LookupService getLookupService()
null
if no
lookup service was started within it.GridServiceAgent getGridServiceAgent()
null
if no grid service agent was started within it.GridServiceManager getGridServiceManager()
null
if no grid service manager was started within it.ElasticServiceManager getElasticServiceManager()
null
if no elastic service manager was started within it.GridServiceContainer getGridServiceContainer()
null
if no grid service manager was started within it.ProcessingUnitInstance[] getProcessingUnitInstances()
SpaceInstance[] getSpaceInstances()
ProcessingUnitInstanceAddedEventManager getProcessingUnitInstanceAdded()
ProcessingUnitInstanceAddedEventListener
s
for processing unit instances added on this virtual machine.ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved()
ProcessingUnitRemovedEventListener
s
for processing unit instances removed on this virtual machine.void addProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
ProcessingUnitInstanceLifecycleEventListener
allowing to be notified when a
processing unit instance was added or removed from this virtual machine.void removeProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
ProcessingUnitInstanceLifecycleEventListener
allowing to be notified when
a processing unit instance was added or removed from this virtual machine.SpaceInstanceAddedEventManager getSpaceInstanceAdded()
SpaceInstanceAddedEventListener
s
for space instances added on this virtual machine.SpaceInstanceRemovedEventManager getSpaceInstanceRemoved()
SpaceInstanceRemovedEventListener
s
for space instances added on this virtual machine.void addLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
SpaceInstanceLifecycleEventListener
allowing to be notified when a space
instance was added or removed from this virtual machine.void removeLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
SpaceInstanceLifecycleEventListener
allowing to be notified when a space
instance was added or removed from this virtual machine.VirtualMachineStatisticsChangedEventManager getVirtualMachineStatisticsChanged()
VirtualMachineStatisticsChangedEvent
s.
Note, the events will be raised only when the StatisticsMonitor.startStatisticsMonitor()
is
called.
Copyright © GigaSpaces.