public class DefaultGatewayProcessingUnit extends Object implements GatewayProcessingUnit
Constructor and Description |
---|
DefaultGatewayProcessingUnit(InternalAdmin admin,
Gateway gateway,
ProcessingUnitInstance processingUnitInstance,
GatewayServiceDetails gatewayServiceDetails) |
Modifier and Type | Method and Description |
---|---|
Admin |
getAdmin()
Returns the
Admin associated with this element. |
int |
getCommunicationPort()
Returns the communication port this gateway processing unit is using.
|
GatewayDelegator |
getDelegator()
Returns the delegator of this gateway or
null if no delegator exists in this
gateway. |
int |
getDiscoveryPort()
Returns the discovery port this gateway processing unit is using to publish it self.
|
Gateway |
getGateway()
Returns the
Gateway this gateway processing unit belongs to. |
Machine |
getMachine()
Returns the machine the component is running on.
|
OperatingSystem |
getOperatingSystem()
Returns the operating system the grid component is running within.
|
ProcessingUnit |
getProcessingUnit()
Returns the hosting
ProcessingUnit . |
ProcessingUnitInstance |
getProcessingUnitInstance() |
GatewaySink |
getSink()
Returns the sink of this gateway or
null if no sink exists in this gateway. |
Transport |
getTransport()
Returns the transport the grid component is using.
|
String |
getUid()
Returns the unique id of the grid component.
|
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. |
boolean |
isStartEmbeddedLus()
Returns whether this gateway processing unit is starting an embedded lookup service for cross
gateway discovery purpose.
|
public DefaultGatewayProcessingUnit(InternalAdmin admin, Gateway gateway, ProcessingUnitInstance processingUnitInstance, GatewayServiceDetails gatewayServiceDetails)
public ProcessingUnitInstance getProcessingUnitInstance()
public String getUid()
GridComponent
getUid
in interface GridComponent
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 Admin getAdmin()
AdminAware
Admin
associated with this element.getAdmin
in interface AdminAware
public Machine getMachine()
MachineAware
getMachine
in interface MachineAware
public Transport getTransport()
TransportAware
getTransport
in interface TransportAware
public OperatingSystem getOperatingSystem()
OperatingSystemAware
getOperatingSystem
in interface OperatingSystemAware
public VirtualMachine getVirtualMachine()
VirtualMachineAware
getVirtualMachine
in interface VirtualMachineAware
public Gateway getGateway()
GatewayProcessingUnit
Gateway
this gateway processing unit belongs to.getGateway
in interface GatewayProcessingUnit
public ProcessingUnit getProcessingUnit()
GatewayProcessingUnit
ProcessingUnit
.getProcessingUnit
in interface GatewayProcessingUnit
public GatewaySink getSink()
GatewayProcessingUnit
null
if no sink exists in this gateway.getSink
in interface GatewayProcessingUnit
public GatewayDelegator getDelegator()
GatewayProcessingUnit
null
if no delegator exists in this
gateway.getDelegator
in interface GatewayProcessingUnit
public int getCommunicationPort()
GatewayProcessingUnit
getCommunicationPort
in interface GatewayProcessingUnit
public int getDiscoveryPort()
GatewayProcessingUnit
getDiscoveryPort
in interface GatewayProcessingUnit
public boolean isStartEmbeddedLus()
GatewayProcessingUnit
isStartEmbeddedLus
in interface GatewayProcessingUnit
Copyright © GigaSpaces.