Bug 2461 : Adding capture snapshot JMX operation.
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / jmx / mbeans / shard / ShardStatsMXBean.java
index 8174727788b46168c7202cb28837c320fd9978e5..ecc51b091746dba4064e1b232281664777db0e72 100644 (file)
@@ -1,9 +1,15 @@
+/*
+ * Copyright (c) 2014, 2015 Brocade Communications Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
 package org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard;
 
 import java.util.List;
-
-import org.opendaylight.controller.md.sal.common.util.jmx.ThreadExecutorStats;
-import org.opendaylight.yangtools.util.concurrent.ListenerNotificationQueueStats;
+import org.opendaylight.controller.cluster.raft.client.messages.FollowerInfo;
 
 /**
  * @author: syedbahm
@@ -12,6 +18,10 @@ public interface ShardStatsMXBean {
 
    String getShardName();
 
+   String getStatRetrievalTime();
+
+   String getStatRetrievalError();
+
    long getCommittedTransactionsCount();
 
    long getReadOnlyTransactionCount();
@@ -30,6 +40,16 @@ public interface ShardStatsMXBean {
 
    long getLastApplied();
 
+   long getLastIndex();
+
+   long getLastTerm();
+
+   long getSnapshotIndex();
+
+   long getSnapshotTerm();
+
+   long getReplicatedToAllIndex();
+
    String getLastCommittedTransactionTime();
 
    long getFailedTransactionsCount();
@@ -42,15 +62,28 @@ public interface ShardStatsMXBean {
 
    String getRaftState();
 
-   ThreadExecutorStats getDataStoreExecutorStats();
+   String getVotedFor();
 
-   ThreadExecutorStats getNotificationMgrExecutorStats();
+   boolean isSnapshotCaptureInitiated();
 
-   List<ListenerNotificationQueueStats> getCurrentNotificationMgrListenerQueueStats();
+   void resetTransactionCounters();
 
-   int getMaxNotificationMgrListenerQueueSize();
+   long getInMemoryJournalDataSize();
 
-   void resetTransactionCounters();
+   long getInMemoryJournalLogSize();
+
+   boolean getFollowerInitialSyncStatus();
+
+   List<FollowerInfo> getFollowerInfo();
+
+   String getPeerAddresses();
+
+   long getLeadershipChangeCount();
+
+   String getLastLeadershipChangeTime();
+
+   int getPendingTxCommitQueueSize();
+
+   void captureSnapshot();
 
-   long getDataSize();
 }