public class DefaultMachine extends Object implements InternalMachine
Constructor and Description |
---|
DefaultMachine(InternalAdmin admin,
String uid,
String hostAddress) |
Modifier and Type | Method and Description |
---|---|
void |
addLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Allows to add a
ProcessingUnitInstanceLifecycleEventListener . |
void |
addLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
Allows to add a
SpaceInstanceLifecycleEventListener . |
void |
addProcessingUnitInstance(ProcessingUnitInstance processingUnitInstance) |
void |
addSpaceInstance(SpaceInstance spaceInstance) |
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. |
boolean |
equals(Object o) |
DumpResult |
generateDump(String cause,
Map<String,Object> context)
Generates dump for all the provided dump processors.
|
DumpResult |
generateDump(String cause,
Map<String,Object> context,
String... processor)
Generates dump for the provided processors.
|
ElasticServiceManagers |
getElasticServiceManagers()
Returns the elastic service managers running on the machine.
|
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.
|
ProcessingUnit[] |
getProcessingUnits() |
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. |
int |
hashCode() |
boolean |
hasOperatingSystem() |
void |
removeLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Allows to remove a
ProcessingUnitInstanceLifecycleEventListener . |
void |
removeLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
Allows to remove a
SpaceInstanceLifecycleEventListener . |
void |
removeProcessingUnitInstance(String uid) |
void |
removeSpaceInstance(String uid) |
void |
setOperatingSystem(OperatingSystem operatingSystem) |
public DefaultMachine(InternalAdmin admin, String uid, String hostAddress)
public String getUid()
Machine
public String getHostAddress()
Machine
getHostAddress
in interface Machine
public String getHostName()
Machine
getHostName
in interface Machine
public GridServiceAgent getGridServiceAgent()
Machine
null
if there is no GridServiceAgent
running on the machine.getGridServiceAgent
in interface Machine
public GridServiceAgents getGridServiceAgents()
Machine
getGridServiceAgents
in interface Machine
public LookupServices getLookupServices()
Machine
getLookupServices
in interface Machine
public GridServiceManagers getGridServiceManagers()
Machine
getGridServiceManagers
in interface Machine
public ElasticServiceManagers getElasticServiceManagers()
Machine
getElasticServiceManagers
in interface Machine
public GridServiceContainers getGridServiceContainers()
Machine
getGridServiceContainers
in interface Machine
public boolean hasGridComponents()
Machine
true
if there are grid components.hasGridComponents
in interface Machine
public Transports getTransports()
Machine
getTransports
in interface Machine
public ProcessingUnit[] getProcessingUnits()
getProcessingUnits
in interface Machine
ProcessingUnit
of the processing unit instances running on the
machine.public void setOperatingSystem(OperatingSystem operatingSystem)
setOperatingSystem
in interface InternalMachine
public boolean hasOperatingSystem()
public OperatingSystem getOperatingSystem()
Machine
getOperatingSystem
in interface Machine
public VirtualMachines getVirtualMachines()
Machine
getVirtualMachines
in interface Machine
public ProcessingUnitInstanceAddedEventManager getProcessingUnitInstanceAdded()
Machine
ProcessingUnitInstanceAddedEventListener
s.getProcessingUnitInstanceAdded
in interface Machine
public ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved()
Machine
ProcessingUnitInstanceRemovedEventListener
s.getProcessingUnitInstanceRemoved
in interface Machine
public void addLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Machine
ProcessingUnitInstanceLifecycleEventListener
.addLifecycleEventListener
in interface Machine
public void removeLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Machine
ProcessingUnitInstanceLifecycleEventListener
.removeLifecycleEventListener
in interface Machine
public ProcessingUnitInstance[] getProcessingUnitInstances()
Machine
getProcessingUnitInstances
in interface InternalProcessingUnitInstancesAware
getProcessingUnitInstances
in interface Machine
public ProcessingUnitInstance[] getProcessingUnitInstances(String processingUnitName)
Machine
getProcessingUnitInstances
in interface Machine
public boolean contains(ProcessingUnitInstance processingUnitInstance)
Machine
true
if the processing unit instance exists within the machine.public SpaceInstance[] getSpaceInstances()
Machine
getSpaceInstances
in interface Machine
public boolean contains(SpaceInstance spaceInstance)
Machine
true
if the machine contains the provided space instance.public SpaceInstanceAddedEventManager getSpaceInstanceAdded()
Machine
SpaceInstanceAddedEventListener
s.getSpaceInstanceAdded
in interface Machine
public SpaceInstanceRemovedEventManager getSpaceInstanceRemoved()
Machine
SpaceInstanceRemovedEventListener
s.getSpaceInstanceRemoved
in interface Machine
public void addLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
Machine
SpaceInstanceLifecycleEventListener
.addLifecycleListener
in interface Machine
public void removeLifecycleListener(SpaceInstanceLifecycleEventListener eventListener)
Machine
SpaceInstanceLifecycleEventListener
.removeLifecycleListener
in interface Machine
public void addProcessingUnitInstance(ProcessingUnitInstance processingUnitInstance)
addProcessingUnitInstance
in interface InternalMachine
public void removeProcessingUnitInstance(String uid)
removeProcessingUnitInstance
in interface InternalMachine
public void addSpaceInstance(SpaceInstance spaceInstance)
addSpaceInstance
in interface InternalMachine
public void removeSpaceInstance(String uid)
removeSpaceInstance
in interface InternalMachine
public DumpResult generateDump(String cause, Map<String,Object> context) throws AdminException
DumpProvider
generateDump
in interface DumpProvider
cause
- The cause that this dump was generatedcontext
- Allows to provide specific parameters to specific processorsAdminException
public DumpResult generateDump(String cause, Map<String,Object> context, String... processor) throws AdminException
DumpProvider
generateDump
in interface DumpProvider
cause
- The cause this dump was generated.context
- Allows to provide specific parameters to specific processors.processor
- The list of processors to be used.AdminException
Copyright © GigaSpaces.