Package org.openspaces.admin.machine
Interface Machine
- All Superinterfaces:
DumpProvider
- All Known Subinterfaces:
InternalMachine
- All Known Implementing Classes:
DefaultMachine
A Machine is a logical entity identified by a host address. Once a grid service is running on a
machine (
GridServiceAgent, GridServiceManager, GridServiceContainer,
LookupService, SpaceInstance)
it is discovered (created) by the admin API.- Author:
- kimchy
-
Method Summary
Modifier and TypeMethodDescriptionvoidAllows to add aProcessingUnitInstanceLifecycleEventListener.voidaddLifecycleListener(SpaceInstanceLifecycleEventListener eventListener) Allows to add aSpaceInstanceLifecycleEventListener.booleancontains(ProcessingUnitInstance processingUnitInstance) Returnstrueif the processing unit instance exists within the machine.booleancontains(SpaceInstance spaceInstance) Returnstrueif the machine contains the provided space instance.Returns the first grid service agent.Returns the grid service agents running on the machine.Returns the grid service containers running on the machine.Returns the grid service managers running on the machine.Returns the host address of the machine.Returns the host name of the machine.Returns the lookup services that are running on the machine.Returns the operating system of the machine.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 on the machine.getProcessingUnitInstances(String processingUnitName) Returns the processing unit instances of the specified name that are currently deployed on the machine.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 on the machine.Returns the transports "running" on the machine.getUid()Returns the UID of the machine.getVirtualMachineByPID(long pid) Return a virtual machine by its pid.Returns the virtual machines running on the machine.booleanReturnstrueif there are grid components.voidAllows to remove aProcessingUnitInstanceLifecycleEventListener.voidremoveLifecycleListener(SpaceInstanceLifecycleEventListener eventListener) Allows to remove aSpaceInstanceLifecycleEventListener.Methods inherited from interface org.openspaces.admin.dump.DumpProvider
generateDump, generateDump
-
Method Details
-
getUid
String getUid()Returns the UID of the machine. -
getHostAddress
String getHostAddress()Returns the host address of the machine. -
getHostName
String getHostName()Returns the host name of the machine. -
getLookupServices
LookupServices getLookupServices()Returns the lookup services that are running on the machine. -
getGridServiceAgent
GridServiceAgent getGridServiceAgent()Returns the first grid service agent. Note, there will usually be only a single agent per machine. Returnsnullif there is noGridServiceAgentrunning on the machine. -
getGridServiceAgents
GridServiceAgents getGridServiceAgents()Returns the grid service agents running on the machine. -
getGridServiceManagers
GridServiceManagers getGridServiceManagers()Returns the grid service managers running on the machine. -
getGridServiceContainers
GridServiceContainers getGridServiceContainers()Returns the grid service containers running on the machine. -
getOperatingSystem
OperatingSystem getOperatingSystem()Returns the operating system of the machine. -
getVirtualMachines
VirtualMachines getVirtualMachines()Returns the virtual machines running on the machine. -
hasGridComponents
boolean hasGridComponents()Returnstrueif there are grid components. -
getTransports
Transports getTransports()Returns the transports "running" on the machine. -
getProcessingUnits
ProcessingUnit[] getProcessingUnits()- Returns:
- Returns the
ProcessingUnitof the processing unit instances running on the machine. - Since:
- 10.1.1
-
getProcessingUnitInstances
ProcessingUnitInstance[] getProcessingUnitInstances()Returns all the processing unit instances running on the machine. -
getProcessingUnitInstances
Returns the processing unit instances of the specified name that are currently deployed on the machine. -
contains
Returnstrueif the processing unit instance exists within the machine. -
getProcessingUnitInstanceAdded
ProcessingUnitInstanceAddedEventManager getProcessingUnitInstanceAdded()Returns the processing unit instance added event manager allowing to add and removeProcessingUnitInstanceAddedEventListeners. -
getProcessingUnitInstanceRemoved
ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved()Returns the processing unit instance removed event manager allowing to add and removeProcessingUnitInstanceRemovedEventListeners. -
addLifecycleEventListener
Allows to add aProcessingUnitInstanceLifecycleEventListener. -
removeLifecycleEventListener
Allows to remove aProcessingUnitInstanceLifecycleEventListener. -
getSpaceInstances
SpaceInstance[] getSpaceInstances()Returns all the space instances running on the machine. -
contains
Returnstrueif the machine contains the provided space instance. -
getSpaceInstanceAdded
SpaceInstanceAddedEventManager getSpaceInstanceAdded()Returns the space instance added event manager allowing to add and removeSpaceInstanceAddedEventListeners. -
getSpaceInstanceRemoved
SpaceInstanceRemovedEventManager getSpaceInstanceRemoved()Returns the space instance removed event manager allowing to add and removeSpaceInstanceRemovedEventListeners. -
addLifecycleListener
Allows to add aSpaceInstanceLifecycleEventListener. -
removeLifecycleListener
Allows to remove aSpaceInstanceLifecycleEventListener. -
getVirtualMachineByPID
Return a virtual machine by its pid.- Since:
- 15.8.0
-