Main: use the RMIServerSocketFactoryImp jmx init
This patch init the jmx proxy from the RMIServerSocketFactoryImp init function. This way the jmx can be set to listen on local port only. Signed-off-by: Amnon Heiman <amnon@scylladb.com>
This commit is contained in:
parent
39a19b144d
commit
f3610f1a02
|
@ -4,6 +4,7 @@
|
|||
package com.scylladb.jmx.main;
|
||||
|
||||
import com.scylladb.jmx.api.APIConfig;
|
||||
import com.scylladb.jmx.utils.RMIServerSocketFactoryImpl;
|
||||
|
||||
import org.apache.cassandra.db.ColumnFamilyStore;
|
||||
import org.apache.cassandra.db.commitlog.CommitLog;
|
||||
|
@ -24,6 +25,7 @@ public class Main {
|
|||
APIConfig.setConfig();
|
||||
System.out.println("Connecting to " + APIConfig.getBaseUrl());
|
||||
System.out.println("Starting the JMX server");
|
||||
RMIServerSocketFactoryImpl.maybeInitJmx();
|
||||
StorageService.getInstance();
|
||||
StorageProxy.getInstance();
|
||||
MessagingService.getInstance();
|
||||
|
|
Loading…
Reference in New Issue
Block a user