Package com.appliedolap.essbase.impl
Class EssApplicationImpl
java.lang.Object
com.appliedolap.essbase.AbstractEssObject
com.appliedolap.essbase.impl.EssApplicationImpl
- All Implemented Interfaces:
EssApplication,EssObject
Represents an Essbase application object. An application is a container for one or more
EssCubeImpl cubes.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.appliedolap.essbase.EssApplication
EssApplication.StatusNested classes/interfaces inherited from interface com.appliedolap.essbase.EssObject
EssObject.Type -
Field Summary
Fields inherited from class com.appliedolap.essbase.AbstractEssObject
api -
Constructor Summary
ConstructorsConstructorDescriptionEssApplicationImpl(ApiContext api, EssServer server, com.appliedolap.essbase.client.model.Application application) -
Method Summary
Modifier and TypeMethodDescriptionvoidCopies this application to a new application with the given name.voiddelete()Deletes this application.voiddownloadAllLogsAsZip(OutputStream outputStream) Writes all logs to the given output stream.voiddownloadLatestLog(OutputStream outputStream) Writes the latest application log to the given output stream.getApi()Gets the list of configuration for this application.Gets the created time for this application.Gets a cube with the given name.getCubes()Gets the list of cubes in this application.getJobs()Get the list of jobs associated with this application.Gets the modified time for this application.getName()Gets the name of this object.Get the server that contains this application.Gets the status of this application.getType()Gets the type of this object.Gets the list of variables specific to this applicationvoidRenames this application.voidstart()Starts the applicationvoidstop()Stops the application.
-
Constructor Details
-
EssApplicationImpl
public EssApplicationImpl(ApiContext api, EssServer server, com.appliedolap.essbase.client.model.Application application)
-
-
Method Details
-
getName
Description copied from interface:EssObjectGets the name of this object. This will generally be the "nice" and "unique" name of this object, such as the application name, cube, member, variable, or whatever. -
getType
Description copied from interface:EssObjectGets the type of this object. -
getServer
Description copied from interface:EssApplicationGet the server that contains this application.- Specified by:
getServerin interfaceEssApplication- Returns:
- the parent server for the application
-
getCreated
Description copied from interface:EssApplicationGets the created time for this application.- Specified by:
getCreatedin interfaceEssApplication- Returns:
- when the application was created
-
getModified
Description copied from interface:EssApplicationGets the modified time for this application.- Specified by:
getModifiedin interfaceEssApplication- Returns:
- the modified time for this application
-
getCubes
Description copied from interface:EssApplicationGets the list of cubes in this application.- Specified by:
getCubesin interfaceEssApplication- Returns:
- the list of cubes for this application, or an empty list if there are none
-
getCube
Description copied from interface:EssApplicationGets a cube with the given name.- Specified by:
getCubein interfaceEssApplication- Parameters:
cubeName- the name of the cube- Returns:
- the cube
-
getApi
-
copy
Description copied from interface:EssApplicationCopies this application to a new application with the given name.- Specified by:
copyin interfaceEssApplication- Parameters:
copyName- the name of the copy
-
delete
public void delete()Description copied from interface:EssApplicationDeletes this application.- Specified by:
deletein interfaceEssApplication
-
rename
Description copied from interface:EssApplicationRenames this application.- Specified by:
renamein interfaceEssApplication- Parameters:
newName- the new name for the application
-
getConfigurations
Description copied from interface:EssApplicationGets the list of configuration for this application.- Specified by:
getConfigurationsin interfaceEssApplication- Returns:
- the configurations
-
getJobs
Description copied from interface:EssApplicationGet the list of jobs associated with this application. In the Essbase REST API there is no specific endpoint for jobs related to an application, but the general jobs service can take an application name to filter on. So this implementation serves as a convenience method to get the jobs specific to this application.- Specified by:
getJobsin interfaceEssApplication- Returns:
- list of jobs for this application, empty list if none
-
getVariables
Description copied from interface:EssApplicationGets the list of variables specific to this application- Specified by:
getVariablesin interfaceEssApplication- Returns:
- the application variables
-
getStatus
Description copied from interface:EssApplicationGets the status of this application. Known statuses are simplySTOPPEDandSTARTED; other statuses, if they exist, are not known at this time and will simply get converted toUNKNOWN.Note that this status represents the status when this object was instantiated. In other words, if the status of the app changes during the lifetime of this object, it won't be refreshed automatically.
- Specified by:
getStatusin interfaceEssApplication- Returns:
- the status of this application
-
stop
public void stop()Description copied from interface:EssApplicationStops the application.- Specified by:
stopin interfaceEssApplication
-
start
public void start()Description copied from interface:EssApplicationStarts the application- Specified by:
startin interfaceEssApplication
-
downloadLatestLog
Description copied from interface:EssApplicationWrites the latest application log to the given output stream.- Specified by:
downloadLatestLogin interfaceEssApplication- Parameters:
outputStream- the output stream
-
downloadAllLogsAsZip
Description copied from interface:EssApplicationWrites all logs to the given output stream.- Specified by:
downloadAllLogsAsZipin interfaceEssApplication- Parameters:
outputStream- the output stream
-