|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.scm.APISession
public class APISession
This class represents the Integration Point to a server. It also contains a Session object
| Field Summary | |
|---|---|
static int |
MAJOR_VERSION
|
static int |
MINOR_VERSION
|
static String |
VERSION
|
| Constructor Summary | |
|---|---|
APISession(String host,
int portNum,
String user,
String paswd,
boolean secure)
Constructor for the API Session Object |
|
| Method Summary | |
|---|---|
String |
getHostName()
Returns the MKS Integrity Hostname for this APISession |
String |
getPort()
Returns the MKS Integrity Port for this APISession |
String |
getUserName()
Returns the MKS Integrity User for this APISession |
com.mks.api.response.Response |
runCommand(com.mks.api.Command cmd)
This function executes a generic API/CLI Command |
com.mks.api.response.Response |
runCommandAs(com.mks.api.Command cmd,
String impersonateUser)
This function executes a generic API/CLI Command impersonating another user |
void |
Terminate()
Terminate the API Session and Integration Point |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String VERSION
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
| Constructor Detail |
|---|
public APISession(String host,
int portNum,
String user,
String paswd,
boolean secure)
throws com.mks.api.response.APIException
com.mks.api.response.APIException| Method Detail |
|---|
public com.mks.api.response.Response runCommand(com.mks.api.Command cmd)
throws com.mks.api.response.APIException
cmd - MKS API Command Object representing a CLI command
com.mks.api.response.APIException
public com.mks.api.response.Response runCommandAs(com.mks.api.Command cmd,
String impersonateUser)
throws com.mks.api.response.APIException
cmd - MKS API Command Object representing a CLI commandimpersonateUser - The user to impersonate
com.mks.api.response.APIExceptionpublic void Terminate()
public String getHostName()
public String getPort()
public String getUserName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||