Package com.arjuna.ats.arjuna.recovery
Class RecoveryDriver
- java.lang.Object
-
- com.arjuna.ats.arjuna.recovery.RecoveryDriver
-
public class RecoveryDriver extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringASYNC_SCANstatic intDEFAULT_SO_TIMEOUTstatic intDEFAULT_SYNC_RETRYstatic intDEFAULT_SYNC_TIMEOUTstatic java.lang.StringPINGstatic java.lang.StringPONGstatic java.lang.StringSCANstatic java.lang.StringVERBOSE_ASYNC_SCANstatic java.lang.StringVERBOSE_SCAN
-
Constructor Summary
Constructors Constructor Description RecoveryDriver(int port)RecoveryDriver(int port, java.lang.String hostName)RecoveryDriver(int port, java.lang.String hostName, int timeout)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanasynchronousScan()booleanasynchronousVerboseScan()static booleanisAsyncScan(java.lang.String request)static booleanisScan(java.lang.String request)static booleanisVerboseScan(java.lang.String request)booleansynchronousScan()booleansynchronousScan(int timeout, int retry)booleansynchronousVerboseScan()booleansynchronousVerboseScan(int timeout, int retry)
-
-
-
Field Detail
-
SCAN
public static final java.lang.String SCAN
- See Also:
- Constant Field Values
-
VERBOSE_SCAN
public static final java.lang.String VERBOSE_SCAN
- See Also:
- Constant Field Values
-
ASYNC_SCAN
public static final java.lang.String ASYNC_SCAN
- See Also:
- Constant Field Values
-
VERBOSE_ASYNC_SCAN
public static final java.lang.String VERBOSE_ASYNC_SCAN
- See Also:
- Constant Field Values
-
PING
public static final java.lang.String PING
- See Also:
- Constant Field Values
-
PONG
public static final java.lang.String PONG
- See Also:
- Constant Field Values
-
DEFAULT_SYNC_TIMEOUT
public static final int DEFAULT_SYNC_TIMEOUT
-
DEFAULT_SYNC_RETRY
public static final int DEFAULT_SYNC_RETRY
- See Also:
- Constant Field Values
-
DEFAULT_SO_TIMEOUT
public static final int DEFAULT_SO_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
isScan
public static boolean isScan(java.lang.String request)
-
isAsyncScan
public static boolean isAsyncScan(java.lang.String request)
-
isVerboseScan
public static boolean isVerboseScan(java.lang.String request)
-
synchronousScan
public final boolean synchronousScan() throws java.net.UnknownHostException, java.net.SocketException, java.io.IOException- Throws:
java.net.UnknownHostExceptionjava.net.SocketExceptionjava.io.IOException
-
synchronousVerboseScan
public final boolean synchronousVerboseScan() throws java.io.IOException- Throws:
java.io.IOException
-
synchronousScan
public final boolean synchronousScan(int timeout, int retry) throws java.net.UnknownHostException, java.net.SocketException, java.io.IOException- Throws:
java.net.UnknownHostExceptionjava.net.SocketExceptionjava.io.IOException
-
synchronousVerboseScan
public final boolean synchronousVerboseScan(int timeout, int retry) throws java.io.IOException- Throws:
java.io.IOException
-
asynchronousScan
public final boolean asynchronousScan() throws java.net.UnknownHostException, java.net.SocketException, java.io.IOException- Throws:
java.net.UnknownHostExceptionjava.net.SocketExceptionjava.io.IOException
-
asynchronousVerboseScan
public final boolean asynchronousVerboseScan() throws java.io.IOException- Throws:
java.io.IOException
-
-