public class Nuker extends Object
nukerun.sh or
nukerun.bat that kills all processes for that test.
Additional scripts are generated dor dumping stacks, dumping heap,
and moving remote test directories (where applicable).| Modifier and Type | Field and Description |
|---|---|
protected static String |
HDFS_DIRS |
protected static String |
UNIX_SYSDIRS |
protected static String |
WINDOWS_SYSDIRS |
| Modifier and Type | Method and Description |
|---|---|
protected Set |
getDirectories()
Returns the known test artifact directories.
|
static Nuker |
getInstance()
Returns the singleton instance of the nuker.
|
protected String |
getNukePIDCmd(HostDescription hd,
int pid)
The Reboot API fetches the nuke command for removing hostagent PIDs from
the nukerun script before rebooting, since the hostagent is needed to
produce the command after rebooting.
|
protected static void |
initialize(HostDescription hd) |
protected void |
recordDir(HostDescription hd,
String name,
String dir)
Records a remote directory for later move.
|
protected void |
recordHDFSDir(HostDescription hd,
HadoopPrms.NodeType nodeType,
String dir,
boolean moveAfterTest)
Records a remote HDFS directory for later move.
|
void |
recordHDFSDir(String hadoopDist,
String url,
boolean moveAfterTest)
Records a remote HDFS directory in an existing cluster for later removal.
|
protected void |
recordHDFSPIDNoDumps(HostDescription hd,
int pid,
boolean secure)
Records a Hadoop PID in the nukehadoop script.
|
protected void |
recordPID(HostDescription hd,
int pid)
Records a PID in the nukerun, dumprun, and heapdumprun scripts.
|
protected void |
recordPIDNoDumps(HostDescription hd,
int pid)
Records a PID in the nukerun script.
|
void |
recordRootCommand(HostDescription hd,
String cmd,
String dir)
Records a root command in moveHadoop.sh for secure HDFS.
|
protected void |
removeHDFSPIDNoDumps(HostDescription hd,
int pid,
boolean secure)
Removes an HDFS PID from the nukehadoop scripts.
|
protected void |
removePID(HostDescription hd,
int pid)
Removes a PID from the nukerun, dumprun, and heapdumprun scripts.
|
protected void |
removePIDNoDumps(HostDescription hd,
int pid)
Removes a PID from the nukerun scripts.
|
protected void |
removePIDNoDumps(String ncmd)
Removes a PID from the nukerun scripts using the given nuke command.
|
protected String |
wrapCommand(String cmd,
HostDescription hd) |
protected String |
wrapRootCommand(String cmd,
HostDescription hd) |
protected static final String UNIX_SYSDIRS
protected static final String WINDOWS_SYSDIRS
protected static final String HDFS_DIRS
protected static void initialize(HostDescription hd)
public static Nuker getInstance()
protected Set getDirectories()
public void recordRootCommand(HostDescription hd, String cmd, String dir)
protected String wrapRootCommand(String cmd, HostDescription hd)
public void recordHDFSDir(String hadoopDist, String url, boolean moveAfterTest)
protected void recordHDFSDir(HostDescription hd, HadoopPrms.NodeType nodeType, String dir, boolean moveAfterTest)
HDFS_DIRS to support
both runtime use by clients and script use by the master controller and
batterytest.protected void recordDir(HostDescription hd, String name, String dir)
protected void recordPIDNoDumps(HostDescription hd, int pid)
protected void recordPID(HostDescription hd, int pid)
protected void recordHDFSPIDNoDumps(HostDescription hd, int pid, boolean secure)
protected void removePIDNoDumps(String ncmd)
protected void removePIDNoDumps(HostDescription hd, int pid)
protected void removePID(HostDescription hd, int pid)
protected void removeHDFSPIDNoDumps(HostDescription hd, int pid, boolean secure)
protected String getNukePIDCmd(HostDescription hd, int pid)
protected String wrapCommand(String cmd, HostDescription hd)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.