Class ForkAbstract
java.lang.Object
ecmwf.common.technical.ForkAbstract
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The Constant DISC_QUOTA_EXCEEDED.static final String
The Constant ECFS_NOT_AVAILABLE.static final String
The Constant NO_SUCH_FILE_OR_DIRECTORY.static final String
The Constant PERMISSION_DENIED.static final String
The Constant UNKNOWN_ERROR. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
check()
Check.boolean
Check.boolean
Check.abstract void
close()
Close.abstract String
Gets the command.getError()
Gets the error.abstract InputStream
Gets the input stream.Gets the message.long
Interrupted.abstract boolean
kill()
Kill.void
Restarted.void
setKillOnTimeOut
(boolean killOnTimeOut) Sets the kill on time out.abstract void
start()
Start.protected String
Converts into string.int
writeInto
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in 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.
-