backtype.storm.utils
Class ShellProcess
java.lang.Object
backtype.storm.utils.ShellProcess
- All Implemented Interfaces:
- Serializable
public class ShellProcess
- extends Object
- implements Serializable
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static org.apache.log4j.Logger LOG
ShellLogger
public static org.apache.log4j.Logger ShellLogger
serializer
public ISerializer serializer
pid
public Number pid
componentName
public String componentName
ShellProcess
public ShellProcess(String[] command)
launch
public Number launch(Map conf,
TopologyContext context)
destroy
public void destroy()
readShellMsg
public ShellMsg readShellMsg()
throws IOException
- Throws:
IOException
writeBoltMsg
public void writeBoltMsg(BoltMsg msg)
throws IOException
- Throws:
IOException
writeSpoutMsg
public void writeSpoutMsg(SpoutMsg msg)
throws IOException
- Throws:
IOException
writeTaskIds
public void writeTaskIds(List<Integer> taskIds)
throws IOException
- Throws:
IOException
logErrorStream
public void logErrorStream()
getErrorsString
public String getErrorsString()
getPid
public Number getPid()
- Returns:
- pid, if the process has been launched, null otherwise.
getComponentName
public String getComponentName()
- Returns:
- the name of component.
getExitCode
public int getExitCode()
- Returns:
- exit code of the process if process is terminated, -1 if process is not started or terminated.
getProcessInfoString
public String getProcessInfoString()
getProcessTerminationInfoString
public String getProcessTerminationInfoString()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.