Class ForkECios
java.lang.Object
ecmwf.common.technical.ForkAbstract
ecmwf.common.technical.ForkECios
-
Field Summary
Fields inherited from class ecmwf.common.technical.ForkAbstract
DISC_QUOTA_EXCEEDED, ECFS_NOT_AVAILABLE, NO_SUCH_FILE_OR_DIRECTORY, PERMISSION_DENIED, UNKNOWN_ERROR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck.voidclose()Close.Gets the command.Gets the command with args.Gets the input stream.static SocketConfigGets the socket config.longInterrupted.booleankill()Kill.static booleankill(long pid) Kill.voidRestarted.voidstart()Start.voidstart(int timeOut) Start.Methods inherited from class ecmwf.common.technical.ForkAbstract
check, check, getError, getMessage, setKillOnTimeOut, toString, writeInto
-
Constructor Details
-
ForkECios
-
ForkECios
-
ForkECios
-
-
Method Details
-
close
public void close()Close. Close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classForkAbstract
-
getSocketConfig
-
start
Start. Start.- Specified by:
startin classForkAbstract- Throws:
IOException- Signals that an I/O exception has occurred.
-
start
Start.- Parameters:
timeOut- the time out- Throws:
IOException- Signals that an I/O exception has occurred.
-
check
Check. Check.- Overrides:
checkin classForkAbstract- Parameters:
expect- the expecterrors- the errors- Returns:
- true, if successful
- Throws:
IOException- Signals that an I/O exception has occurred.
-
kill
public static boolean kill(long pid) Kill.- Parameters:
pid- the pid- Returns:
- true, if successful
-
kill
public boolean kill()Kill. Kill.- Specified by:
killin classForkAbstract- Returns:
- true, if successful
-
getInputStream
Gets the input stream. Gets the input stream.- Specified by:
getInputStreamin classForkAbstract- Returns:
- the input stream
- Throws:
IOException- Signals that an I/O exception has occurred.
-
interrupted
public long interrupted()Interrupted. Interrupted.- Overrides:
interruptedin classForkAbstract- Returns:
- the long
-
restarted
-
getCommand
Gets the command. Gets the command.- Specified by:
getCommandin classForkAbstract- Returns:
- the command
-
getCommandWithArgs
-