StorageService: register the StreamManagerMBean
This patch adds the registration of StreamManagerMBean to StorageService, similiar to the way it is done in origin. After this patch the StreamManager will be available via Jconsole. Signed-off-by: Amnon Heiman <amnon@scylladb.com>
This commit is contained in:
parent
3cb168bed3
commit
9b14550d0a
@ -38,6 +38,8 @@ import javax.ws.rs.core.MultivaluedMap;
|
||||
|
||||
import org.apache.cassandra.metrics.StorageMetrics;
|
||||
import org.apache.cassandra.repair.RepairParallelism;
|
||||
import org.apache.cassandra.streaming.StreamManager;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
|
||||
/**
|
||||
@ -76,8 +78,7 @@ public class StorageService extends NotificationBroadcasterSupport
|
||||
jmxObjectName = new ObjectName(
|
||||
"org.apache.cassandra.db:type=StorageService");
|
||||
mbs.registerMBean(this, jmxObjectName);
|
||||
// mbs.registerMBean(StreamManager.instance, new ObjectName(
|
||||
// StreamManager.OBJECT_NAME));
|
||||
mbs.registerMBean(StreamManager.getInstance(), new ObjectName(StreamManager.OBJECT_NAME));
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user