/** * 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 try { runCommand(); } catch (IOException e) { numShellExceptions.mark(); throw e; } }
/** 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(); }