/** * 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); }
/** * Starts the server if it is not started yet. * * @throws Exception */ public void start() throws Exception { registryApplication.start(); }
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 getLocalPort() { return registryApplication.getLocalPort(); }
public int getAdminPort() { return registryApplication.getAdminPort(); }
@Override public void init(FilterConfig filterConfig) throws ServletException { this.filterConfig = filterConfig; forwardPaths = buildRewritePathsMap(filterConfig.getInitParameter("forwardPaths")); redirectPaths = buildRewritePathsMap(filterConfig.getInitParameter("redirectPaths")); }
public int getAdminPort() { return this.localSchemaRegistryServer.getAdminPort(); }
public int getLocalPort() { return this.localSchemaRegistryServer.getLocalPort(); }
public boolean hasLeadership() { return this.localSchemaRegistryServer.hasLeadership(); }
public void stopTestServer() throws Exception { localSchemaRegistryServer.stop(); }
/** * 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); }
/** * Starts the server if it is not started yet. * * @throws Exception */ public void start() throws Exception { registryApplication.start(); }
public void stop() throws Exception { registryApplication.stop(); }
public int getLocalPort() { return registryApplication.getLocalPort(); }
public int getAdminPort() { return registryApplication.getAdminPort(); }
@Override public void init(FilterConfig filterConfig) throws ServletException { this.filterConfig = filterConfig; forwardPaths = buildRewritePathsMap(filterConfig.getInitParameter("forwardPaths")); redirectPaths = buildRewritePathsMap(filterConfig.getInitParameter("redirectPaths")); }