org.sonar.process
Class ProcessCommands

java.lang.Object
  extended by org.sonar.process.ProcessCommands

public class ProcessCommands
extends Object

Process inter-communication to :

It relies on files shared by both processes. Following alternatives were considered but not selected :


Constructor Summary
ProcessCommands(File directory, String processKey)
           
 
Method Summary
 boolean askedForStop()
           
 void askForStop()
          To be executed by monitor process to ask for child process termination
 void endWatch()
           
 boolean isReady()
           
 void prepare()
           
 void setReady()
          To be executed by child process to declare that it's ready
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessCommands

public ProcessCommands(File directory,
                       String processKey)
Method Detail

prepare

public void prepare()

endWatch

public void endWatch()

isReady

public boolean isReady()

setReady

public void setReady()
To be executed by child process to declare that it's ready


askForStop

public void askForStop()
To be executed by monitor process to ask for child process termination


askedForStop

public boolean askedForStop()


Copyright © 2009–2015 SonarSource. All rights reserved.