/** * Starts up the remote cache server on this JVM, and binds it to the registry on the given host * and port. * <p> * A remote cache is either a local cache or a cluster cache. * <p> * @param host the host name * @param port the port number * @param props the remote cache hub configuration * @param propFile the remote cache hub configuration file * @throws IOException * * @deprecated Use startup(String, int, Properties) instead */ @Deprecated public static void startup( String host, int port, Properties props, String propFile ) throws IOException { if ( log.isWarnEnabled() ) { log.warn( "ConfigFileName = [" + propFile + "] ignored" ); } startup(host, port, props); }
/** * Starts up the remote cache server on this JVM, and binds it to the registry on the given host * and port. * <p> * A remote cache is either a local cache or a cluster cache. * <p> * @param host the host name * @param port the port number * @param propFile the remote cache hub configuration file * @throws IOException * * @deprecated Use startup(String, int, Properties) instead */ @Deprecated public static void startup( String host, int port, String propFile ) throws IOException { if ( log.isInfoEnabled() ) { log.info( "ConfigFileName = [" + propFile + "]" ); } Properties props = RemoteUtils.loadProps( propFile ); startup(host, port, props); }
startup(host, port, props, propFile);
RemoteCacheServerFactory.startup( registryHost, registryPort, "/" + fullPropsFileName ); if ( log.isInfoEnabled() )
RemoteCacheServerFactory.startup(registryHost, registryPort, props); if (log.isInfoEnabled())
startup( host, port, prop); log.debug( "main> done" );
RemoteCacheServerFactory.startup( host, port, args.length > 0 ? args[0] : null ); log.debug( "main> done" );
/** * 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(); } }
RemoteCacheServerFactory.startup(registryHost, registryPort, "/" + DEFAULT_PROPS_FILE_NAME); } catch (IOException e) {
RemoteCacheServerFactory.startup( registryHost, registryPort, "/" + propsFileName );
RemoteCacheServerFactory.startup( registryHost, registryPort, props );