public class RemoteCacheServerFactory extends java.lang.Object implements IRemoteCacheConstants
CACHE_SERVER_ATTRIBUTES_PROPERTY_PREFIX, CACHE_SERVER_PREFIX, CUSTOM_RMI_SOCKET_FACTORY_PROPERTY_PREFIX, PROPERTY_PREFIX, REMOTE_ALLOW_CLUSTER_GET, REMOTE_CACHE_SERVICE_NAME, REMOTE_CACHE_SERVICE_PORT, REMOTE_CACHE_SERVICE_VAL, REMOTE_LOCAL_CLUSTER_CONSISTENCY, SOCKET_TIMEOUT_MILLIS, TOMCAT_ON, TOMCAT_XML| Modifier and Type | Method and Description |
|---|---|
protected static ICacheEventLogger |
configureCacheEventLogger(java.util.Properties props)
Tries to get the event logger by new and old config styles.
|
protected static java.rmi.server.RMISocketFactory |
configureObjectSpecificCustomFactory(java.util.Properties props)
This configures an object specific custom factory.
|
protected static RemoteCacheServerAttributes |
configureRemoteCacheServerAttributes(java.util.Properties prop)
Configure.
|
protected static RemoteCacheServerAttributes |
configureServerAttributes(java.lang.String propFile)
Configures the RemoteCacheServerAttributes from the props file.
|
static org.apache.jcs.auxiliary.remote.server.RemoteCacheServer |
getRemoteCacheServer()
This will allow you to get stats from the server, etc.
|
protected static java.lang.String |
getServiceName() |
static void |
main(java.lang.String[] args)
Creates an local RMI registry on the default port, starts up the remote cache server, and
binds it to the registry.
|
protected static void |
registerServer(java.lang.String host,
int port,
java.lang.String serviceName)
Registers the server with the registry.
|
protected static void |
setServiceName(java.lang.String serviceName) |
static void |
startup(java.lang.String host,
int port,
java.lang.String propFile)
Starts up the remote cache server on this JVM, and binds it to the registry on the given host
and port.
|
public static org.apache.jcs.auxiliary.remote.server.RemoteCacheServer getRemoteCacheServer()
A remote cache is either a local cache or a cluster cache.
public static void startup(java.lang.String host,
int port,
java.lang.String propFile)
throws java.io.IOException
A remote cache is either a local cache or a cluster cache.
host - port - propFile - java.io.IOExceptionprotected static ICacheEventLogger configureCacheEventLogger(java.util.Properties props)
props - protected static java.rmi.server.RMISocketFactory configureObjectSpecificCustomFactory(java.util.Properties props)
props - protected static void registerServer(java.lang.String host,
int port,
java.lang.String serviceName)
throws java.rmi.RemoteException
host - port - serviceName - java.rmi.RemoteExceptionprotected static RemoteCacheServerAttributes configureServerAttributes(java.lang.String propFile) throws java.io.IOException
propFile - java.io.IOExceptionprotected static RemoteCacheServerAttributes configureRemoteCacheServerAttributes(java.util.Properties prop)
jcs.remotecache.serverattributes.ATTRIBUTENAME=ATTRIBUTEVALUE
prop - public static void main(java.lang.String[] args)
throws java.lang.Exception
A remote cache is either a local cache or a cluster cache.
args - The command line argumentsjava.lang.Exceptionprotected static void setServiceName(java.lang.String serviceName)
serviceName - the serviceName to setprotected static java.lang.String getServiceName()
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.