|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RunnableContainer
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 |
|---|
void start()
void stop()
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.java.lang.String getOutput()
void setTimeout(long timeout)
timeout - the timeout (in ms) after which we consider the container cannot be started
or stopped.long getTimeout()
void setAppend(boolean shouldAppend)
shouldAppend - Whether output should be appended to or notboolean isAppend()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||