Java Doc for PASModule.java in  » Portal » Open-Portal » com » sun » portal » admin » server » 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 » Portal » Open Portal » com.sun.portal.admin.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.portal.admin.server.PASModule

PASModule
public class PASModule extends Module implements PASModuleMBean,PSConfigConstants(Code)
This class implements the Portal Admin Server as a cacao module.


Field Summary
final public static  StringFS
    
final public static  String[]SIGNATURE
    
protected static  MapchildrenCache
    
protected static  MapclassNamesCache
    
protected static  MapconfigContexts
    
protected  StringmechanismName
    
public static  ObjectNamemyObjectName
    
protected static  ListportalResources
    
protected  Unmarshallerunmarshaller
    

Constructor Summary
public  PASModule(DeploymentDescriptor descriptor)
     Creates a new PASModule instance.

Method Summary
protected  voidaddNotificationListener(PASMechanism pasMechanism)
     Adds listener to receive JMX connection notifications.
protected static  SetgetChildren(String type)
     Returns the immediate children of the given type.
Parameters:
  type - the type of a Portal Server resource.
protected  File[]getFilesInDirectory(String directory)
     Returns the files in the given directory.
protected  SetgetJMXConnectorServers()
     Returns the object names of the JMX connector server MBeans registered to the MBean server.
public static  MBeanServergetMBeanServer()
     Returns the MBean server where all the portal admin MBeans run on.
protected static  voidinitPortalDomainContext(String domainID)
     Loads the portal domain context with the given ID and registers all the Portal Server MBeans in it.
protected  voidloadPortalResources(String psBaseDir)
     Loads the portal resources.
protected static  voidregisterPASInstanceToDomain(PortalDomainContext pdc)
     Registers this PAS instance to the portal domain with the given context by adding the name of the local host to the host attribute of the portal domain.
protected static  voidregisterPSMBeans(String domainID)
     Instantiates and registers all the Portal Server MBeans in the portal domain with the given ID.
protected  voidregisterPSMBeans()
     Instantiates and registers all the Portal Server MBeans.
protected static  voidregisterResourceMBeans(PSConfigContext cc, PortalDomainContext pdc, String type, List parentPath)
     Registers the portal MBeans with the given type under a parent MBeans with the given path in the given portal domain context.
public  voidreloadMBeans(String domainID, String type, List parentPath)
    
public static  voidreloadMBeans(PortalDomainContext pdc, String type, List parentPath)
     Invokes the reloadMBeans operation on all the running PAS instances in the portal domain with the given context to reload the MBeans of the given type under a parent with the given path.
protected  voidremoveNotificationListener(PASMechanism pasMechanism)
     Removes JMX connection notification listener.
protected  voidstart()
     This method first reads all the portal domains located in the portal domains directory and registers the portal MBeans to the MBean server.
protected  voidstop()
     Stops the Portal Admin Server cacao module.
protected  voidunregisterPASInstanceFromDomain(String domainID)
     Unregisters this PAS instance from the portal domain with the given ID by removing the name of the local host from the host attribute of the portal domain.
protected  voidunregisterPSMBeans()
     Unregisters all the Portal Server MBeans.
protected  voidunregisterResourceMBeans(String domainID, String type, List parentPath)
     Unregisters the portal MBeans with the given type under a parent MBeans with the given path in the portal domain with the given ID.

Field Detail
FS
final public static String FS(Code)



SIGNATURE
final public static String[] SIGNATURE(Code)



childrenCache
protected static Map childrenCache(Code)



classNamesCache
protected static Map classNamesCache(Code)



configContexts
protected static Map configContexts(Code)



mechanismName
protected String mechanismName(Code)



myObjectName
public static ObjectName myObjectName(Code)



portalResources
protected static List portalResources(Code)



unmarshaller
protected Unmarshaller unmarshaller(Code)




Constructor Detail
PASModule
public PASModule(DeploymentDescriptor descriptor)(Code)
Creates a new PASModule instance.
Parameters:
  descriptor - the deployment descriptor of the PAS module.




