Service utilities. Includes some static methods that might be useful in Groovy scripts or for writing custom services.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.lang.String |
toQuartzCron(java.lang.String cron)Convert to "quartz-style" cron with seconds. |
|
static boolean |
waitForShutdown(Service service, long timeout)Wait until service state is not OFF or timeout. |
|
static boolean |
waitForStartup(Service service, long timeout)Wait until service state is not BUSY_STARTING or timeout. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Convert to "quartz-style" cron with seconds.
Wait until service state is not OFF or timeout.
service - servicetimeout - timeout in msWait until service state is not BUSY_STARTING or timeout.
service - servicetimeout - timeout in ms