| 程序包 | 说明 |
|---|---|
| com.jn.langx.commandline | |
| com.jn.langx.commandline.launcher |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ProcessAdapter |
| 限定符和类型 | 方法和说明 |
|---|---|
protected InstructionSequence |
DefaultCommandLineExecutor.launch(CommandLine command,
Map<String,String> env,
File workingDir)
Creates a process that runs a command.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
ShutdownHookProcessDestroyer.add(InstructionSequence process)
Returns
true if the specified Process was
successfully added to the list of processes to destroy upon VM exit. |
boolean |
InstructionSequenceDestroyer.add(InstructionSequence process)
Returns
true if the specified
Process was
successfully added to the list of processes to be destroy. |
boolean |
ShutdownHookProcessDestroyer.remove(InstructionSequence process)
Returns
true if the specified Process was
successfully removed from the list of processes to destroy upon VM exit. |
boolean |
InstructionSequenceDestroyer.remove(InstructionSequence process)
Returns
true if the specified
Process was
successfully removed from the list of processes to be destroy. |
void |
ExecuteWatchdog.start(InstructionSequence processToMonitor)
Watches the given process and terminates it, if it runs for too long.
|
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
CommandLauncher<P extends InstructionSequence>
Interface to shield the caller from the various platform-dependent
implementations.
|
Copyright © 2022. All rights reserved.