Package de.valtech.aecu.core.jmx
Class AecuServiceMBeanImpl
- java.lang.Object
-
- javax.management.StandardMBean
-
- com.adobe.granite.jmx.annotation.AnnotatedStandardMBean
-
- de.valtech.aecu.core.jmx.AecuServiceMBeanImpl
-
- All Implemented Interfaces:
AecuServiceMBean,DynamicMBean,MBeanRegistration
public class AecuServiceMBeanImpl extends com.adobe.granite.jmx.annotation.AnnotatedStandardMBean implements AecuServiceMBean
-
-
Constructor Summary
Constructors Constructor Description AecuServiceMBeanImpl()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringexecute(String path)Executes the script(s) at the given position.Stringexecute(String path, String data)Returns history entries.StringexecuteWithHistory(String path)Executes the script(s) at the given position and taking install hook history into account.List<String>getFiles(String path)Returns a list of files that can be executed in the given path.StringgetHistory(int start, int count)Returns history entries.StringgetVersion()Returns the AECU version.-
Methods inherited from class com.adobe.granite.jmx.annotation.AnnotatedStandardMBean
getAnnotation, getConstructor, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getMethod, getParamAnnotation, getParamAnnotation, getParameterName, getParameterName, getReadMethod, getWriteMethod
-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
-
-
-
Constructor Detail
-
AecuServiceMBeanImpl
public AecuServiceMBeanImpl() throws NotCompliantMBeanExceptionConstructor- Throws:
NotCompliantMBeanException- error setting up mbean
-
-
Method Detail
-
getVersion
public String getVersion()
Description copied from interface:AecuServiceMBeanReturns the AECU version.- Specified by:
getVersionin interfaceAecuServiceMBean- Returns:
- version
-
getFiles
public List<String> getFiles(String path) throws de.valtech.aecu.api.service.AecuException
Description copied from interface:AecuServiceMBeanReturns a list of files that can be executed in the given path.- Specified by:
getFilesin interfaceAecuServiceMBean- Parameters:
path- file or folder- Returns:
- list of files that are executable
- Throws:
de.valtech.aecu.api.service.AecuException- error finding files (e.g. invalid path)
-
execute
public String execute(String path) throws de.valtech.aecu.api.service.AecuException
Description copied from interface:AecuServiceMBeanExecutes the script(s) at the given position.- Specified by:
executein interfaceAecuServiceMBean- Parameters:
path- path of script/folder- Returns:
- execution result
- Throws:
de.valtech.aecu.api.service.AecuException- error during execution
-
executeWithHistory
public String executeWithHistory(String path) throws de.valtech.aecu.api.service.AecuException
Description copied from interface:AecuServiceMBeanExecutes the script(s) at the given position and taking install hook history into account.- Specified by:
executeWithHistoryin interfaceAecuServiceMBean- Parameters:
path- path of script/folder- Returns:
- execution result
- Throws:
de.valtech.aecu.api.service.AecuException- error during execution
-
getHistory
public String getHistory(int start, int count) throws de.valtech.aecu.api.service.AecuException
Description copied from interface:AecuServiceMBeanReturns history entries.- Specified by:
getHistoryin interfaceAecuServiceMBean- Parameters:
start- start index (0 is last run)count- number of entries to return- Returns:
- history entries
- Throws:
de.valtech.aecu.api.service.AecuException- error reading history
-
execute
public String execute(String path, String data) throws de.valtech.aecu.api.service.AecuException
Description copied from interface:AecuServiceMBeanReturns history entries.- Specified by:
executein interfaceAecuServiceMBean- Parameters:
path- path of script/folderdata- json data used in the script context- Returns:
- history entries
- Throws:
de.valtech.aecu.api.service.AecuException- error reading history
-
-