void start() throws Exception { if(localServer == null) { LOG.info("Local schema registry instance is getting started."); run("server", configFilePath); LOG.info("Local schema registry instance is started at port [{}]", getLocalPort()); } else { LOG.info("Local schema registry instance is already started at port [{}]", getLocalPort()); } }
public void stop() throws Exception { registryApplication.stop(); }
public int getAdminPort() { return registryApplication.getAdminPort(); }
public int getAdminPort() { return registryApplication.getAdminPort(); }
public int getLocalPort() { return registryApplication.getLocalPort(); }
public int getLocalPort() { return registryApplication.getLocalPort(); }
public void stop() throws Exception { registryApplication.stop(); }
/** * Creates an instance of {@link LocalSchemaRegistryServer} with the given {@code configFilePath} * * @param configFilePath Path of the config file for this server which contains all the required configuration. */ public LocalSchemaRegistryServer(String configFilePath) { registryApplication = new LocalRegistryApplication(configFilePath); }
void start() throws Exception { if(localServer == null) { LOG.info("Local schema registry instance is getting started."); run("server", configFilePath); LOG.info("Local schema registry instance is started at port [{}]", getLocalPort()); } else { LOG.info("Local schema registry instance is already started at port [{}]", getLocalPort()); } }
/** * Starts the server if it is not started yet. * * @throws Exception */ public void start() throws Exception { registryApplication.start(); }
/** * Starts the server if it is not started yet. * * @throws Exception */ public void start() throws Exception { registryApplication.start(); }
/** * Returns true if this server is the leader in registry cluster. */ public boolean hasLeadership() { return registryApplication.hasLeadership(); }
/** * Returns true if this server is the leader in registry cluster. */ public boolean hasLeadership() { return registryApplication.hasLeadership(); }
/** * Creates an instance of {@link LocalSchemaRegistryServer} with the given {@code configFilePath} * * @param configFilePath Path of the config file for this server which contains all the required configuration. */ public LocalSchemaRegistryServer(String configFilePath) { registryApplication = new LocalRegistryApplication(configFilePath); }