Class DefaultGatewayProcessingUnit
java.lang.Object
org.openspaces.admin.internal.gateway.DefaultGatewayProcessingUnit
- All Implemented Interfaces:
AdminAware,DiscoverableComponent,GatewayProcessingUnit,GridComponent,MachineAware,OperatingSystemAware,TransportAware,VirtualMachineAware,ZoneAware
- Since:
- 8.0.4
- Author:
- eitany
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultGatewayProcessingUnit(InternalAdmin admin, Gateway gateway, ProcessingUnitInstance processingUnitInstance, GatewayServiceDetails gatewayServiceDetails) -
Method Summary
Modifier and TypeMethodDescriptiongetAdmin()Returns theAdminassociated with this element.intReturns the communication port this gateway processing unit is using.Returns the delegator of this gateway ornullif no delegator exists in this gateway.intReturns the discovery port this gateway processing unit is using to publish it self.Returns theGatewaythis gateway processing unit belongs to.Returns the machine the component is running on.Returns the operating system the grid component is running within.Returns the hostingProcessingUnit.getSink()Returns the sink of this gateway ornullif no sink exists in this gateway.Returns the transport the grid component is using.getUid()Returns the unique id of the grid component.Returns the virtual machine the grid component is running within.getZones()booleanReturnstrueif the component is currently discovered from the lookup service.booleanReturns whether this gateway processing unit is starting an embedded lookup service for cross gateway discovery purpose.
-
Constructor Details
-
DefaultGatewayProcessingUnit
public DefaultGatewayProcessingUnit(InternalAdmin admin, Gateway gateway, ProcessingUnitInstance processingUnitInstance, GatewayServiceDetails gatewayServiceDetails)
-
-
Method Details
-
getProcessingUnitInstance
-
getUid
Description copied from interface:GridComponentReturns the unique id of the grid component.- Specified by:
getUidin interfaceGridComponent
-
isDiscovered
public boolean isDiscovered()Description copied from interface:DiscoverableComponentReturnstrueif the component is currently discovered from the lookup service.falseif an event of component removal was sent from the lookup service.- Specified by:
isDiscoveredin interfaceDiscoverableComponent
-
getAdmin
Description copied from interface:AdminAwareReturns theAdminassociated with this element.- Specified by:
getAdminin interfaceAdminAware
-
getMachine
Description copied from interface:MachineAwareReturns the machine the component is running on.- Specified by:
getMachinein interfaceMachineAware
-
getTransport
Description copied from interface:TransportAwareReturns the transport the grid component is using.- Specified by:
getTransportin interfaceTransportAware
-
getOperatingSystem
Description copied from interface:OperatingSystemAwareReturns the operating system the grid component is running within.- Specified by:
getOperatingSystemin interfaceOperatingSystemAware
-
getVirtualMachine
Description copied from interface:VirtualMachineAwareReturns the virtual machine the grid component is running within.- Specified by:
getVirtualMachinein interfaceVirtualMachineAware
-
getZones
Description copied from interface:ZoneAware -
getGateway
Description copied from interface:GatewayProcessingUnitReturns theGatewaythis gateway processing unit belongs to.- Specified by:
getGatewayin interfaceGatewayProcessingUnit
-
getProcessingUnit
Description copied from interface:GatewayProcessingUnitReturns the hostingProcessingUnit.- Specified by:
getProcessingUnitin interfaceGatewayProcessingUnit
-
getSink
Description copied from interface:GatewayProcessingUnitReturns the sink of this gateway ornullif no sink exists in this gateway.- Specified by:
getSinkin interfaceGatewayProcessingUnit
-
getDelegator
Description copied from interface:GatewayProcessingUnitReturns the delegator of this gateway ornullif no delegator exists in this gateway.- Specified by:
getDelegatorin interfaceGatewayProcessingUnit
-
getCommunicationPort
public int getCommunicationPort()Description copied from interface:GatewayProcessingUnitReturns the communication port this gateway processing unit is using.- Specified by:
getCommunicationPortin interfaceGatewayProcessingUnit
-
getDiscoveryPort
public int getDiscoveryPort()Description copied from interface:GatewayProcessingUnitReturns the discovery port this gateway processing unit is using to publish it self.- Specified by:
getDiscoveryPortin interfaceGatewayProcessingUnit
-
isStartEmbeddedLus
public boolean isStartEmbeddedLus()Description copied from interface:GatewayProcessingUnitReturns whether this gateway processing unit is starting an embedded lookup service for cross gateway discovery purpose.- Specified by:
isStartEmbeddedLusin interfaceGatewayProcessingUnit
-