@groovy.transform.CompileStatic class JexlerContainer extends ServiceGroup
Container of all jexlers in a directory.
| Constructor and description |
|---|
JexlerContainer
(java.io.File dir)Constructor from jexler script directory. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
close()Stop the shared quartz scheduler, plus close maybe other things. |
|
void |
forgetIssues() |
|
groovy.util.ConfigObject |
getAsConfig(java.lang.String jexlerId)Convenience method for getting ConfigSlurper config from parsing the given jexler; uses the class already compiled by Grengine. |
|
java.io.File |
getDir()Get container directory. |
|
ch.artecat.grengine.Grengine |
getGrengine()Get container Grengine instance. |
|
java.util.List<Issue> |
getIssues() |
|
Jexler |
getJexler(java.lang.String id)Get the jexler for the given id. |
|
java.io.File |
getJexlerFile(java.lang.String id)Get the file for the given jexler id, even if no such file exists (yet). |
|
java.lang.String |
getJexlerId(java.io.File jexlerFile)Get the jexler id for the given file, even if the file does not exist (any more), or null if not a jexler script. |
|
java.util.List<Jexler> |
getJexlers()Get the list of all jexlers, first runnable jexlers, then non-runnable ones, each group sorted by id. |
|
static org.slf4j.Logger |
getLogger()Get logger for container. |
|
org.quartz.Scheduler |
getScheduler()Get shared quartz scheduler, already started. |
|
void |
refresh()Refresh list of jexlers. |
|
void |
start()Start jexlers that are marked as autostart. |
|
void |
stop() |
|
void |
trackIssue(Issue issue) |
|
void |
trackIssue(Service service, java.lang.String message, java.lang.Throwable cause) |
| Methods inherited from class | Name |
|---|---|
class ServiceGroup |
add, getId, getServices, getState, start, stop, zap |
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() |
Constructor from jexler script directory.
dir - directory which contains jexler scriptsStop the shared quartz scheduler, plus close maybe other things.
Convenience method for getting ConfigSlurper config from parsing the given jexler; uses the class already compiled by Grengine.
Get container directory.
Get container Grengine instance.
Get the jexler for the given id.
Get the file for the given jexler id, even if no such file exists (yet).
Get the jexler id for the given file, even if the file does not exist (any more), or null if not a jexler script.
Get the list of all jexlers, first runnable jexlers, then non-runnable ones, each group sorted by id. This is a copy, iterating over it can be freely done and trying to add or remove list elements throws an UnsupportedOperationException.
Get logger for container.
Get shared quartz scheduler, already started.
Refresh list of jexlers. Add new jexlers for new script files; remove old jexlers if their script file is gone and they are stopped.
Start jexlers that are marked as autostart.