|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 ProcessingUnitInstanceAddedEventListener s. |
ProcessingUnitInstanceRemovedEventManager |
getProcessingUnitInstanceRemoved()
Returns the processing unit instance removed event manager allowing to add and remove ProcessingUnitInstanceRemovedEventListener s. |
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 SpaceInstanceAddedEventListener s. |
SpaceInstanceRemovedEventManager |
getSpaceInstanceRemoved()
Returns the space instance removed event manager allowing to add and remove SpaceInstanceRemovedEventListener s. |
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 |
---|
String getUid()
String getHostAddress()
String getHostName()
LookupServices getLookupServices()
GridServiceAgent getGridServiceAgent()
null
if there is no
GridServiceAgent
running on the machine.
GridServiceAgents getGridServiceAgents()
GridServiceManagers getGridServiceManagers()
GridServiceContainers getGridServiceContainers()
OperatingSystem getOperatingSystem()
VirtualMachines getVirtualMachines()
boolean hasGridComponents()
true
if there are grid components.
Transports getTransports()
ProcessingUnitInstance[] getProcessingUnitInstances()
ProcessingUnitInstance[] getProcessingUnitInstances(String processingUnitName)
boolean contains(ProcessingUnitInstance processingUnitInstance)
true
if the processing unit instance exists within the machine.
ProcessingUnitInstanceAddedEventManager getProcessingUnitInstanceAdded()
ProcessingUnitInstanceAddedEventListener
s.
ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved()
ProcessingUnitInstanceRemovedEventListener
s.
void addLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
ProcessingUnitInstanceLifecycleEventListener
.
void removeLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
ProcessingUnitInstanceLifecycleEventListener
.
SpaceInstance[] getSpaceInstances()
boolean contains(SpaceInstance spaceInstance)
true
if the machine contains the provided space instance.
SpaceInstanceAddedEventManager getSpaceInstanceAdded()
SpaceInstanceAddedEventListener
s.
SpaceInstanceRemovedEventManager getSpaceInstanceRemoved()
SpaceInstanceRemovedEventListener
s.
void addLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
SpaceInstanceLifecycleEventListener
.
void removeLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
SpaceInstanceLifecycleEventListener
.
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |