public class Host extends Object
package description| Modifier and Type | Method and Description |
|---|---|
RunResult |
getScenarioResult(String scheduledCuid)
Computes result of scheduled scenario denoted by given cuid.
|
SchedulingStatus |
getScenarioStatus(String scheduledCuid)
Computes current status of scheduled scenario denoted by given cuid.
|
IEnterpriseSession |
getSession()
Returns session to current host.
|
ExportScenario |
newExportScenario(String name)
Creates a fresh export scenario of given name.
|
ImportScenario |
newImportScenario(String name)
Creates a fresh import scenario whose name is retrieved from source archive and possibly overridden by supplied
name if provided.
|
PromoteScenario |
newPromoteScenario(String name)
Creates a fresh promote scenario of given name.
|
void |
release()
Releases all resources acquired by this host.
|
static void |
setLocale(Locale locale)
Overrides current locale.
|
Host |
setProgressMonitor(IProgressMonitor progress)
Sets current progress monitor.
|
public ExportScenario newExportScenario(String name) throws com.businessobjects.lcm.utilities.LCMException, SDKException
name - scenario namecom.businessobjects.lcm.utilities.LCMException - in case of errorSDKException - in case of errorpublic PromoteScenario newPromoteScenario(String name) throws com.businessobjects.lcm.utilities.LCMException, SDKException
name - scenario namecom.businessobjects.lcm.utilities.LCMException - in case of errorSDKException - in case of errorpublic ImportScenario newImportScenario(String name) throws com.businessobjects.lcm.utilities.LCMException, SDKException
name - scenario name or nullcom.businessobjects.lcm.utilities.LCMException - in case of errorSDKException - in case of errorpublic void release()
throws com.businessobjects.lcm.utilities.LCMException,
SDKException
Host and all its derived scenario are no longer valid after this call.
com.businessobjects.lcm.utilities.LCMException - in case of errorSDKException - in case of errorpublic static void setLocale(Locale locale)
locale - new locale to be setpublic IEnterpriseSession getSession()
public Host setProgressMonitor(IProgressMonitor progress)
progress - monitor to be usedpublic SchedulingStatus getScenarioStatus(String scheduledCuid) throws com.businessobjects.lcm.utilities.LCMException, SDKException
Returned result is a snapshot only valid at request time; in particular process does not wait for scenario completion.
scheduledCuid - job cuid - this argument has been typically retrieved from schedule(...)
commandcom.businessobjects.lcm.utilities.LCMException - in case of errorSDKException - in case of errorpublic RunResult getScenarioResult(String scheduledCuid) throws com.businessobjects.lcm.utilities.LCMException, SDKException
Returned result is a snapshot only valid at request time. Process does not wait for scenario completion. Scenario
completion may be verified through the getScenarioStatus(String) and
SchedulingStatus.isComplete() commands.
Note that run result is meaningless for export scenario as no resources are actually committed.
scheduledCuid - job cuid - this argument has been typically retrieved from schedule(...)
commandnull if result is not yet available (when scenario is not complete)com.businessobjects.lcm.utilities.LCMException - in case of errorSDKException - in case of error