public class GatewayUtils extends Object
Constructor and Description |
---|
GatewayUtils() |
Modifier and Type | Method and Description |
---|---|
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) |
public static boolean checkPortAvailable(int port)
port
- the port number.public static boolean isPuInstanceOfGateway(String gatewayName, ProcessingUnitInstance processingUnitInstance)
public static ProcessingUnitInstance extractInstanceIfPuOfGateway(String gatewayName, ProcessingUnit processingUnit)
public static String extractGatewayNameIfExists(ProcessingUnit processingUnit)
public static String extractGatewayName(ProcessingUnitInstance instance)
public static GatewayServiceDetails extractGatewayDetails(ProcessingUnitInstance instance)
Copyright © GigaSpaces.