|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jenkinsci.plugins.rundeck.RundeckInstance
public class RundeckInstance
Represents a RunDeck instance, and allows to communicate with it in order to schedule jobs. Uses RunDeck 1.1 HTTP API to schedule jobs.
| Nested Class Summary | |
|---|---|
static class |
RundeckInstance.RundeckJobSchedulingException
Exception used when a job scheduling failed on a RunDeck instance |
static class |
RundeckInstance.RundeckLoginException
Exception used when the login failed on a RunDeck instance |
| Constructor Summary | |
|---|---|
RundeckInstance(java.lang.String url,
java.lang.String login,
java.lang.String password)
Build a new RunDeck instance |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getLogin()
|
java.lang.String |
getPassword()
|
java.lang.String |
getUrl()
|
int |
hashCode()
|
boolean |
isAlive()
|
boolean |
isConfigurationValid()
|
boolean |
isLoginValid()
|
java.lang.String |
parseExecutionUrl(java.io.InputStream response)
Parse the xml response from RunDeck, and if it is successful, return the execution url. |
java.lang.String |
scheduleJobExecution(java.lang.String groupPath,
java.lang.String jobName,
java.lang.String... options)
Schedule a job execution, identified by the given groupPath and jobName. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RundeckInstance(java.lang.String url,
java.lang.String login,
java.lang.String password)
url - of the RunDeck server (http://localhost:4440)login - to usepassword - associated with the login| Method Detail |
|---|
public boolean isConfigurationValid()
public boolean isAlive()
public boolean isLoginValid()
public java.lang.String scheduleJobExecution(java.lang.String groupPath,
java.lang.String jobName,
java.lang.String... options)
throws RundeckInstance.RundeckLoginException,
RundeckInstance.RundeckJobSchedulingException
groupPath - of the job (eg "main-group/sub-group")jobName - options - varargs of options for the execution, in the form "key=value" (optional)
RundeckInstance.RundeckLoginException - if the login failed
RundeckInstance.RundeckJobSchedulingException - if the scheduling failed
public java.lang.String parseExecutionUrl(java.io.InputStream response)
throws RundeckInstance.RundeckJobSchedulingException
response -
RundeckInstance.RundeckJobSchedulingException - if the response in an errorpublic java.lang.String getUrl()
public java.lang.String getLogin()
public java.lang.String getPassword()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||