|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.rundeck.core.dispatcher.NoCentralDispatcher
public final class NoCentralDispatcher
NoCentralDispatcher is an implementation of the CentralDispatcher
which throws
exceptions indicating the operations are not supported.
Field Summary |
---|
Fields inherited from interface com.dtolabs.rundeck.core.dispatcher.CentralDispatcher |
---|
FORMAT_XML, FORMAT_YAML |
Constructor Summary | |
---|---|
NoCentralDispatcher(Framework framework)
Required constructor |
Method Summary | |
---|---|
java.util.Collection<DeleteJobResult> |
deleteStoredJobs(java.util.Collection<java.lang.String> jobIds)
Delete the jobs specified by the IDs, and return a list of results |
ExecutionFollowResult |
followDispatcherExecution(java.lang.String id,
ExecutionFollowRequest request,
ExecutionFollowReceiver receiver)
Attempt to kill the execution of an item currently on the dispatcher queue |
ExecutionDetail |
getExecution(java.lang.String execId)
Return execution detail for a particular execution. |
DispatcherResult |
killDispatcherExecution(java.lang.String id)
Attempt to kill the execution of an item currently on the dispatcher queue |
java.util.Collection<QueuedItem> |
listDispatcherQueue()
List the items on the dispatcher queue |
java.util.Collection<QueuedItem> |
listDispatcherQueue(java.lang.String project)
List the items on the dispatcher queue |
java.util.Collection<IStoredJob> |
listStoredJobs(IStoredJobsQuery query,
java.io.OutputStream output,
JobDefinitionFileFormat format)
Return a list of stored jobs matching the query criteria |
java.util.Collection<IStoredJobLoadResult> |
loadJobs(ILoadJobsRequest request,
java.io.File input,
JobDefinitionFileFormat format)
Upload Jobs.xml content to the server |
QueuedItemResult |
queueDispatcherJob(IDispatchedJob job)
Add a script dispatch to the dispatcher queue |
QueuedItemResult |
queueDispatcherScript(IDispatchedScript dispatch)
Add a script dispatch to the dispatcher queue |
void |
reportExecutionStatus(java.lang.String project,
java.lang.String title,
java.lang.String status,
int totalNodeCount,
int successNodeCount,
java.lang.String tags,
java.lang.String script,
java.lang.String summary,
java.util.Date start,
java.util.Date end)
Report execution status |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoCentralDispatcher(Framework framework)
framework
- frameworkMethod Detail |
---|
public QueuedItemResult queueDispatcherScript(IDispatchedScript dispatch) throws CentralDispatcherException
CentralDispatcher
queueDispatcherScript
in interface CentralDispatcher
dispatch
- script dispatch descriptor
CentralDispatcherException
- if an error occurspublic QueuedItemResult queueDispatcherJob(IDispatchedJob job) throws CentralDispatcherException
CentralDispatcher
queueDispatcherJob
in interface CentralDispatcher
job
- job execution reference definition
CentralDispatcherException
- if an error occurspublic java.util.Collection<QueuedItem> listDispatcherQueue() throws CentralDispatcherException
CentralDispatcher
listDispatcherQueue
in interface CentralDispatcher
CentralDispatcherException
- if an error occurspublic DispatcherResult killDispatcherExecution(java.lang.String id) throws CentralDispatcherException
CentralDispatcher
killDispatcherExecution
in interface CentralDispatcher
id
- the ID string of the item
CentralDispatcherException
- if an error occurspublic ExecutionFollowResult followDispatcherExecution(java.lang.String id, ExecutionFollowRequest request, ExecutionFollowReceiver receiver) throws CentralDispatcherException
CentralDispatcher
followDispatcherExecution
in interface CentralDispatcher
id
- the ID string of the item
CentralDispatcherException
- if an error occurspublic java.util.Collection<IStoredJob> listStoredJobs(IStoredJobsQuery query, java.io.OutputStream output, JobDefinitionFileFormat format) throws CentralDispatcherException
CentralDispatcher
listStoredJobs
in interface CentralDispatcher
query
- jobs queryoutput
- optional outputstream to store the XML content
CentralDispatcherException
- if an error occurspublic java.util.Collection<IStoredJobLoadResult> loadJobs(ILoadJobsRequest request, java.io.File input, JobDefinitionFileFormat format) throws CentralDispatcherException
CentralDispatcher
loadJobs
in interface CentralDispatcher
request
- load request parametersinput
- XML file
CentralDispatcherException
- if an error occurspublic void reportExecutionStatus(java.lang.String project, java.lang.String title, java.lang.String status, int totalNodeCount, int successNodeCount, java.lang.String tags, java.lang.String script, java.lang.String summary, java.util.Date start, java.util.Date end) throws CentralDispatcherException
CentralDispatcher
reportExecutionStatus
in interface CentralDispatcher
project
- projecttitle
- execution titlestatus
- result status, either 'succeed','cancel','fail'totalNodeCount
- count of failed nodessuccessNodeCount
- count of successful nodesscript
- script content (can be null if summary specified)summary
- summary of execution (can be null if script specified)start
- start date (can be null)end
- end date (can be null)
CentralDispatcherException
public java.util.Collection<QueuedItem> listDispatcherQueue(java.lang.String project) throws CentralDispatcherException
CentralDispatcher
listDispatcherQueue
in interface CentralDispatcher
CentralDispatcherException
- if an error occurspublic java.util.Collection<DeleteJobResult> deleteStoredJobs(java.util.Collection<java.lang.String> jobIds) throws CentralDispatcherException
CentralDispatcher
deleteStoredJobs
in interface CentralDispatcher
jobIds
- the job IDs
CentralDispatcherException
- if an error occurspublic ExecutionDetail getExecution(java.lang.String execId) throws CentralDispatcherException
CentralDispatcher
getExecution
in interface CentralDispatcher
execId
- ID of the execution
CentralDispatcherException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |