| java.lang.Object com.sun.jbi.management.system.AutoAdminTask
AutoAdminTask | public class AutoAdminTask (Code) | | This is the JBI Framework Auto Admin Task, which helps with autodeploy and
autoinstall functionality.
author: Sun Microsystems, Inc. |
Inner Class :public enum PollFunction | |
Method Summary | |
boolean | checkConfigPermission(ObjectName aConfigSvcName, String aPermissionName) Check the Configuration MBean for the specified Boolean property.
Parameters: aConfigSvcName - the name of the config service MBean to query. Parameters: aPermissionName - is the name of the attribute to examine. | String | getConfigAttribute(ObjectName aConfigSvcName, String anAttributeName) Check the Configuration MBean for the specified String property.
Parameters: aConfigSvcName - the name of the config service MBean to query. Parameters: anAttributeName - is the name of the attribute to examine. | void | initDirectories(boolean isAutoInstallEnabled, boolean isAutoDeployEnabled) Initializes autoinstall and autodeploy directories. | public void | performAutoDeploy() Process autodeploy directory for new files. | public synchronized void | performAutoFunctions() Process autoinstall and autodeploy directories. | public void | performAutoInstall() Process autoinstall directory for new files. | public void | performAutoRedeploy() Process autodeploy directory for updated files. | public void | performAutoReinstall() Process autoinstall directory for updated files. | public void | performAutoUndeploy() Process autodeploy directory for deleted files. | public void | performAutoUninstall() Process autoinstall directory for deleted files. | synchronized File | pollAutoDirectory(PollFunction queryType, File topLevelDir, File statusDir) Checks the autoinstall or autodeploy directory for candidate files. |
AUTODEPLOY_DIR | final public static String AUTODEPLOY_DIR(Code) | | Root directory for autodeploy.
|
AUTOINSTALL_DIR | final public static String AUTOINSTALL_DIR(Code) | | Root directory for autoinstall.
|
COMP_DELIMITER | final public static String COMP_DELIMITER(Code) | | Separates the autoinstalled file's name from the component's name
|
DELIMITER | final public static String DELIMITER(Code) | | Separates the autodeployed file's name from the SA name
|
SL_DELIMITER | final public static String SL_DELIMITER(Code) | | Separates the autoinstalled file's name from the shared library's name
|
AutoAdminTask | public AutoAdminTask(ManagementContext anEnv)(Code) | | Constructs a AutoAdminTask.
Parameters: anEnv - is the ManagementContext. |
AutoAdminTask | public AutoAdminTask(ManagementContext anEnv, String aDirectoryForAutoInstall, String aDirectoryForAutoDeploy, boolean isAutoInstallEnabled, boolean isAutoDeployEnabled)(Code) | | Constructs a AutoAdminTask for use by junit tests.
Parameters: anEnv - is the ManagementContext. Parameters: autoInstallDir - Directory for auto install dir Parameters: autoDeployDir - Directory for auto deploy dir Parameters: isAutoInstallEnabled - true iff the auto install permission bit set. Parameters: isAutoDeployEnabled - true iff the auto deploy permission bit set. |
checkConfigPermission | boolean checkConfigPermission(ObjectName aConfigSvcName, String aPermissionName)(Code) | | Check the Configuration MBean for the specified Boolean property.
Parameters: aConfigSvcName - the name of the config service MBean to query. Parameters: aPermissionName - is the name of the attribute to examine. "true" or "false" as found in the attribute. |
getConfigAttribute | String getConfigAttribute(ObjectName aConfigSvcName, String anAttributeName)(Code) | | Check the Configuration MBean for the specified String property.
Parameters: aConfigSvcName - the name of the config service MBean to query. Parameters: anAttributeName - is the name of the attribute to examine. the String value from the Configuration MBean attribute. |
initDirectories | void initDirectories(boolean isAutoInstallEnabled, boolean isAutoDeployEnabled)(Code) | | Initializes autoinstall and autodeploy directories.
Parameters: isAutoInstallEnabled - true iff the auto install permission bit set. Parameters: isAutoDeployEnabled - true iff the auto deploy permission bit set. |
performAutoDeploy | public void performAutoDeploy()(Code) | | Process autodeploy directory for new files.
throws: Exception - unexpectedly. |
performAutoFunctions | public synchronized void performAutoFunctions() throws Exception(Code) | | Process autoinstall and autodeploy directories.
throws: Exception - unexpectedly. |
performAutoInstall | public void performAutoInstall()(Code) | | Process autoinstall directory for new files.
throws: Exception - unexpectedly. |
performAutoUndeploy | public void performAutoUndeploy()(Code) | | Process autodeploy directory for deleted files.
throws: Exception - unexpectedly. |
performAutoUninstall | public void performAutoUninstall()(Code) | | Process autoinstall directory for deleted files.
throws: Exception - unexpectedly. |
pollAutoDirectory | synchronized File pollAutoDirectory(PollFunction queryType, File topLevelDir, File statusDir)(Code) | | Checks the autoinstall or autodeploy directory for candidate files. If a
file is found, we check the file suffix (to make sure we are not trying
to install or deploy a status file), and we also check that an existing
timestamp file doesn't already exist, with the same filename.
Parameters: queryType - (enum) the type of file we are polling for. Parameters: topLevelDir - the directory to scan for candidate files. Parameters: statusDir - the directory for timestamp files (to exclude matches). a File that is a *not* a status file, nor that already existsin the status directory. |
|
|