public abstract class AbstractGridComponent extends Object implements InternalGridComponent
Modifier and Type | Field and Description |
---|---|
protected InternalAdmin |
admin |
Modifier | Constructor and Description |
---|---|
protected |
AbstractGridComponent(InternalAdmin admin,
JVMDetails jvmDetails) |
Modifier and Type | Method and Description |
---|---|
void |
addZone(Zone zone) |
protected void |
assertStateChangesPermitted() |
Admin |
getAdmin()
Returns the
Admin associated with this element. |
JVMDetails |
getJVMDetails() |
Machine |
getMachine()
Returns the machine the component is running on.
|
OperatingSystem |
getOperatingSystem()
Returns the operating system the grid component is running within.
|
Transport |
getTransport()
Returns the transport the grid component is using.
|
VirtualMachine |
getVirtualMachine()
Returns the virtual machine the grid component is running within.
|
Map<String,Zone> |
getZones()
|
boolean |
isDiscovered()
Returns
true if the component is currently discovered from the lookup service. |
void |
setDiscovered(boolean discovered) |
void |
setMachine(Machine machine) |
void |
setOperatingSystem(OperatingSystem operatingSystem) |
void |
setTransport(Transport transport) |
void |
setVirtualMachine(VirtualMachine virtualMachine) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUid
disableLRMIMonitoring, enableLRMIMonitoring, fetchLRMIMonitoringDetails, getNIODetails, getNIOStatistics
getCurrentTimeInMillis, getOSDetails, getOSStatistics
getJVMStatistics, getUid, runGc
protected final InternalAdmin admin
protected AbstractGridComponent(InternalAdmin admin, JVMDetails jvmDetails)
public Admin getAdmin()
AdminAware
Admin
associated with this element.getAdmin
in interface AdminAware
public void setMachine(Machine machine)
setMachine
in interface InternalMachineAware
public Machine getMachine()
MachineAware
getMachine
in interface MachineAware
public void setTransport(Transport transport)
setTransport
in interface InternalTransportAware
public Transport getTransport()
TransportAware
getTransport
in interface TransportAware
public void setOperatingSystem(OperatingSystem operatingSystem)
setOperatingSystem
in interface InternalOperatingSystemAware
public OperatingSystem getOperatingSystem()
OperatingSystemAware
getOperatingSystem
in interface OperatingSystemAware
public void setVirtualMachine(VirtualMachine virtualMachine)
setVirtualMachine
in interface InternalVirtualMachineAware
public VirtualMachine getVirtualMachine()
VirtualMachineAware
getVirtualMachine
in interface VirtualMachineAware
public boolean isDiscovered()
DiscoverableComponent
true
if the component is currently discovered from the lookup service.
false
if an event of component removal was sent from the lookup service.isDiscovered
in interface DiscoverableComponent
public void setDiscovered(boolean discovered)
setDiscovered
in interface InternalDiscoverableComponent
public void addZone(Zone zone)
addZone
in interface InternalZoneAware
protected void assertStateChangesPermitted()
public JVMDetails getJVMDetails()
getJVMDetails
in interface InternalVirtualMachineInfoProvider
Copyright © GigaSpaces.