Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gradle.api.plugins.jetty.util
Class Monitor

    java.lang.Object
      java.lang.Thread
          org.gradle.api.plugins.jetty.util.Monitor

    class Monitor
    extends java.lang.Thread

Monitor

Listens for stop commands eg via mvn jetty:stop and causes jetty to stop either by exiting the jvm, or by stopping the Server instances. The choice of behaviour is controlled by either passing true (exit jvm) or false (stop Servers) in the constructor.

Field Summary
`boolean` | `_kill`
`ServerSocket` | `_serverSocket`

Fields inherited from class java.lang.Thread
MIN_PRIORITY, NORM_PRIORITY, MAX_PRIORITY

Constructor Summary
`Monitor(int port, java.lang.String key, Server[] servers, boolean kill)`

Method Summary
`void` | `run()`

Methods inherited from class java.lang.Thread
run, isInterrupted, currentThread, toString, getName, getThreadGroup, getStackTrace, dumpStack, setPriority, setDaemon, start, yield, sleep, sleep, stop, stop, interrupt, interrupted, destroy, isAlive, suspend, resume, getPriority, setName, activeCount, enumerate, countStackFrames, join, join, join, isDaemon, checkAccess, getContextClassLoader, setContextClassLoader, holdsLock, getAllStackTraces, getId, getState, setDefaultUncaughtExceptionHandler, getDefaultUncaughtExceptionHandler, getUncaughtExceptionHandler, setUncaughtExceptionHandler, wait, wait, wait, hashCode, getClass, equals, notify, notifyAll

Methods inherited from class java.lang.Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll

Field Detail

### _kill

    boolean _kill

### _serverSocket

    ServerSocket _serverSocket

Constructor Detail

### Monitor

    public Monitor(int port, java.lang.String key, Server[] servers, boolean kill)

Method Detail

### run

    public void run()

Groovy Documentation