public class JHsxClient extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
backupApplication(String clusterName,
HsxRequestContext hsxRequestContext,
String appName,
String path,
boolean isToBeScrambled,
double scramblingValue,
boolean isCopyTaskAudit,
boolean isCopyDataAudit,
int rowCount)
Backup the application.
|
String |
convertVBScriptToPureXML(HsxRequestContext hsxRequestContext,
String clusterName,
String applicationName,
String vbScript,
boolean compLevelCondition,
int compSplitOption,
String dimensionMapping) |
String |
convertVBScriptToXML(HsxRequestContext hsxRequestContext,
String clusterName,
String applicationName,
String vbScript) |
String |
convertVBScriptToXMLOnFly(HsxRequestContext hsxRequestContext,
String clusterName,
String applicationName,
String vbScript,
boolean compLevelCondition,
int compSplitOption,
String calcType) |
String |
convertXMLToVBScript(HsxRequestContext hsxRequestContext,
String clusterName,
String applicationName,
String calcMgrXML) |
void |
createApplication(HsxRequestContext hsxRequestContext,
String clusterName,
String appName,
String appDescription,
InputStream profileStream,
String projectName,
String webServerURL,
APPLICATION_TYPES appType)
Creates an applicaiton on the server
|
SessionInfo |
createSession(HsxRequestContext hsxRequestContext,
String server,
int port,
String appName)
This opens the application specified and returns a valid sessionId for that application.
|
SessionInfo |
createSession(HsxRequestContext hsxRequestContext,
String clusterName,
String appName)
This opens the application specified and returns a valid sessionId for that application.
|
SessionInfo |
createSession(HsxRequestContext hsxRequestContext,
String user,
String password,
String server,
int port,
String appName)
This opens the application specified and returns a valid sessionId for that application.
|
void |
deleteApplication(HsxRequestContext hsxRequestContext,
String clusterName,
String appName)
Deletes the application.
|
int |
duplicateApplication(String clusterName,
HsxRequestContext hsxRequestContext,
String appName,
String newAppName,
String newAppDescription,
boolean isCopyTaskAudit,
boolean isCopyDataAudit,
String projectName,
boolean isHFMMode) |
byte[] |
getAdminTaskLogData(HsxRequestContext hsxRequestContext,
String clusterName,
int taskID)
Returns the log information of the current admin task id as a string
|
AdminTaskProgress |
getAdminTaskProgress(HsxRequestContext hsxRequestContext,
String clusterName,
int taskID) |
Map<String,String> |
getAllSettings(HsxRequestContext hsxRequestContext,
String clusterName,
String serverName,
String applicationName)
Method to get the all setting value from xfm paramater table
|
Map<USERPREFERENCES,String> |
getAllUserPreferenceValues(HsxRequestContext hsxRequestContext,
String clusterName,
String appName)
Gets all the user perferences for an application.
|
APPLICATION_ENABLED_STATUS |
getApplicationEnabledStatus(HsxRequestContext hsxRequestContext,
String ssoToken,
String clusterName,
String serverName,
String applicationName) |
List<String> |
getApplicationLanguages(HsxRequestContext hsxRequestContext,
String clusterName,
String applicationName)
returns the applciation lanugages
|
APPLICATION_MODE |
getApplicationMode(HsxRequestContext hsxRequestContext,
String clusterName,
String appName)
Gets the application mode for the Application specified
|
byte[] |
getApplicationProfileData(HsxRequestContext hsxRequestContext,
String clusterName,
String ssoToken,
String applicationName)
extracts the application profile data for any given application name.
|
APPLICATION_RULES_MODE |
getApplicationRulesMode(HsxRequestContext hsxRequestContext,
String clusterName,
String appName)
Gets the application rules mode for the Application specified
|
List<ApplicationInformation> |
getApplications(String clusterName,
HsxRequestContext hsxRequestContext,
String language) |
List<APPLICATION_ENABLED_STATUS> |
getApplicationsEnabledStatus(HsxRequestContext hsxRequestContext,
String ssoToken,
String clusterName,
String serverName,
List<String> applicationNames) |
byte[] |
getApplicationSettingsData(HsxRequestContext hsxRequestContext,
String clusterName,
String ssoToken,
String applicationName)
extracts the application settings data for any given application name.
|
List<APPLICATION_TYPES> |
getApplicationType(HsxRequestContext hsxRequestContext,
String clusterName,
String appName)
Get the application type of an applicaiton on the server.
|
String |
getAvailableServer(HsxRequestContext hsxRequestContext,
String clusterName)
This method selects a server.
|
List<String> |
getClusters(HsxRequestContext hsxRequestContext)
Return the list of Clusters for a user from HIT registry object.
|
Map<String,String> |
getDSNDetails(HsxRequestContext hsxRequestContext,
String clusterName,
String ssoToken,
String dsnName)
extracts the DSN information for the given dsn name.
|
int |
getHsxServerPort(String serverName) |
static JHsxClient |
getInstance()
returns the singleton instance.
|
List<ModuleDetails> |
getModuleConfig(HsxRequestContext hsxRequestContext,
String clusterName,
String applicationName)
Get the modules that are disabled for the application
|
List<String> |
getServersInCluster(HsxRequestContext hsxRequestContext,
String clusterName)
Return the list of Servers for a user in given Cluster from HIT registry object.
|
long |
getSettingsLastUpdated(HsxRequestContext hsxRequestContext,
String clusterName)
Method to get the last updated date from xfm paramater table
|
String |
getUserPreferenceValue(HsxRequestContext hsxRequestContext,
String clusterName,
String appName,
USERPREFERENCES preference)
Get the user preference for an application
|
int |
importApplication(String clusterName,
HsxRequestContext hsxRequestContext,
String appName,
String newAppName,
String newAppDescription,
boolean isImportTaskAudit,
boolean isImportData,
String projectName,
boolean isHFMMode,
String dbLinkName,
String scenarioList,
String yearList,
String hfmDBName)
copies the application.
|
int |
importApplication(String clusterName,
HsxRequestContext hsxRequestContext,
String appName,
String newAppName,
String newAppDescription,
boolean isImportTaskAudit,
boolean isImportData,
String projectName,
boolean isHFMMode,
String dbLinkName,
String scenarioList,
String yearList,
String hfmDBName,
boolean purgeSourceData)
Imports an application from another database with purge source data option
|
void |
killAdminTask(HsxRequestContext hsxRequestContext,
String clusterName,
String applicationName) |
List<LogoutUserStatus> |
logoutAllUsers(HsxRequestContext hsxRequestContext,
String clusterName,
String serverName,
String applicationName,
boolean forcedLogout) |
List<LogoutUserStatus> |
logoutUsers(HsxRequestContext hsxRequestContext,
String clusterName,
List<LogoutUserInfo> userInfoList,
boolean forcedLogout) |
int |
modifyApplication(HsxRequestContext hsxRequestContext,
String clusterName,
String ssoToken,
String applicationName,
InputStream profileFileContents) |
void |
refreshCachedXfmParameter(HsxRequestContext hsxRequestContext,
String clusterName,
String appName)
Sets the admin mode for the Application specified
|
void |
registerApplication(HsxRequestContext hsxRequestContext,
String clusterName,
String appName,
String appDescription,
String projectName,
String webServerURL)
Register an applicaiton on the server
|
void |
removeDeadAdminTasks(HsxRequestContext hsxRequestContext,
String clusterName) |
void |
restartApplication(HsxRequestContext hsxRequestContext,
String applicationName,
String serverName,
Locale locale,
boolean force)
Will shutdown the Datasource associated with the application.
|
int |
restoreApplication(String clusterName,
HsxRequestContext hsxRequestContext,
String appName,
String path,
int rowCount,
boolean isForceRestore)
Restores the application.
|
void |
setAdminMode(HsxRequestContext hsxRequestContext,
String clusterName,
String appName,
boolean adminMode)
Sets the admin mode for the Application specified
|
void |
setApplicationMode(HsxRequestContext hsxRequestContext,
String clusterName,
String appName,
APPLICATION_MODE appMode)
Sets the application mode for the Application specified
|
boolean |
setApplicationsEnabledStatus(HsxRequestContext hsxRequestContext,
String ssoToken,
String clusterName,
List<String> serverNames,
List<String> applicationNames,
APPLICATION_ENABLED_STATUS status) |
void |
setModuleConfig(HsxRequestContext hsxRequestContext,
String clusterName,
String applicationName,
List<ModuleDetails> moduleDetails)
Set the modules that are disabled for the application
|
void |
setUserPreferenceValues(HsxRequestContext hsxRequestContext,
String clusterName,
String appName,
Map<USERPREFERENCES,String> preferences)
Sets the user preferences
|
boolean |
shutDownApplicationOnAllNodes(HsxRequestContext hsxRequestContext,
String applicationName,
String clusterName,
String ssoToken,
boolean isForceKill)
Shuts down the application.
|
boolean |
shutDownApplicationOnThisNode(HsxRequestContext hsxRequestContext,
String applicationName,
String serverName,
String ssoToken,
boolean isForceKill)
Shuts down the application.
|
String |
validateDSN(HsxRequestContext hsxRequestContext,
String clusterName,
String appName,
String sslParam) |
String |
validateVBComponents(HsxRequestContext hsxRequestContext,
String clusterName,
String applicationName,
String calcMgrXML) |
public static JHsxClient getInstance() throws HFMException
HFMExceptionpublic List<String> getClusters(HsxRequestContext hsxRequestContext) throws HFMException
HFMExceptionpublic List<String> getServersInCluster(HsxRequestContext hsxRequestContext, String clusterName) throws HFMException
clusterName - Name of clusterHFMExceptionpublic int getHsxServerPort(String serverName)
public SessionInfo createSession(HsxRequestContext hsxRequestContext, String clusterName, String appName) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - a vaid Custer nameappName - Application which wil be openedHFMExceptionpublic SessionInfo createSession(HsxRequestContext hsxRequestContext, String user, String password, String server, int port, String appName) throws HFMException
hsxRequestContext - HsxRequestContext Objectserver - a vaid server nameappName - Application which wil be openedHFMExceptionpublic SessionInfo createSession(HsxRequestContext hsxRequestContext, String server, int port, String appName) throws HFMException
hsxRequestContext - HsxRequestContext Objectserver - a vaid server nameappName - Application which wil be openedHFMExceptionpublic String getAvailableServer(HsxRequestContext hsxRequestContext, String clusterName) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - Name of clusterHFMExceptionpublic void createApplication(HsxRequestContext hsxRequestContext, String clusterName, String appName, String appDescription, InputStream profileStream, String projectName, String webServerURL, APPLICATION_TYPES appType) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - the server or cluster to create the application onappName - the name of the application to createappDescription - the description of the applicationprofileStream - inputstream that contains the profile informationprojectName - the profile the application will be created underwebServerURL - the HFM web server urlappType - type of the applicationHFMException - if an error occurs while creating the applicationpublic void registerApplication(HsxRequestContext hsxRequestContext, String clusterName, String appName, String appDescription, String projectName, String webServerURL) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - the server or cluster to create the application onappName - the name of the application to createappDescription - the description of the applicationprojectName - the profile the application will be created underwebServerURL - the HFM web server urlHFMException - if an error occurs while creating the applicationpublic List<APPLICATION_TYPES> getApplicationType(HsxRequestContext hsxRequestContext, String clusterName, String appName) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - the server or cluster to create the application onappName - the name of the application to createHFMException - if an error occurs while creating the applicationpublic void deleteApplication(HsxRequestContext hsxRequestContext, String clusterName, String appName) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - The cluser name to delete the application underappName - The name of the applicationHFMExceptionpublic void setApplicationMode(HsxRequestContext hsxRequestContext, String clusterName, String appName, APPLICATION_MODE appMode) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - appName - appMode - HFMExceptionpublic APPLICATION_MODE getApplicationMode(HsxRequestContext hsxRequestContext, String clusterName, String appName) throws HFMException
clusterName - appName - HFMExceptionpublic APPLICATION_RULES_MODE getApplicationRulesMode(HsxRequestContext hsxRequestContext, String clusterName, String appName) throws HFMException
clusterName - appName - HFMExceptionpublic void setAdminMode(HsxRequestContext hsxRequestContext, String clusterName, String appName, boolean adminMode) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - appName - adminMode - HFMExceptionpublic int importApplication(String clusterName, HsxRequestContext hsxRequestContext, String appName, String newAppName, String newAppDescription, boolean isImportTaskAudit, boolean isImportData, String projectName, boolean isHFMMode, String dbLinkName, String scenarioList, String yearList, String hfmDBName) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - The cluser name to delete the application underappName - The name of the applicationHFMExceptionpublic int importApplication(String clusterName, HsxRequestContext hsxRequestContext, String appName, String newAppName, String newAppDescription, boolean isImportTaskAudit, boolean isImportData, String projectName, boolean isHFMMode, String dbLinkName, String scenarioList, String yearList, String hfmDBName, boolean purgeSourceData) throws HFMException
clusterName - The cluster name to register the application underhsxRequestContext - HsxRequestContext ObjectappName - Source application namenewAppName - Target application namenewAppDescription - Target application descriptionisImportTaskAudit - True if importing task audit table; otherwise falseisImportData - True if importing data; otherwise falseprojectName - Project name to register the application underisHFMMode - True if HFM application; false if EPMA applicationdbLinkName - Database link to source applicationscenarioList - Comma-delimited list of scenarios if filtering; blank if not filteringyearList - Comma-delimited list of years if filtering; blank if not filteringhfmDBName - Target database namepurgeSourceData - True if purging source data; otherwise faloseHFMExceptionpublic int restoreApplication(String clusterName, HsxRequestContext hsxRequestContext, String appName, String path, int rowCount, boolean isForceRestore) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - The cluser name to delete the application underappName - The name of the applicationHFMExceptionpublic int backupApplication(String clusterName, HsxRequestContext hsxRequestContext, String appName, String path, boolean isToBeScrambled, double scramblingValue, boolean isCopyTaskAudit, boolean isCopyDataAudit, int rowCount) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - The cluser name to delete the application underappName - The name of the applicationHFMExceptionpublic int duplicateApplication(String clusterName, HsxRequestContext hsxRequestContext, String appName, String newAppName, String newAppDescription, boolean isCopyTaskAudit, boolean isCopyDataAudit, String projectName, boolean isHFMMode) throws HFMException
HFMExceptionpublic List<ApplicationInformation> getApplications(String clusterName, HsxRequestContext hsxRequestContext, String language) throws HFMException
HFMExceptionpublic void setModuleConfig(HsxRequestContext hsxRequestContext, String clusterName, String applicationName, List<ModuleDetails> moduleDetails) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - cluster that will be responsible for connectingapplicationName - the application name of the application to be updatedmoduleDetails - List of disabled modulesHFMExceptionpublic List<ModuleDetails> getModuleConfig(HsxRequestContext hsxRequestContext, String clusterName, String applicationName) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - cluster that will be responsible for connectingapplicationName - the application name of the application to be updatedHFMExceptionpublic Map<USERPREFERENCES,String> getAllUserPreferenceValues(HsxRequestContext hsxRequestContext, String clusterName, String appName) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - appName - HFMExceptionpublic String getUserPreferenceValue(HsxRequestContext hsxRequestContext, String clusterName, String appName, USERPREFERENCES preference) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - the server or cluster to create the application onappName - the name of the application to createHFMException - if an error occurs while creating the applicationpublic void setUserPreferenceValues(HsxRequestContext hsxRequestContext, String clusterName, String appName, Map<USERPREFERENCES,String> preferences) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - appName - preferences - HFMExceptionpublic List<String> getApplicationLanguages(HsxRequestContext hsxRequestContext, String clusterName, String applicationName) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - applicationName - HFMExceptionpublic AdminTaskProgress getAdminTaskProgress(HsxRequestContext hsxRequestContext, String clusterName, int taskID) throws HFMException
HFMExceptionpublic byte[] getAdminTaskLogData(HsxRequestContext hsxRequestContext, String clusterName, int taskID) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - taskID - HFMExceptionpublic void removeDeadAdminTasks(HsxRequestContext hsxRequestContext, String clusterName) throws HFMException
HFMExceptionpublic void killAdminTask(HsxRequestContext hsxRequestContext, String clusterName, String applicationName) throws HFMException
HFMExceptionpublic List<LogoutUserStatus> logoutUsers(HsxRequestContext hsxRequestContext, String clusterName, List<LogoutUserInfo> userInfoList, boolean forcedLogout) throws HFMException
HFMExceptionpublic List<LogoutUserStatus> logoutAllUsers(HsxRequestContext hsxRequestContext, String clusterName, String serverName, String applicationName, boolean forcedLogout) throws HFMException
HFMExceptionpublic String convertXMLToVBScript(HsxRequestContext hsxRequestContext, String clusterName, String applicationName, String calcMgrXML) throws HFMException
HFMExceptionpublic String convertVBScriptToXML(HsxRequestContext hsxRequestContext, String clusterName, String applicationName, String vbScript) throws HFMException
HFMExceptionpublic String validateDSN(HsxRequestContext hsxRequestContext, String clusterName, String appName, String sslParam) throws HFMException
HFMExceptionpublic String validateVBComponents(HsxRequestContext hsxRequestContext, String clusterName, String applicationName, String calcMgrXML) throws HFMException
HFMExceptionpublic String convertVBScriptToPureXML(HsxRequestContext hsxRequestContext, String clusterName, String applicationName, String vbScript, boolean compLevelCondition, int compSplitOption, String dimensionMapping) throws HFMException
HFMExceptionpublic String convertVBScriptToXMLOnFly(HsxRequestContext hsxRequestContext, String clusterName, String applicationName, String vbScript, boolean compLevelCondition, int compSplitOption, String calcType) throws HFMException
HFMExceptionpublic Map<String,String> getAllSettings(HsxRequestContext hsxRequestContext, String clusterName, String serverName, String applicationName) throws HFMException
hsxRequestContext - clusterName - name of the clusterserverName - name of the server or null for All serversapplicationName - name of the applicaton or null for All serversHFMExceptionpublic byte[] getApplicationProfileData(HsxRequestContext hsxRequestContext, String clusterName, String ssoToken, String applicationName) throws HFMException
hsxRequestContext - clusterName - ssoToken - applicationName - HFMExceptionpublic Map<String,String> getDSNDetails(HsxRequestContext hsxRequestContext, String clusterName, String ssoToken, String dsnName) throws HFMException
hsxRequestContext - clusterName - ssoToken - dsnName - HFMExceptionpublic long getSettingsLastUpdated(HsxRequestContext hsxRequestContext, String clusterName) throws HFMException
hsxRequestContext - clusterName - HFMExceptionpublic boolean shutDownApplicationOnAllNodes(HsxRequestContext hsxRequestContext, String applicationName, String clusterName, String ssoToken, boolean isForceKill) throws HFMException
hsxRequestContext - clusterName - ssoToken - applicationName - isForceKill - HFMExceptionpublic boolean shutDownApplicationOnThisNode(HsxRequestContext hsxRequestContext, String applicationName, String serverName, String ssoToken, boolean isForceKill) throws HFMException
hsxRequestContext - serverName - ssoToken - applicationName - isForceKill - HFMExceptionpublic int modifyApplication(HsxRequestContext hsxRequestContext, String clusterName, String ssoToken, String applicationName, InputStream profileFileContents) throws HFMException
hsxRequestContext - clusterName - ssoToken - applicationName - profileFileContents - HFMExceptionpublic boolean setApplicationsEnabledStatus(HsxRequestContext hsxRequestContext, String ssoToken, String clusterName, List<String> serverNames, List<String> applicationNames, APPLICATION_ENABLED_STATUS status) throws HFMException
HFMExceptionpublic List<APPLICATION_ENABLED_STATUS> getApplicationsEnabledStatus(HsxRequestContext hsxRequestContext, String ssoToken, String clusterName, String serverName, List<String> applicationNames) throws HFMException
HFMExceptionpublic APPLICATION_ENABLED_STATUS getApplicationEnabledStatus(HsxRequestContext hsxRequestContext, String ssoToken, String clusterName, String serverName, String applicationName) throws HFMException
HFMExceptionpublic void restartApplication(HsxRequestContext hsxRequestContext, String applicationName, String serverName, Locale locale, boolean force) throws HFMException
hsxRequestContext - contains ssoToken for validation.applicationName - name of application cannot be null or empty.locale - locale to createSession.force - force shutdown of datasource regardless of whether there are running tasks (Currently not used).HFMException - if parameters are invalid errorCode=INVALID_PARAMETERS.
if the user does not have admin rights errorCode=USER_NOT_PROVISIONED_FOR_SYS_ADMIN.
if an unknown exception occurs errorCode=ERROR_RESTARING_APPLICATION.public void refreshCachedXfmParameter(HsxRequestContext hsxRequestContext, String clusterName, String appName) throws HFMException
hsxRequestContext - HsxRequestContext ObjectclusterName - appName - HFMExceptionpublic byte[] getApplicationSettingsData(HsxRequestContext hsxRequestContext, String clusterName, String ssoToken, String applicationName) throws HFMException
hsxRequestContext - clusterName - ssoToken - applicationName - HFMExceptionCopyright 2007, 2026, Oracle. All rights reserved.