public class ClientConnectionUtil extends Object
| Constructor and Description |
|---|
ClientConnectionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPortOpen(int port,
String hostName)
Check whether the provided
port is open |
static void |
waitForLogin(org.wso2.carbon.automation.engine.context.AutomationContext context)
Wait for sometime until it is possible to login to the Carbon server
|
static void |
waitForPort(int port,
long timeout,
boolean verbose,
String hostName) |
static void |
waitForPort(int port,
String hostName)
Checks whether the given
port is open, and waits for sometime until the port is
open. |
public static void waitForLogin(org.wso2.carbon.automation.engine.context.AutomationContext context)
throws MalformedURLException,
org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException
MalformedURLExceptionorg.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionExceptionpublic static void waitForPort(int port,
long timeout,
boolean verbose,
String hostName)
throws RuntimeException
port - The port that needs to be checkedtimeout - The timeout waiting for the port to openverbose - if verbose is set to true,RuntimeException - if the port is not opened within the TIMEOUTpublic static void waitForPort(int port,
String hostName)
port is open, and waits for sometime until the port is
open. If the port is not open within TIMEOUT, throws RuntimeException.port - The port that needs to be checkedRuntimeException - if the port is not opened within the TIMEOUTpublic static boolean isPortOpen(int port,
String hostName)
port is openport - The port that needs to be checkedport is open & false otherwiseCopyright © 2015 WSO2. All rights reserved.