public class CacheServerHelper extends 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 String |
getStartCommand(String name,
ClientDescription cd,
String cacheXmlFile,
String[] extraArgs)
Returns the command line for a "start" operation on the given cache server.
|
static String |
getStopCommand(String name,
HostDescription hd)
Returns the command line for a "stop" operation on the given cache server.
|
static void |
killCacheServer(String name)
Kills the cache server with the given name with a mean kill.
|
static void |
startCacheServer(String name,
String cacheXmlFile)
Starts a command-line cache server with the given name on the local host,
configured using the XML file.
|
static void |
startCacheServer(String name,
String cacheXmlFile,
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(String name)
Stops the cache server with the given name.
|
public static void startCacheServer(String name, String cacheXmlFile)
HydraRuntimeException - if the cache server does not start.public static void startCacheServer(String name, String cacheXmlFile, String[] extraArgs)
HydraRuntimeException - if the cache server does not start.public static void killCacheServer(String name)
HydraRuntimeException - if the cache server is not running.HydraTimeoutException - if the kill takes more than 300 seconds.public static void stopCacheServer(String name)
HydraRuntimeException - if the cache server is not running or did
not stop.public static String getStartCommand(String name, ClientDescription cd, String cacheXmlFile, String[] extraArgs)
public static String getStopCommand(String name, HostDescription hd)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.