GigaSpaces XAP 9.0 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 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)

GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.