minor conventions
Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
parent
2972e82f4a
commit
8c6b1d8884
@ -110,7 +110,8 @@ public final class ProcessClear extends Command {
|
|||||||
* @see fr.bigeon.gclc.command.Command#usageDetail() */
|
* @see fr.bigeon.gclc.command.Command#usageDetail() */
|
||||||
@Override
|
@Override
|
||||||
protected String usageDetail() {
|
protected String usageDetail() {
|
||||||
return " All processes in the pool have their running status checked and the non running ones are removed from the list of tasks.";
|
return " All processes in the pool have their running status checked and the "
|
||||||
|
+ "non running ones are removed from the list of tasks.";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,7 @@ public final class ProcessKill extends Command {
|
|||||||
throw new CommandRunException(CommandRunExceptionType.USAGE,
|
throw new CommandRunException(CommandRunExceptionType.USAGE,
|
||||||
"A pid should be specified.");
|
"A pid should be specified.");
|
||||||
}
|
}
|
||||||
pool.get(Integer.valueOf(args[0])).setRunning(false);
|
pool.get(Integer.parseInt(args[0])).setRunning(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -19,7 +19,7 @@ import net.bigeon.gclc.utils.PipedConsoleOutput;
|
|||||||
public class ForkTaskTest {
|
public class ForkTaskTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test() throws IOException {
|
public void testGenericForkTask() throws IOException {
|
||||||
final ForkTask task = new ForkTask(5) {
|
final ForkTask task = new ForkTask(5) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user