/** Check to see if a command needs to be executed and execute if needed. */ protected void run() throws IOException { if (lastTime + interval > Time.monotonicNow()) { return; } exitCode = 0; // reset for next run if (Shell.MAC) { System.setProperty("jdk.lang.Process.launchMechanism", "POSIX_SPAWN"); } runCommand(); }
/** * check to see if a command needs to be executed and execute if needed. This * needs to be synchronized to avoid two threads polluting the 'process' * object */ protected synchronized void run() throws IOException { if (lastTime + interval > System.currentTimeMillis()) return; exitCode = 0; // reset for next run runCommand(); }
/** check to see if a command needs to be executed and execute if needed */ protected void run() throws IOException { if (lastTime + interval > System.currentTimeMillis()) return; exitCode = 0; // reset for next run runCommand(); }
/** check to see if a command needs to be executed and execute if needed */ protected void run() throws IOException { if (lastTime + interval > Time.monotonicNow()) return; exitCode = 0; // reset for next run runCommand(); }
/** Check to see if a command needs to be executed and execute if needed. */ protected void run() throws IOException { if (lastTime + interval > Time.monotonicNow()) { return; } exitCode = 0; // reset for next run runCommand(); }
/** check to see if a command needs to be executed and execute if needed */ protected void run() throws IOException { if (lastTime + interval > Time.monotonicNow()) return; exitCode = 0; // reset for next run runCommand(); }
/** check to see if a command needs to be executed and execute if needed */ protected void run() throws IOException { if (lastTime + interval > Time.monotonicNow()) return; exitCode = 0; // reset for next run runCommand(); }
/** check to see if a command needs to be executed and execute if needed */ protected void run() throws IOException { if (lastTime + interval > Time.now()) return; exitCode = 0; // reset for next run runCommand(); }