Method Detail
addNotificationListener
protected void addNotificationListener(PASMechanism pasMechanism)(Code)
Adds listener to receive JMX connection notifications.



getChildren
protected static Set getChildren(String type)(Code)
Returns the immediate children of the given type.
Parameters:
  type - the type of a Portal Server resource. a Set of Strings.



getFilesInDirectory
protected File[] getFilesInDirectory(String directory)(Code)
Returns the files in the given directory. The returned list may include files and directories.
Parameters:
  directory - the directory to list files. an array of File objects.



getJMXConnectorServers
protected Set getJMXConnectorServers()(Code)
Returns the object names of the JMX connector server MBeans registered to the MBean server.



getMBeanServer
public static MBeanServer getMBeanServer()(Code)
Returns the MBean server where all the portal admin MBeans run on. a MBeanServer object.



initPortalDomainContext
protected static void initPortalDomainContext(String domainID) throws Exception(Code)
Loads the portal domain context with the given ID and registers all the Portal Server MBeans in it.



loadPortalResources
protected void loadPortalResources(String psBaseDir)(Code)
Loads the portal resources.
Parameters:
  psBaseDir - the Portal Server base installation directory.



registerPASInstanceToDomain
protected static void registerPASInstanceToDomain(PortalDomainContext pdc)(Code)
Registers this PAS instance to the portal domain with the given context by adding the name of the local host to the host attribute of the portal domain.
Parameters:
  pdc - context of the portal domain to register this PAS instance.



registerPSMBeans
protected static void registerPSMBeans(String domainID)(Code)
Instantiates and registers all the Portal Server MBeans in the portal domain with the given ID.



registerPSMBeans
protected void registerPSMBeans()(Code)
Instantiates and registers all the Portal Server MBeans.



registerResourceMBeans
protected static void registerResourceMBeans(PSConfigContext cc, PortalDomainContext pdc, String type, List parentPath)(Code)
Registers the portal MBeans with the given type under a parent MBeans with the given path in the given portal domain context.
Parameters:
  cc - the Portal Server configuration context.
Parameters:
  pdc - the portal domain context.
Parameters:
  type - the type of the portal MBeans to be registered.
Parameters:
  parentPath - the path of the parent MBean.



reloadMBeans
public void reloadMBeans(String domainID, String type, List parentPath)(Code)



reloadMBeans
public static void reloadMBeans(PortalDomainContext pdc, String type, List parentPath)(Code)
Invokes the reloadMBeans operation on all the running PAS instances in the portal domain with the given context to reload the MBeans of the given type under a parent with the given path.
Parameters:
  pdc - context of the portal domain where MBeans are tobe reloaded.
Parameters:
  type - the type of the MBeans to be reloaded.
Parameters:
  parentPath - the path of the parent of the MBeans to be reloaded.



removeNotificationListener
protected void removeNotificationListener(PASMechanism pasMechanism)(Code)
Removes JMX connection notification listener.



start
protected void start()(Code)
This method first reads all the portal domains located in the portal domains directory and registers the portal MBeans to the MBean server. It then registers an access controller to cacao to control access to those portal MBeans. Finally, it registers an authentication mechanism to cacao to authenticate PAS users using Access Manager.



stop
protected void stop()(Code)
Stops the Portal Admin Server cacao module.



unregisterPASInstanceFromDomain
protected void unregisterPASInstanceFromDomain(String domainID)(Code)
Unregisters this PAS instance from the portal domain with the given ID by removing the name of the local host from the host attribute of the portal domain.
Parameters:
  domainID - the ID of the portal domain to unregisterthis PAS instance from.



unregisterPSMBeans
protected void unregisterPSMBeans()(Code)
Unregisters all the Portal Server MBeans.



unregisterResourceMBeans
protected void unregisterResourceMBeans(String domainID, String type, List parentPath)(Code)
Unregisters the portal MBeans with the given type under a parent MBeans with the given path in the portal domain with the given ID.
Parameters:
  domainID - ID of the portal domain.
Parameters:
  type - the type of the portal MBeans to be unregistered.
Parameters:
  parentPath - the path of the parent MBean.



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