public class CacheServerHelper
extends java.lang.Object
Each cache server must be given a unique name. Methods in this class assume but do not enforce this and are not thread-safe.
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheServerHelper.Record
Represents the runtime record for a cache server.
|
| Constructor and Description |
|---|
CacheServerHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getStartCommand(java.lang.String name,
ClientDescription cd,
java.lang.String cacheXmlFile,
java.lang.String[] extraArgs)
Returns the command line for a "start" operation on the given cache server.
|
static java.lang.String |
getStopCommand(java.lang.String name,
HostDescription hd)
Returns the command line for a "stop" operation on the given cache server.
|
static void |
killCacheServer(java.lang.String name)
Kills the cache server with the given name with a mean kill.
|
static void |
startCacheServer(java.lang.String name,
java.lang.String cacheXmlFile)
Starts a command-line cache server with the given name on the local host,
configured using the XML file.
|
static void |
startCacheServer(java.lang.String name,
java.lang.String cacheXmlFile,
java.lang.String[] extraArgs)
Starts a command-line cache server with the given name on the local host,
configured using the XML file and optional extra arguments.
|
static void |
stopCacheServer(java.lang.String name)
Stops the cache server with the given name.
|
public static void startCacheServer(java.lang.String name,
java.lang.String cacheXmlFile)
HydraRuntimeException - if the cache server does not start.public static void startCacheServer(java.lang.String name,
java.lang.String cacheXmlFile,
java.lang.String[] extraArgs)
HydraRuntimeException - if the cache server does not start.public static void killCacheServer(java.lang.String name)
HydraRuntimeException - if the cache server is not running.HydraTimeoutException - if the kill takes more than 300 seconds.public static void stopCacheServer(java.lang.String name)
HydraRuntimeException - if the cache server is not running or did
not stop.public static java.lang.String getStartCommand(java.lang.String name,
ClientDescription cd,
java.lang.String cacheXmlFile,
java.lang.String[] extraArgs)
public static java.lang.String getStopCommand(java.lang.String name,
HostDescription hd)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.