public class APISession extends Object implements ISession
| Modifier and Type | Field and Description |
|---|---|
static int |
MAJOR_VERSION |
static int |
MINOR_VERSION |
static String |
PLUGIN_VERSION_PREFIX |
static String |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
void |
checkifAlive() |
void |
close() |
static ISession |
create(IntegrityConfigurable settings)
Creates an authenticated API Session against the Integrity Server
|
static ISession |
createLocalIntegrationPoint(IntegrityConfigurable settings)
Creates a local integration point
|
String |
getUserName()
Returns the Integrity User for this APISession
|
void |
ping() |
void |
refreshAPISession() |
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
|
com.mks.api.response.Response |
runCommandWithInterim(com.mks.api.Command cmd)
This function executes a generic API/CLI Command with interim
|
boolean |
terminate()
Terminate the API Session and Integration Point
|
String |
toString() |
public static final String VERSION
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
public static final String PLUGIN_VERSION_PREFIX
public static ISession create(IntegrityConfigurable settings)
public static ISession createLocalIntegrationPoint(IntegrityConfigurable settings)
settings - public void ping()
throws com.mks.api.response.APIException
public com.mks.api.response.Response runCommand(com.mks.api.Command cmd)
throws com.mks.api.response.APIException
runCommand in interface ISessioncmd - Integrity API Command Object representing a CLI commandcom.mks.api.response.APIExceptionpublic com.mks.api.response.Response runCommandWithInterim(com.mks.api.Command cmd)
throws com.mks.api.response.APIException
runCommandWithInterim in interface ISessioncmd - Integrity API Command Object representing a CLI commandcom.mks.api.response.APIExceptionpublic com.mks.api.response.Response runCommandAs(com.mks.api.Command cmd,
String impersonateUser)
throws com.mks.api.response.APIException
cmd - Integrity API Command Object representing a CLI commandimpersonateUser - The user to impersonatecom.mks.api.response.APIExceptionpublic void refreshAPISession()
throws com.mks.api.response.APIException
refreshAPISession in interface ISessioncom.mks.api.response.APIExceptionpublic boolean terminate()
public String getUserName()
getUserName in interface ISessionpublic void close()
close in interface AutoCloseablepublic void checkifAlive()
throws com.mks.api.response.APIException
checkifAlive in interface ISessioncom.mks.api.response.APIExceptionCopyright © 2016–2024. All rights reserved.