|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jenkinsci.plugins.rundeck.domain.RundeckInstance
public class RundeckInstance
Represents a RunDeck instance, and allows to communicate with it. Uses RunDeck 1.2 "WebApi" (version 1).
| Constructor Summary | |
|---|---|
RundeckInstance(String url,
String login,
String password)
Build a new RunDeck instance |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
RundeckExecution |
getExecution(Long executionId)
Get the details of a job execution, identified by the given id. |
RundeckJob |
getJob(String jobId)
Get the details of a job, identified by the given id. |
String |
getLogin()
|
String |
getPassword()
|
String |
getUrl()
|
int |
hashCode()
|
boolean |
isAlive()
|
boolean |
isConfigurationValid()
|
boolean |
isLoginValid()
|
RundeckExecution |
runJob(String jobId,
Properties options)
Run a job, identified by the given id. |
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 RundeckJob getJob(String jobId)
throws RundeckApiException,
RundeckApiException.RundeckApiLoginException
jobId - - mandatory
RundeckJob instance (won't be null), with details on the job
RundeckApiException - in case of error calling the API
RundeckApiException.RundeckApiLoginException - if the login failed
public RundeckExecution getExecution(Long executionId)
throws RundeckApiException,
RundeckApiException.RundeckApiLoginException
executionId - - mandatory
RundeckExecution instance (won't be null), with details on the execution
RundeckApiException - in case of error calling the API
RundeckApiException.RundeckApiLoginException - if the login failed
public RundeckExecution runJob(String jobId,
Properties options)
throws RundeckApiException,
RundeckApiException.RundeckApiLoginException,
RundeckApiException.RundeckApiJobRunException
jobId - - mandatoryoptions - for the job, optional
RundeckExecution instance (won't be null), with details on the execution
RundeckApiException.RundeckApiLoginException - if the login failed
RundeckApiException.RundeckApiJobRunException - if the run failed
RundeckApiException - in case of error calling the APIpublic 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 | |||||||||