public static void main(String[] args) throws Exception { RegistryApplication registryApplication = new RegistryApplication(); registryApplication.run(args); }
@Override public void run(RegistryConfiguration registryConfiguration, Environment environment) throws Exception { // handle HA if it is configured registerHA(registryConfiguration.getHaConfig(), environment); registerResources(environment, registryConfiguration); environment.jersey().register(GenericExceptionMapper.class); if (registryConfiguration.isEnableCors()) { enableCORS(environment); } addServletFilters(registryConfiguration, environment); registerAndNotifyOtherServers(environment); }
@Override public void run(RegistryConfiguration registryConfiguration, Environment environment) throws Exception { super.run(registryConfiguration, environment); environment.lifecycle().addServerLifecycleListener(new ServerLifecycleListener() { @Override public void serverStarted(Server server) { localServer = server; LOG.info("Received callback as server is started :[{}]", server); } }); }
private void registerResources(Environment environment, RegistryConfiguration registryConfiguration) throws ClassNotFoundException, IllegalAccessException, InstantiationException { storageManager = getStorageManager(registryConfiguration.getStorageProviderConfiguration()); if (storageManager instanceof TransactionManager) transactionManager = (TransactionManager) storageManager; else transactionManager = new NOOPTransactionManager(); FileStorage fileStorage = getJarStorage(registryConfiguration.getFileStorageConfiguration());
@Override public void run(RegistryConfiguration registryConfiguration, Environment environment) throws Exception { super.run(registryConfiguration, environment); environment.lifecycle().addServerLifecycleListener(new ServerLifecycleListener() { @Override public void serverStarted(Server server) { localServer = server; LOG.info("Received callback as server is started :[{}]", server); } }); }
private void registerResources(Environment environment, RegistryConfiguration registryConfiguration) throws ClassNotFoundException, IllegalAccessException, InstantiationException { storageManager = getStorageManager(registryConfiguration.getStorageProviderConfiguration()); if (storageManager instanceof TransactionManager) transactionManager = (TransactionManager) storageManager; else transactionManager = new NOOPTransactionManager(); FileStorage fileStorage = getJarStorage(registryConfiguration.getFileStorageConfiguration());
@Override public void run(RegistryConfiguration registryConfiguration, Environment environment) throws Exception { // handle HA if it is configured registerHA(registryConfiguration.getHaConfig(), environment); registerResources(environment, registryConfiguration); environment.jersey().register(GenericExceptionMapper.class); if (registryConfiguration.isEnableCors()) { enableCORS(environment); } addServletFilters(registryConfiguration, environment); registerAndNotifyOtherServers(environment); }
public static void main(String[] args) throws Exception { RegistryApplication registryApplication = new RegistryApplication(); registryApplication.run(args); }