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 TypeMethodDescriptionboolean
Check.void
close()
Close.Gets the command.Gets the command with args.Gets the input stream.static SocketConfig
Gets the socket config.long
Interrupted.boolean
kill()
Kill.static boolean
kill
(long pid) Kill.void
Restarted.void
start()
Start.void
start
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classForkAbstract
-
getSocketConfig
-
start
Start. Start.- Specified by:
start
in 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:
check
in 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:
kill
in classForkAbstract
- Returns:
- true, if successful
-
getInputStream
Gets the input stream. Gets the input stream.- Specified by:
getInputStream
in classForkAbstract
- Returns:
- the input stream
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
interrupted
public long interrupted()Interrupted. Interrupted.- Overrides:
interrupted
in classForkAbstract
- Returns:
- the long
-
restarted
-
getCommand
Gets the command. Gets the command.- Specified by:
getCommand
in classForkAbstract
- Returns:
- the command
-
getCommandWithArgs
-