Search in sources :

Example 6 with MasterMonitor

use of io.mantisrx.server.core.master.MasterMonitor in project mantis by Netflix.

the class MasterClientWrapper method initializeMasterMonitor.

private MasterMonitor initializeMasterMonitor() {
    CoreConfiguration config = configurationFactory.getConfig();
    CuratorService curatorService = new CuratorService(config, null);
    MasterMonitor masterMonitor = curatorService.getMasterMonitor();
    startInitialMasterDescriptionGetter(curatorService, masterMonitor);
    return masterMonitor;
}
Also used : MasterMonitor(io.mantisrx.server.core.master.MasterMonitor) CuratorService(io.mantisrx.server.core.zookeeper.CuratorService) CoreConfiguration(io.mantisrx.server.core.CoreConfiguration)

Aggregations

MasterMonitor (io.mantisrx.server.core.master.MasterMonitor)6 MasterDescription (io.mantisrx.server.core.master.MasterDescription)5 Test (org.junit.Test)4 CountDownLatch (java.util.concurrent.CountDownLatch)3 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)3 Route (akka.http.javadsl.server.Route)2 CoreConfiguration (io.mantisrx.server.core.CoreConfiguration)2 LocalMasterMonitor (io.mantisrx.server.core.master.LocalMasterMonitor)2 CuratorService (io.mantisrx.server.core.zookeeper.CuratorService)2 ILeadershipManager (io.mantisrx.server.master.ILeadershipManager)2 LeaderRedirectionFilter (io.mantisrx.server.master.LeaderRedirectionFilter)2 LeadershipManagerLocalImpl (io.mantisrx.server.master.LeadershipManagerLocalImpl)2 Observable (rx.Observable)2 Action0 (rx.functions.Action0)2 Func1 (rx.functions.Func1)2 Func2 (rx.functions.Func2)2 StaticPropertiesConfigurationFactory (io.mantisrx.server.master.client.config.StaticPropertiesConfigurationFactory)1 FileInputStream (java.io.FileInputStream)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1