|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
All methods that a container that can be started/stopped must implement.
Method Summary | |
java.lang.String |
getOutput()
|
long |
getTimeout()
|
boolean |
isAppend()
|
void |
setAppend(boolean shouldAppend)
Sets whether output of the container should be appended to an existing file, or the existing file should be truncated. |
void |
setOutput(java.lang.String output)
|
void |
setTimeout(long timeout)
|
void |
start()
Starts the container. |
void |
stop()
Stops the container. |
Method Detail |
public void start()
public void stop()
public void setOutput(java.lang.String output)
output
- the file to which the container's output will be logged to. Note that we're
passing a String instead of a File because we want to leave the possibility of using
URIs for specifying the home location.public java.lang.String getOutput()
public void setTimeout(long timeout)
timeout
- the timeout (in ms) after which we consider the container cannot be started
or stopped.public long getTimeout()
public void setAppend(boolean shouldAppend)
shouldAppend
- Whether output should be appended to or notpublic boolean isAppend()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |