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()
GridComponentgetUid in interface GridComponentpublic boolean isDiscovered()
DiscoverableComponenttrue 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 DiscoverableComponentpublic Admin getAdmin()
AdminAwareAdmin associated with this element.getAdmin in interface AdminAwarepublic Machine getMachine()
MachineAwaregetMachine in interface MachineAwarepublic Transport getTransport()
TransportAwaregetTransport in interface TransportAwarepublic OperatingSystem getOperatingSystem()
OperatingSystemAwaregetOperatingSystem in interface OperatingSystemAwarepublic VirtualMachine getVirtualMachine()
VirtualMachineAwaregetVirtualMachine in interface VirtualMachineAwarepublic Gateway getGateway()
GatewayProcessingUnitGateway this gateway processing unit belongs to.getGateway in interface GatewayProcessingUnitpublic ProcessingUnit getProcessingUnit()
GatewayProcessingUnitProcessingUnit.getProcessingUnit in interface GatewayProcessingUnitpublic GatewaySink getSink()
GatewayProcessingUnitnull if no sink exists in this gateway.getSink in interface GatewayProcessingUnitpublic GatewayDelegator getDelegator()
GatewayProcessingUnitnull if no delegator exists in this
gateway.getDelegator in interface GatewayProcessingUnitpublic int getCommunicationPort()
GatewayProcessingUnitgetCommunicationPort in interface GatewayProcessingUnitpublic int getDiscoveryPort()
GatewayProcessingUnitgetDiscoveryPort in interface GatewayProcessingUnitpublic boolean isStartEmbeddedLus()
GatewayProcessingUnitisStartEmbeddedLus in interface GatewayProcessingUnitCopyright © GigaSpaces.