GigaSpaces XAP 9.7.2 API

org.openspaces.core.gateway
Class GatewayUtils

java.lang.Object
  extended by org.openspaces.core.gateway.GatewayUtils

public class GatewayUtils
extends Object


Constructor Summary
GatewayUtils()
           
 
Method Summary
static boolean checkPortAvailable(int port)
          Checks is a post is available on the current machine, using new ServerSocket(port).
static GatewayServiceDetails extractGatewayDetails(ProcessingUnitInstance instance)
           
static String extractGatewayName(ProcessingUnitInstance instance)
           
static String extractGatewayNameIfExists(ProcessingUnit processingUnit)
           
static ProcessingUnitInstance extractInstanceIfPuOfGateway(String gatewayName, ProcessingUnit processingUnit)
           
static boolean isPuInstanceOfGateway(String gatewayName, ProcessingUnitInstance processingUnitInstance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GatewayUtils

public GatewayUtils()
Method Detail

checkPortAvailable

public static boolean checkPortAvailable(int port)
Checks is a post is available on the current machine, using new ServerSocket(port).

Parameters:
port - the port number.
Returns:
true if available, false otherwise.

isPuInstanceOfGateway

public static boolean isPuInstanceOfGateway(String gatewayName,
                                            ProcessingUnitInstance processingUnitInstance)

extractInstanceIfPuOfGateway

public static ProcessingUnitInstance extractInstanceIfPuOfGateway(String gatewayName,
                                                                  ProcessingUnit processingUnit)

extractGatewayNameIfExists

public static String extractGatewayNameIfExists(ProcessingUnit processingUnit)

extractGatewayName

public static String extractGatewayName(ProcessingUnitInstance instance)

extractGatewayDetails

public static GatewayServiceDetails extractGatewayDetails(ProcessingUnitInstance instance)

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.