@Override public void stop() throws UnableToControlProcessException, IOException { stop(this.arguments.getWorkingDirectory(), this.arguments.getProcessType().getStopRequestFileName()); }
@Override public void stop() throws UnableToControlProcessException, IOException { stop(this.arguments.getWorkingDirectory(), this.arguments.getProcessType().getStopRequestFileName()); }
private static void deleteFiles(final File workingDir, final ProcessType processType) { deleteFile(workingDir, processType.getStatusRequestFileName()); deleteFile(workingDir, processType.getStatusFileName()); deleteFile(workingDir, processType.getStopRequestFileName()); }
private static void deleteFiles(final File workingDir, final ProcessType processType) { deleteFile(workingDir, processType.getStatusRequestFileName()); deleteFile(workingDir, processType.getStatusFileName()); deleteFile(workingDir, processType.getStopRequestFileName()); }
this.stopRequestFile = new File(this.workingDirectory, ProcessType.SERVER.getStopRequestFileName()); this.stopRequestFile.createNewFile(); assertTrue(this.stopRequestFile.exists());
this.stopRequestFile = new File(this.workingDirectory, ProcessType.LOCATOR.getStopRequestFileName()); this.stopRequestFile.createNewFile(); assertTrue(this.stopRequestFile.exists());
new File(ProcessType.SERVER.getStopRequestFileName()).delete();
new File(ProcessType.LOCATOR.getStopRequestFileName()).delete();
this.stopRequestFileWatchdog = new ControlFileWatchdog(workingDir, processType.getStopRequestFileName(), stopHandler, false); this.stopRequestFileWatchdog.start(); this.statusRequestFileWatchdog = new ControlFileWatchdog(workingDir, processType.getStatusRequestFileName(), statusHandler, false);
this.stopRequestFileWatchdog = new ControlFileWatchdog(workingDir, processType.getStopRequestFileName(), stopHandler, false); this.stopRequestFileWatchdog.start(); this.statusRequestFileWatchdog = new ControlFileWatchdog(workingDir, processType.getStatusRequestFileName(), statusHandler, false);
public void testStartDeletesStaleControlFiles() throws Throwable { this.stopRequestFile = new File(ProcessType.LOCATOR.getStopRequestFileName()); this.stopRequestFile.createNewFile(); assertTrue(this.stopRequestFile.exists());
public void testStartDeletesStaleControlFiles() throws Throwable { this.stopRequestFile = new File(ProcessType.SERVER.getStopRequestFileName()); this.stopRequestFile.createNewFile(); assertTrue(this.stopRequestFile.exists());