{
return;
}
// TODO: make automatic
RemoteCacheServerAttributes rcsa = new RemoteCacheServerAttributes();
rcsa.setConfigFileName( propFile );
Properties prop = RemoteUtils.loadProps( propFile );
String servicePortStr = prop.getProperty( REMOTE_CACHE_SERVICE_PORT );
int servicePort = -1;
try
{
servicePort = Integer.parseInt( servicePortStr );
rcsa.setServicePort( servicePort );
log.debug( "Remote cache service uses port number " + servicePort + "." );
}
catch ( NumberFormatException ignore )
{
log.debug( "Remote cache service port property " + REMOTE_CACHE_SERVICE_PORT + " not specified. An anonymous port will be used." );
}
String lccStr = prop.getProperty( REMOTE_LOCAL_CLUSTER_CONSISTENCY );
if ( lccStr == null )
{
lccStr = "true";
}
boolean lcc = Boolean.valueOf( lccStr ).booleanValue();
rcsa.setLocalClusterConsistency( lcc );
String acgStr = prop.getProperty( REMOTE_ALLOW_CLUSTER_GET );
if ( acgStr == null )
{
acgStr = "true";
}
boolean acg = Boolean.valueOf( acgStr ).booleanValue();
rcsa.setAllowClusterGet( acg );
// CREATE SERVER
instance = new RemoteCacheServer( rcsa );
if ( host == null )