/** * Try to create the registry. Log errors * <p> * @param serviceName the service name */ protected void createReqistry( String serviceName ) { // TODO: Refactor method signature. This is ugly but required to keep the binary API compatibility this.registry = RemoteUtils.createRegistry(registryPort); if ( cacheEventLogger != null ) { if (this.registry != null) { cacheEventLogger.logApplicationEvent( "RegistryKeepAliveRunner", "createRegistry", "Successfully created registry [" + serviceName + "]." ); } else { cacheEventLogger.logError( "RegistryKeepAliveRunner", "createRegistry", "Could not start registry [" + serviceName + "]." ); } } }
/** * Try to create the registry. Log errors * <p> * @param registry */ protected void createReqistry( String registry ) { Registry reg = RemoteUtils.createRegistry(registryPort); if ( cacheEventLogger != null ) { if (reg != null) { cacheEventLogger.logApplicationEvent( "RegistryKeepAliveRunner", "createRegistry", "Successfully created registry [" + registry + "]." ); } else { cacheEventLogger.logError( "RegistryKeepAliveRunner", "createRegistry", "Could not start registry [" + registry + "]." ); } } }
/** * Call create registry. * <p> * The exception is in the security manager setting. */ public void testCreateRegistry() { Registry registry = RemoteUtils.createRegistry( 1102 ); assertNotNull("Registry should not be null", registry); }
/** * Call create registry. * <p> * The exception is in the security manager setting. */ public void testCreateRegistry() { Registry registry = RemoteUtils.createRegistry( 1102 ); assertNotNull("Registry should not be null", registry); }
RemoteUtils.createRegistry( port );
RemoteUtils.createRegistry( port );
/** * Start the cache. */ public TestRemoteCache() { super(); try { System.out.println( "main> creating registry on the localhost" ); RemoteUtils.createRegistry( 1101 ); RemoteCacheServerFactory.startup( "localhost", 1101, "/TestRemoteServer.ccf" ); } catch ( Exception e ) { e.printStackTrace(); } }
/** * Start the cache. */ public TestRemoteCache() { super(); try { System.out.println( "main> creating registry on the localhost" ); RemoteUtils.createRegistry( 1101 ); Properties config = RemoteUtils.loadProps("/TestRemoteServer.ccf"); RemoteCacheServerFactory.startup( "localhost", 1101, config); } catch ( Exception e ) { e.printStackTrace(); } }
registry = RemoteUtils.createRegistry(port);
registry = RemoteUtils.createRegistry(port);