|
|||||||||
| 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(String url,
String login,
String password)
Build a new RunDeck instance |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getLogin()
|
String |
getPassword()
|
String |
getUrl()
|
int |
hashCode()
|
boolean |
isAlive()
|
boolean |
isConfigurationValid()
|
boolean |
isLoginValid()
|
String |
parseExecutionUrl(InputStream response)
Parse the xml response from RunDeck, and if it is successful, return the execution url. |
String |
scheduleJobExecution(String groupPath,
String jobName,
Properties options)
Schedule a job execution, identified by the given groupPath and jobName. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RundeckInstance(String url,
String login,
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 String scheduleJobExecution(String groupPath,
String jobName,
Properties options)
throws RundeckInstance.RundeckLoginException,
RundeckInstance.RundeckJobSchedulingException
groupPath - of the job (eg "main-group/sub-group") - mandatoryjobName - - mandatoruoptions - for the job, optional
RundeckInstance.RundeckLoginException - if the login failed
RundeckInstance.RundeckJobSchedulingException - if the scheduling failed
public String parseExecutionUrl(InputStream response)
throws RundeckInstance.RundeckJobSchedulingException
response -
RundeckInstance.RundeckJobSchedulingException - if the response in an errorpublic String getUrl()
public String getLogin()
public String getPassword()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||