Class StandbyClientSync
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.standby.client.StandbyClientSync
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Runnable
,ClientStandbyStatusMBean
,StandbyStatusMBean
public final class StandbyClientSync extends Object implements ClientStandbyStatusMBean, Runnable, Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StandbyClientSync.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
CLIENT_ID_PROPERTY_NAME
-
Fields inherited from interface org.apache.jackrabbit.oak.segment.standby.jmx.StandbyStatusMBean
JMX_NAME, STATUS_CLOSED, STATUS_CLOSING, STATUS_INITIALIZING, STATUS_RUNNING, STATUS_STARTING, STATUS_STOPPED
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StandbyClientSync.Builder
builder()
int
calcFailedRequests()
int
calcSecondsSinceLastSuccess()
void
cleanup()
void
close()
int
getFailedRequests()
String
getMBeanName()
@NotNull String
getMode()
int
getSecondsSinceLastSuccess()
String
getStatus()
long
getSyncEndTimestamp()
long
getSyncStartTimestamp()
boolean
isRunning()
void
run()
void
start()
void
stop()
-
-
-
Field Detail
-
CLIENT_ID_PROPERTY_NAME
public static final String CLIENT_ID_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static StandbyClientSync.Builder builder()
-
getMBeanName
public String getMBeanName()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getMode
@NotNull public @NotNull String getMode()
- Specified by:
getMode
in interfaceStandbyStatusMBean
-
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interfaceStandbyStatusMBean
-
start
public void start()
- Specified by:
start
in interfaceStandbyStatusMBean
-
stop
public void stop()
- Specified by:
stop
in interfaceStandbyStatusMBean
-
getStatus
public String getStatus()
- Specified by:
getStatus
in interfaceStandbyStatusMBean
-
getFailedRequests
public int getFailedRequests()
- Specified by:
getFailedRequests
in interfaceClientStandbyStatusMBean
-
getSecondsSinceLastSuccess
public int getSecondsSinceLastSuccess()
- Specified by:
getSecondsSinceLastSuccess
in interfaceClientStandbyStatusMBean
-
calcFailedRequests
public int calcFailedRequests()
- Specified by:
calcFailedRequests
in interfaceClientStandbyStatusMBean
-
calcSecondsSinceLastSuccess
public int calcSecondsSinceLastSuccess()
- Specified by:
calcSecondsSinceLastSuccess
in interfaceClientStandbyStatusMBean
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceClientStandbyStatusMBean
-
getSyncStartTimestamp
public long getSyncStartTimestamp()
- Specified by:
getSyncStartTimestamp
in interfaceClientStandbyStatusMBean
-
getSyncEndTimestamp
public long getSyncEndTimestamp()
- Specified by:
getSyncEndTimestamp
in interfaceClientStandbyStatusMBean
-
-