public final class StandbyClientSync extends Object implements ClientStandbyStatusMBean, Runnable, Closeable
| Modifier and Type | Field and Description |
|---|---|
static String |
CLIENT_ID_PROPERTY_NAME |
JMX_NAME, STATUS_CLOSED, STATUS_CLOSING, STATUS_INITIALIZING, STATUS_RUNNING, STATUS_STARTING, STATUS_STOPPED| Constructor and Description |
|---|
StandbyClientSync(String host,
int port,
FileStore store,
boolean secure,
int readTimeoutMs,
boolean autoClean) |
| Modifier and Type | Method and Description |
|---|---|
int |
calcFailedRequests() |
int |
calcSecondsSinceLastSuccess() |
void |
cleanup() |
void |
close() |
int |
getFailedRequests() |
String |
getMBeanName() |
String |
getMode() |
int |
getSecondsSinceLastSuccess() |
String |
getStatus() |
long |
getSyncEndTimestamp() |
long |
getSyncStartTimestamp() |
boolean |
isRunning() |
void |
run() |
void |
start() |
void |
stop() |
public static final String CLIENT_ID_PROPERTY_NAME
public String getMBeanName()
public void close()
close in interface Closeableclose in interface AutoCloseable@Nonnull public String getMode()
getMode in interface StandbyStatusMBeanpublic boolean isRunning()
isRunning in interface StandbyStatusMBeanpublic void start()
start in interface StandbyStatusMBeanpublic void stop()
stop in interface StandbyStatusMBeanpublic String getStatus()
getStatus in interface StandbyStatusMBeanpublic int getFailedRequests()
getFailedRequests in interface ClientStandbyStatusMBeanpublic int getSecondsSinceLastSuccess()
getSecondsSinceLastSuccess in interface ClientStandbyStatusMBeanpublic int calcFailedRequests()
calcFailedRequests in interface ClientStandbyStatusMBeanpublic int calcSecondsSinceLastSuccess()
calcSecondsSinceLastSuccess in interface ClientStandbyStatusMBeanpublic void cleanup()
cleanup in interface ClientStandbyStatusMBeanpublic long getSyncStartTimestamp()
getSyncStartTimestamp in interface ClientStandbyStatusMBeanpublic long getSyncEndTimestamp()
getSyncEndTimestamp in interface ClientStandbyStatusMBeanCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.