Class ForkAbstract
java.lang.Object
ecmwf.common.technical.ForkAbstract
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant DISC_QUOTA_EXCEEDED.static final StringThe Constant ECFS_NOT_AVAILABLE.static final StringThe Constant NO_SUCH_FILE_OR_DIRECTORY.static final StringThe Constant PERMISSION_DENIED.static final StringThe Constant UNKNOWN_ERROR. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck()Check.booleanCheck.booleanCheck.abstract voidclose()Close.abstract StringGets the command.getError()Gets the error.abstract InputStreamGets the input stream.Gets the message.longInterrupted.abstract booleankill()Kill.voidRestarted.voidsetKillOnTimeOut(boolean killOnTimeOut) Sets the kill on time out.abstract voidstart()Start.protected StringConverts into string.intwriteInto(OutputStream out) Write into.
-
Field Details
-
PERMISSION_DENIED
-
NO_SUCH_FILE_OR_DIRECTORY
The Constant NO_SUCH_FILE_OR_DIRECTORY.- See Also:
-
DISC_QUOTA_EXCEEDED
-
UNKNOWN_ERROR
-
ECFS_NOT_AVAILABLE
-
-
Constructor Details
-
ForkAbstract
public ForkAbstract()
-
-
Method Details
-
setKillOnTimeOut
public void setKillOnTimeOut(boolean killOnTimeOut) Sets the kill on time out.- Parameters:
killOnTimeOut- the new kill on time out
-
toString
-
check
Check.- Returns:
- true, if successful
- Throws:
IOException- Signals that an I/O exception has occurred.
-
check
Check.- Parameters:
errors- the errors- Returns:
- true, if successful
- Throws:
IOException- Signals that an I/O exception has occurred.
-
check
Check.- Parameters:
expect- the expecterrors- the errors- Returns:
- true, if successful
- Throws:
IOException- Signals that an I/O exception has occurred.
-
close
public abstract void close()Close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getCommand
-
getError
-
getMessage
-
start
Start.- Throws:
IOException- Signals that an I/O exception has occurred.
-
kill
public abstract boolean kill()Kill.- Returns:
- true, if successful
-
getInputStream
Gets the input stream.- Returns:
- the input stream
- Throws:
IOException- Signals that an I/O exception has occurred.
-
interrupted
public long interrupted()Interrupted.- Returns:
- the long
-
restarted
public void restarted()Restarted. -
writeInto
Write into.- Parameters:
out- the out- Returns:
- the int
- Throws:
IOException- Signals that an I/O exception has occurred.
-