Java Doc for AutoAdminTask.java in  » ESB » open-esb » com » sun » jbi » management » system » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ESB » open esb » com.sun.jbi.management.system 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

Field Summary
final public static  StringAUTODEPLOY_DIR
     Root directory for autodeploy.
final public static  StringAUTOINSTALL_DIR
     Root directory for autoinstall.
final public static  StringCOMP_DELIMITER
    
final public static  StringDELIMITER
    
final public static  StringSL_DELIMITER
    

Constructor Summary
public  AutoAdminTask(ManagementContext anEnv)
     Constructs a AutoAdminTask.
public  AutoAdminTask(ManagementContext anEnv, String aDirectoryForAutoInstall, String aDirectoryForAutoDeploy, boolean isAutoInstallEnabled, boolean isAutoDeployEnabled)
     Constructs a AutoAdminTask for use by junit tests.

Method Summary
 booleancheckConfigPermission(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.
 StringgetConfigAttribute(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.
 voidinitDirectories(boolean isAutoInstallEnabled, boolean isAutoDeployEnabled)
     Initializes autoinstall and autodeploy directories.
public  voidperformAutoDeploy()
     Process autodeploy directory for new files.
public synchronized  voidperformAutoFunctions()
     Process autoinstall and autodeploy directories.
public  voidperformAutoInstall()
     Process autoinstall directory for new files.
public  voidperformAutoRedeploy()
     Process autodeploy directory for updated files.
public  voidperformAutoReinstall()
     Process autoinstall directory for updated files.
public  voidperformAutoUndeploy()
     Process autodeploy directory for deleted files.
public  voidperformAutoUninstall()
     Process autoinstall directory for deleted files.
synchronized  FilepollAutoDirectory(PollFunction queryType, File topLevelDir, File statusDir)
     Checks the autoinstall or autodeploy directory for candidate files.

Field Detail
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




Constructor Detail
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.




Method Detail
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.



performAutoRedeploy
public void performAutoRedeploy() throws java.io.IOException(Code)
Process autodeploy directory for updated files.
throws:
  java.io.IOException - unexpectedly.



performAutoReinstall
public void performAutoReinstall() throws java.io.IOException(Code)
Process autoinstall directory for updated files.
throws:
  java.io.IOException - 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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.