/** * @return String details */ @Override public String toString() { StringBuilder buf = new StringBuilder(super.toString()); buf.append( "\n servicePort = [" + this.getServicePort() + "]" ); buf.append( "\n allowClusterGet = [" + this.isAllowClusterGet() + "]" ); buf.append( "\n configFileName = [" + this.getConfigFileName() + "]" ); buf.append( "\n rmiSocketFactoryTimeoutMillis = [" + this.getRmiSocketFactoryTimeoutMillis() + "]" ); buf.append( "\n useRegistryKeepAlive = [" + this.isUseRegistryKeepAlive() + "]" ); buf.append( "\n registryKeepAliveDelayMillis = [" + this.getRegistryKeepAliveDelayMillis() + "]" ); buf.append( "\n eventQueueType = [" + this.getEventQueueType() + "]" ); buf.append( "\n eventQueuePoolName = [" + this.getEventQueuePoolName() + "]" ); return buf.toString(); } }
/** * @return String details */ @Override public String toString() { StringBuilder buf = new StringBuilder(super.toString()); buf.append( "\n servicePort = [" + this.getServicePort() + "]" ); buf.append( "\n allowClusterGet = [" + this.isAllowClusterGet() + "]" ); buf.append( "\n configFileName = [" + this.getConfigFileName() + "]" ); buf.append( "\n rmiSocketFactoryTimeoutMillis = [" + this.getRmiSocketFactoryTimeoutMillis() + "]" ); buf.append( "\n startRegistry = [" + this.isStartRegistry() + "]" ); buf.append( "\n useRegistryKeepAlive = [" + this.isUseRegistryKeepAlive() + "]" ); buf.append( "\n registryKeepAliveDelayMillis = [" + this.getRegistryKeepAliveDelayMillis() + "]" ); buf.append( "\n eventQueueType = [" + this.getEventQueueType() + "]" ); buf.append( "\n eventQueuePoolName = [" + this.getEventQueuePoolName() + "]" ); return buf.toString(); } }
/** verify that we get the registryKeepAliveDelayMillis value */ public void testConfigureRemoteCacheServerAttributes_registryKeepAliveDelayMillisPresent() { // SETUP int registryKeepAliveDelayMillis = 123245; Properties props = new Properties(); props.put( IRemoteCacheConstants.CACHE_SERVER_ATTRIBUTES_PROPERTY_PREFIX + ".registryKeepAliveDelayMillis", String.valueOf( registryKeepAliveDelayMillis ) ); // DO WORK RemoteCacheServerAttributes result = RemoteCacheServerFactory.configureRemoteCacheServerAttributes( props ); // VERIFY assertEquals( "Wrong registryKeepAliveDelayMillis", registryKeepAliveDelayMillis, result.getRegistryKeepAliveDelayMillis() ); }
/** verify that we get the registryKeepAliveDelayMillis value */ public void testConfigureRemoteCacheServerAttributes_registryKeepAliveDelayMillisPresent() { // SETUP int registryKeepAliveDelayMillis = 123245; Properties props = new Properties(); props.put( IRemoteCacheConstants.CACHE_SERVER_ATTRIBUTES_PROPERTY_PREFIX + ".registryKeepAliveDelayMillis", String.valueOf( registryKeepAliveDelayMillis ) ); // DO WORK RemoteCacheServerAttributes result = RemoteCacheServerFactory.configureRemoteCacheServerAttributes( props ); // VERIFY assertEquals( "Wrong registryKeepAliveDelayMillis", registryKeepAliveDelayMillis, result.getRegistryKeepAliveDelayMillis() ); }
keepAliveDaemon.scheduleAtFixedRate(runner, 0, rcsa.getRegistryKeepAliveDelayMillis(), TimeUnit.MILLISECONDS);
keepAliveDaemon.scheduleAtFixedRate(runner, 0, rcsa.getRegistryKeepAliveDelayMillis(), TimeUnit.MILLISECONDS);