<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
- <Automatic-Module-Name>org.opendaylight.controller.cluster.mgmt.api</Automatic-Module-Name>
+ <Import-Package>
+ javax.management;resolution:=optional,
+ *
+ </Import-Package>
</instructions>
</configuration>
</plugin>
--- /dev/null
+/*
+ * Copyright (c) 2020 PANTHEON.tech, s.r.o. 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
+ */
+module org.opendaylight.controller.cluster.mgmt.api {
+ exports org.opendaylight.controller.cluster.mgmt.api;
+ // FIXME: 4.0.0: collapse these packages
+ exports org.opendaylight.controller.cluster.datastore.jmx.mbeans;
+ exports org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard;
+
+ // Annotation-only dependencies
+ requires static java.management;
+ requires static org.eclipse.jdt.annotation;
+}
*/
package org.opendaylight.controller.cluster.datastore.jmx.mbeans;
+import javax.management.MXBean;
+
/**
* MXBean interface for retrieving write Tx commit statistics.
*
* @author Thomas Pantelis
*/
+@MXBean
public interface CommitStatsMXBean {
/**
* Returns the total number of commits that have occurred.
*/
package org.opendaylight.controller.cluster.datastore.jmx.mbeans;
+import javax.management.MXBean;
+
/**
* MXBean interface for data store configuration.
*
* @author Thomas Pantelis
*/
+@MXBean
public interface DatastoreConfigurationMXBean {
long getShardTransactionIdleTimeoutInSeconds();
*/
package org.opendaylight.controller.cluster.datastore.jmx.mbeans;
+import javax.management.MXBean;
+
/**
* JMX bean for general datastore info.
*
* @author Thomas Pantelis
*/
+@MXBean
public interface DatastoreInfoMXBean {
double getTransactionCreationRateLimit();
package org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard;
import java.util.List;
+import javax.management.MXBean;
+import org.eclipse.jdt.annotation.NonNullByDefault;
import org.opendaylight.controller.cluster.mgmt.api.DataTreeListenerInfo;
/**
*
* @author Thomas Pantelis
*/
+@MXBean
+@NonNullByDefault
public interface ShardDataTreeListenerInfoMXBean {
+
List<DataTreeListenerInfo> getDataTreeChangeListenerInfo();
}
* 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 javax.management.MXBean;
import org.opendaylight.controller.cluster.mgmt.api.FollowerInfo;
/**
*
* @author syedbahm
*/
+@MXBean
public interface ShardStatsMXBean {
String getShardName();