GigaSpaces XAP 7.0 API

org.openspaces.admin.machine
Interface Machine


public interface Machine

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
 void addLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
          Allows to add a ProcessingUnitInstanceLifecycleEventListener.
 void addLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
          Allows to add a SpaceInstanceLifecycleEventListener.
 boolean contains(ProcessingUnitInstance processingUnitInstance)
          Returns true if the processing unit instance exists within the machine.
 boolean contains(SpaceInstance spaceInstance)
          Returns true if the machine contains the provided space instance.
 GridServiceAgent getGridServiceAgent()
          Returns the first grid service agent.
 GridServiceAgents getGridServiceAgents()
          Returns the grid service agents running on the machine.
 GridServiceContainers getGridServiceContainers()
          Returns the grid service containers running on the machine.
 GridServiceManagers getGridServiceManagers()
          Returns the grid service managers running on the machine.
 String getHostAddress()
          Returns the host address of the machine.
 String getHostName()
          Returns the host name of the machine.
 LookupServices getLookupServices()
          Returns the lookup services that are running on the machine.
 OperatingSystem getOperatingSystem()
          Returns the operating system of the machine.
 ProcessingUnitInstanceAddedEventManager getProcessingUnitInstanceAdded()
          Returns the processing unit instance added event manager allowing to add and remove ProcessingUnitInstanceAddedEventListeners.
 ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved()
          Returns the processing unit instance removed event manager allowing to add and remove ProcessingUnitInstanceRemovedEventListeners.
 ProcessingUnitInstance[] getProcessingUnitInstances()
          Returns all the processing unit instances running on the machine.
 ProcessingUnitInstance[] getProcessingUnitInstances(String processingUnitName)
          Returns the processing unit instances of the specified name that are currently deployed on the machine.
 SpaceInstanceAddedEventManager getSpaceInstanceAdded()
          Returns the space instance added event manager allowing to add and remove SpaceInstanceAddedEventListeners.
 SpaceInstanceRemovedEventManager getSpaceInstanceRemoved()
          Returns the space instance removed event manager allowing to add and remove SpaceInstanceRemovedEventListeners.
 SpaceInstance[] getSpaceInstances()
          Returns all the space instances running on the machine.
 Transports getTransports()
          Returns the transports "running" on the machine.
 String getUid()
          Returns the UID of the machine.
 VirtualMachines getVirtualMachines()
          Returns the virtual machines running on the machine.
 boolean hasGridComponents()
          Returns true if there are grid components.
 void removeLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
          Allows to remove a ProcessingUnitInstanceLifecycleEventListener.
 void removeLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
          Allows to remove a SpaceInstanceLifecycleEventListener.
 

Method Detail

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. Returns null if there is no GridServiceAgent running 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()
Returns true if there are grid components.


getTransports

Transports getTransports()
Returns the transports "running" on the machine.


getProcessingUnitInstances

ProcessingUnitInstance[] getProcessingUnitInstances()
Returns all the processing unit instances running on the machine.


getProcessingUnitInstances

ProcessingUnitInstance[] getProcessingUnitInstances(String processingUnitName)
Returns the processing unit instances of the specified name that are currently deployed on the machine.


contains

boolean contains(ProcessingUnitInstance processingUnitInstance)
Returns true if the processing unit instance exists within the machine.


getProcessingUnitInstanceAdded

ProcessingUnitInstanceAddedEventManager getProcessingUnitInstanceAdded()
Returns the processing unit instance added event manager allowing to add and remove ProcessingUnitInstanceAddedEventListeners.


getProcessingUnitInstanceRemoved

ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved()
Returns the processing unit instance removed event manager allowing to add and remove ProcessingUnitInstanceRemovedEventListeners.


addLifecycleEventListener

void addLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Allows to add a ProcessingUnitInstanceLifecycleEventListener.


removeLifecycleEventListener

void removeLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Allows to remove a ProcessingUnitInstanceLifecycleEventListener.


getSpaceInstances

SpaceInstance[] getSpaceInstances()
Returns all the space instances running on the machine.


contains

boolean contains(SpaceInstance spaceInstance)
Returns true if the machine contains the provided space instance.


getSpaceInstanceAdded

SpaceInstanceAddedEventManager getSpaceInstanceAdded()
Returns the space instance added event manager allowing to add and remove SpaceInstanceAddedEventListeners.


getSpaceInstanceRemoved

SpaceInstanceRemovedEventManager getSpaceInstanceRemoved()
Returns the space instance removed event manager allowing to add and remove SpaceInstanceRemovedEventListeners.


addLifecycleListener

void addLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
Allows to add a SpaceInstanceLifecycleEventListener.


removeLifecycleListener

void removeLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
Allows to remove a SpaceInstanceLifecycleEventListener.


GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.