backtype.storm.utils
Class ShellProcess

java.lang.Object
  extended by backtype.storm.utils.ShellProcess
All Implemented Interfaces:
Serializable

public class ShellProcess
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static org.apache.log4j.Logger LOG
           
 ISerializer serializer
           
static org.apache.log4j.Logger ShellLogger
           
 
Constructor Summary
ShellProcess(String[] command)
           
 
Method Summary
 void destroy()
           
 String getErrorsString()
           
 Number launch(Map conf, TopologyContext context)
           
 void logErrorStream()
           
 ShellMsg readShellMsg()
           
 void writeBoltMsg(BoltMsg msg)
           
 void writeSpoutMsg(SpoutMsg msg)
           
 void writeTaskIds(List<Integer> taskIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static org.apache.log4j.Logger LOG

ShellLogger

public static org.apache.log4j.Logger ShellLogger

serializer

public ISerializer serializer
Constructor Detail

ShellProcess

public ShellProcess(String[] command)
Method Detail

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()


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.