public final class StandbySync 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 |
---|
StandbySync(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 StandbySync(String host, int port, FileStore store, boolean secure, int readTimeoutMs, boolean autoClean) throws SSLException
SSLException
public String getMBeanName()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public String getMode()
getMode
in interface StandbyStatusMBean
public boolean isRunning()
isRunning
in interface StandbyStatusMBean
public void start()
start
in interface StandbyStatusMBean
public void stop()
stop
in interface StandbyStatusMBean
public String getStatus()
getStatus
in interface StandbyStatusMBean
public int getFailedRequests()
getFailedRequests
in interface ClientStandbyStatusMBean
public int getSecondsSinceLastSuccess()
getSecondsSinceLastSuccess
in interface ClientStandbyStatusMBean
public int calcFailedRequests()
calcFailedRequests
in interface ClientStandbyStatusMBean
public int calcSecondsSinceLastSuccess()
calcSecondsSinceLastSuccess
in interface ClientStandbyStatusMBean
public void cleanup()
cleanup
in interface ClientStandbyStatusMBean
public long getSyncStartTimestamp()
getSyncStartTimestamp
in interface ClientStandbyStatusMBean
public long getSyncEndTimestamp()
getSyncEndTimestamp
in interface ClientStandbyStatusMBean
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.