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


java.lang.Object
   com.sun.portal.admin.common.util.AdminUtil

All known Subclasses:   com.sun.portal.admin.server.AdminServerUtil,  com.sun.portal.admin.common.util.AdminClientUtil,
AdminUtil
public class AdminUtil (Code)
This class provides misc. utility methods for Portal Admin Server clients and MBeans.


Field Summary
final public static  StringAMOBJECTSEARCH_MBEAN
    
final public static  StringAMOBJECTSEARCH_MBEAN_TYPE
    
final public static  StringCOMMUNITYMANAGER_MBEAN
    
final public static  StringCOMMUNITYMANAGER_MBEAN_TYPE
    
final public static  StringDEFAULT_DOMAIN
     The ID of the default portal domain.
final public static  intDEFAULT_DOWNLOAD_SIZE
    
final public static  StringDEFAULT_INSTANCE
     The ID of the default portal server instance.
final public static  StringDEFAULT_PORTAL
     The ID of the default portal.
final public static  intDEFAULT_UPLOAD_SIZE
    
final public static  StringDESKTOP_DYNAMIC_MBEAN
    
final public static  StringDESKTOP_DYNAMIC_MBEAN_TYPE
    
final public static  StringDISPLAYPROFILE_MBEAN
    
final public static  StringDISPLAYPROFILE_MBEAN_TYPE
    
final public static  StringDPADMINWRAPPER_MBEAN
    
final public static  StringDPADMINWRAPPER_MBEAN_TYPE
    
final public static  StringFILE_UPLOAD_DOWNLOAD_MANAGER
    
final public static  StringFILE_UPLOAD_DOWNLOAD_MANAGER_MBEAN_TYPE
    
final public static  StringJMX_DOMAIN
     The JMX domain used by Portal Admin Server.
final public static  StringKEY_ID
    
final public static  StringKEY_TYPE
    
final public static  StringMONITORING_MBEAN
    
final public static  StringMONITORING_MBEAN_TYPE
    
final public static  StringPORTAL_DOMAIN_MBEAN
    
final public static  StringPORTAL_DOMAIN_MBEAN_TYPE
    
final public static  StringPORTAL_MBEAN
    
final public static  StringPORTAL_MBEAN_TYPE
    
final public static  StringPORTAL_SERVER_INSTANCE_MBEAN
    
final public static  StringPORTAL_SERVER_INSTANCE_MBEAN_TYPE
    
final public static  StringPORTLET_ADMIN_MBEAN
    
final public static  StringPORTLET_ADMIN_MBEAN_TYPE
    
final public static  StringPROFILER_MBEAN
    
final public static  StringPROFILER_MBEAN_TYPE
    
final public static  StringREWRITER_MBEAN
    
final public static  StringREWRITER_MBEAN_TYPE
    
final public static  StringSCHEDULER_MBEAN
    
final public static  StringSCHEDULER_MBEAN_TYPE
    
final public static  StringSEARCHSERVER_MBEAN
    
final public static  StringSEARCHSERVER_MBEAN_TYPE
    
final public static  StringSEARCH_AUTOCLASSIFY_MBEAN
    
final public static  StringSEARCH_AUTOCLASSIFY_MBEAN_TYPE
    
final public static  StringSEARCH_CATEGORY_MBEAN
    
final public static  StringSEARCH_CATEGORY_MBEAN_TYPE
    
final public static  StringSEARCH_DATABASE_MBEAN
    
final public static  StringSEARCH_DATABASE_MBEAN_TYPE
    
final public static  StringSEARCH_ROBOT_MBEAN
    
final public static  StringSEARCH_ROBOT_MBEAN_TYPE
    
final public static  StringSEARCH_SITEPROBE_MBEAN
    
final public static  StringSEARCH_SITEPROBE_MBEAN_TYPE
    
final public static  StringSRA_MBEAN
    
final public static  StringSRA_MBEAN_TYPE
    
final public static  StringSRA_MONITORING_MBEAN
    
final public static  StringSRA_MONITORING_MBEAN_TYPE
    
final public static  StringSSOADAPTER_MBEAN
    
final public static  StringSSOADAPTER_MBEAN_TYPE
    
final public static  StringUPGRADED_PORTAL
     The ID of the an upgraded (jes3 or earlier) portal.


Method Summary
public static  ObjectNamegetAllResourcesPattern(String parentType, List parentPath)
     Returns the ObjectName pattern to search for all the portal resource MBeans, regardless of MBean/resource type, under a parent MBean with the given type and path.
public static  ListgetChildPath(List parentPath, String childID)
     Returns the full path of a portal server resource instance given the full path of its parent and its ID.
Parameters:
  parentPath - the full path of the parent resource instance.
Parameters:
  childID - the ID of the resource instance.
protected static synchronized  JMXConnectorgetConnector(String host, String authID, String password)
    
public static  ObjectNamegetDisplayProfileMBeanObjectName(String domainId, String portalId)
     Returns the ObjectName of the DisplayProfileMBean for the given portalId and is in the portal domain with the given domain ID.
Parameters:
  domainID - domain ID of the portal domain.
Parameters:
  portalID - portal ID of the PortalMBean.
public static  ObjectNamegetInstanceMBeanObjectName(String domainID, String portalID, String instanceID)
     Returns the ObjectName of the PortalServerInstanceMBean with the given instance ID and is in the portal with the given portal ID and in the portal domain with the given domain ID.
Parameters:
  domainID - domain ID of the portal domain.
Parameters:
  portalID - portal ID of the portal.
Parameters:
  instanceID - instance ID of the PortalServerInstanceMBean.
public static  StringgetParentType(String type)
     Returns the MBean/resource type of the parent of the MBean/resource with the given type.
public static  PortalDomainContextgetPortalDomainContext()
     Returns the default portal domain context.
public static  ObjectNamegetPortalDomainMBeanObjectName(String domainID)
     Returns the ObjectName of the PortalDomainMBean with the given portal domain ID.
Parameters:
  domainID - portal domain ID of the PortalDomainMBean.
public static  ObjectNamegetPortalDomainsPattern()
     Returns the ObjectName pattern to search for the portal domains.
public static  ObjectNamegetPortalMBeanObjectName(String domainID, String portalID)
     Returns the ObjectName of the PortalMBean with the given portal ID and is in the portal domain with the given domain ID.
Parameters:
  domainID - domain ID of the portal domain.
Parameters:
  portalID - portal ID of the PortalMBean.
public static  ObjectNamegetPortalServerInstancesPattern(String domainID, String portalID)
     Returns the ObjectName pattern to search for the portal server instances in the portal with the given portal ID and in the portal domain with the given domain ID.
public static  ObjectNamegetPortalsPattern(String domainID)
     Returns the ObjectName pattern to search for the portals in the portal domain with the given ID.
public static  ObjectNamegetResourceMBeanObjectName(String type, List path)
     Returns the ObjectName of the portal resource MBean of the given MBean/resource type and with the given path.
Parameters:
  type - MBean/resource type of the portal resource MBean.
Parameters:
  path - the full portal resource identification path.For example, it is {domainID} forPortalDomain, {portalID, domainID}for PortalDomain.Portal, and{instanceID, portalID, domainID} forPortalDomain.Portal.ServerInstance.
public static  ObjectNamegetResourcesPattern(String type, List parentPath)
     Returns the ObjectName pattern to search for the portal resource MBeans of the given MBean/resource type under a parent resource instance with the given path.
public static  ObjectNamegetSearchDatabasePattern(String domainID, String searchServerID)
     Returns the ObjectName pattern to search for the search database in the portal domain with the given ID.
public static  ObjectNamegetSearchServerPattern(String domainID)
     Returns the ObjectName pattern to search for the searchserver in the portal domain with the given ID.
public static  booleanisLocal(String host)
     Determines if the given host is the same as the local host.
Parameters:
  host - the host to be tested for locality.
public static  booleanisOnlySRAInstalled(PSConfigContext cc)
     returns true if only SRA component is installed on the local system (SRA Core/GW/NLP/RWP).
public static  booleanisSRAInstalled(PSConfigContext cc)
     returns true if any SRA component is installed on the local system (SRA Core/GW/NLP/RWP).
public static  booleanisSameHost(String host1, String host2)
     Determines if the hosts with the given names are the same.
Parameters:
  host1 - the first host to be tested for equality.
Parameters:
  host2 - the second host to be tested for equality.

Field Detail
AMOBJECTSEARCH_MBEAN
final public static String AMOBJECTSEARCH_MBEAN(Code)



AMOBJECTSEARCH_MBEAN_TYPE
final public static String AMOBJECTSEARCH_MBEAN_TYPE(Code)



COMMUNITYMANAGER_MBEAN
final public static String COMMUNITYMANAGER_MBEAN(Code)



COMMUNITYMANAGER_MBEAN_TYPE
final public static String COMMUNITYMANAGER_MBEAN_TYPE(Code)



DEFAULT_DOMAIN
final public static String DEFAULT_DOMAIN(Code)
The ID of the default portal domain.



DEFAULT_DOWNLOAD_SIZE
final public static int DEFAULT_DOWNLOAD_SIZE(Code)



DEFAULT_INSTANCE
final public static String DEFAULT_INSTANCE(Code)
The ID of the default portal server instance.



DEFAULT_PORTAL
final public static String DEFAULT_PORTAL(Code)
The ID of the default portal.



DEFAULT_UPLOAD_SIZE
final public static int DEFAULT_UPLOAD_SIZE(Code)



DESKTOP_DYNAMIC_MBEAN
final public static String DESKTOP_DYNAMIC_MBEAN(Code)



DESKTOP_DYNAMIC_MBEAN_TYPE
final public static String DESKTOP_DYNAMIC_MBEAN_TYPE(Code)



DISPLAYPROFILE_MBEAN
final public static String DISPLAYPROFILE_MBEAN(Code)



DISPLAYPROFILE_MBEAN_TYPE
final public static String DISPLAYPROFILE_MBEAN_TYPE(Code)



DPADMINWRAPPER_MBEAN
final public static String DPADMINWRAPPER_MBEAN(Code)



DPADMINWRAPPER_MBEAN_TYPE
final public static String DPADMINWRAPPER_MBEAN_TYPE(Code)



FILE_UPLOAD_DOWNLOAD_MANAGER
final public static String FILE_UPLOAD_DOWNLOAD_MANAGER(Code)



FILE_UPLOAD_DOWNLOAD_MANAGER_MBEAN_TYPE
final public static String FILE_UPLOAD_DOWNLOAD_MANAGER_MBEAN_TYPE(Code)



JMX_DOMAIN
final public static String JMX_DOMAIN(Code)
The JMX domain used by Portal Admin Server.



KEY_ID
final public static String KEY_ID(Code)



KEY_TYPE
final public static String KEY_TYPE(Code)



MONITORING_MBEAN
final public static String MONITORING_MBEAN(Code)



MONITORING_MBEAN_TYPE
final public static String MONITORING_MBEAN_TYPE(Code)



PORTAL_DOMAIN_MBEAN
final public static String PORTAL_DOMAIN_MBEAN(Code)



PORTAL_DOMAIN_MBEAN_TYPE
final public static String PORTAL_DOMAIN_MBEAN_TYPE(Code)



PORTAL_MBEAN
final public static String PORTAL_MBEAN(Code)



PORTAL_MBEAN_TYPE
final public static String PORTAL_MBEAN_TYPE(Code)



PORTAL_SERVER_INSTANCE_MBEAN
final public static String PORTAL_SERVER_INSTANCE_MBEAN(Code)



PORTAL_SERVER_INSTANCE_MBEAN_TYPE
final public static String PORTAL_SERVER_INSTANCE_MBEAN_TYPE(Code)



PORTLET_ADMIN_MBEAN
final public static String PORTLET_ADMIN_MBEAN(Code)



PORTLET_ADMIN_MBEAN_TYPE
final public static String PORTLET_ADMIN_MBEAN_TYPE(Code)



PROFILER_MBEAN
final public static String PROFILER_MBEAN(Code)



PROFILER_MBEAN_TYPE
final public static String PROFILER_MBEAN_TYPE(Code)



REWRITER_MBEAN
final public static String REWRITER_MBEAN(Code)



REWRITER_MBEAN_TYPE
final public static String REWRITER_MBEAN_TYPE(Code)



SCHEDULER_MBEAN
final public static String SCHEDULER_MBEAN(Code)



SCHEDULER_MBEAN_TYPE
final public static String SCHEDULER_MBEAN_TYPE(Code)



SEARCHSERVER_MBEAN
final public static String SEARCHSERVER_MBEAN(Code)



SEARCHSERVER_MBEAN_TYPE
final public static String SEARCHSERVER_MBEAN_TYPE(Code)



SEARCH_AUTOCLASSIFY_MBEAN
final public static String SEARCH_AUTOCLASSIFY_MBEAN(Code)



SEARCH_AUTOCLASSIFY_MBEAN_TYPE
final public static String SEARCH_AUTOCLASSIFY_MBEAN_TYPE(Code)



SEARCH_CATEGORY_MBEAN
final public static String SEARCH_CATEGORY_MBEAN(Code)



SEARCH_CATEGORY_MBEAN_TYPE
final public static String SEARCH_CATEGORY_MBEAN_TYPE(Code)



SEARCH_DATABASE_MBEAN
final public static String SEARCH_DATABASE_MBEAN(Code)



SEARCH_DATABASE_MBEAN_TYPE
final public static String SEARCH_DATABASE_MBEAN_TYPE(Code)



SEARCH_ROBOT_MBEAN
final public static String SEARCH_ROBOT_MBEAN(Code)



SEARCH_ROBOT_MBEAN_TYPE
final public static String SEARCH_ROBOT_MBEAN_TYPE(Code)



SEARCH_SITEPROBE_MBEAN
final public static String SEARCH_SITEPROBE_MBEAN(Code)



SEARCH_SITEPROBE_MBEAN_TYPE
final public static String SEARCH_SITEPROBE_MBEAN_TYPE(Code)



SRA_MBEAN
final public static String SRA_MBEAN(Code)



SRA_MBEAN_TYPE
final public static String SRA_MBEAN_TYPE(Code)



SRA_MONITORING_MBEAN
final public static String SRA_MONITORING_MBEAN(Code)



SRA_MONITORING_MBEAN_TYPE
final public static String SRA_MONITORING_MBEAN_TYPE(Code)



SSOADAPTER_MBEAN
final public static String SSOADAPTER_MBEAN(Code)



SSOADAPTER_MBEAN_TYPE
final public static String SSOADAPTER_MBEAN_TYPE(Code)



UPGRADED_PORTAL
final public static String UPGRADED_PORTAL(Code)
The ID of the an upgraded (jes3 or earlier) portal.





Method Detail
getAllResourcesPattern
public static ObjectName getAllResourcesPattern(String parentType, List parentPath) throws MalformedObjectNameException(Code)
Returns the ObjectName pattern to search for all the portal resource MBeans, regardless of MBean/resource type, under a parent MBean with the given type and path. The returned value can be used in MBeanServerConnection.queryMBeans() or MBeanServerConnection.queryNames() to obtain the portal resource MBeans.
Parameters:
  parentType - the type of the parent resource instance.
Parameters:
  parentPath - the full path of the parent resource instance. an ObjectName pattern.
exception:
  NullPointerException - if parentType or parentPath isnull.
exception:
  IllegalArgumentException - if parentType and parentPath'slength are inconsistent.
exception:
  MalformedObjectNameException - if parentType or any elementin parentPath containsan illegal character orif it does not followthe rules for quoting.



getChildPath
public static List getChildPath(List parentPath, String childID)(Code)
Returns the full path of a portal server resource instance given the full path of its parent and its ID.
Parameters:
  parentPath - the full path of the parent resource instance.
Parameters:
  childID - the ID of the resource instance. the full path of the portal server resource instance.
exception:
  NullPointerException - if parentPath or childID isnull.



getConnector
protected static synchronized JMXConnector getConnector(String host, String authID, String password) throws SecurityException, IOException(Code)



getDisplayProfileMBeanObjectName
public static ObjectName getDisplayProfileMBeanObjectName(String domainId, String portalId) throws MalformedObjectNameException(Code)
Returns the ObjectName of the DisplayProfileMBean for the given portalId and is in the portal domain with the given domain ID.
Parameters:
  domainID - domain ID of the portal domain.
Parameters:
  portalID - portal ID of the PortalMBean. the ObjectName of the PortalMBean.
exception:
  NullPointerException - if domainID or portalID isnull.
exception:
  MalformedObjectNameException - if domainID or portalIDcontains an illegalcharacter or if it doesnot follow the rulesfor quoting.



getInstanceMBeanObjectName
public static ObjectName getInstanceMBeanObjectName(String domainID, String portalID, String instanceID) throws MalformedObjectNameException(Code)
Returns the ObjectName of the PortalServerInstanceMBean with the given instance ID and is in the portal with the given portal ID and in the portal domain with the given domain ID.
Parameters:
  domainID - domain ID of the portal domain.
Parameters:
  portalID - portal ID of the portal.
Parameters:
  instanceID - instance ID of the PortalServerInstanceMBean. the ObjectName of the PortalServerInstanceMBean.
exception:
  NullPointerException - if domainID, portalID orinstanceID is null.
exception:
  MalformedObjectNameException - if domainID, portalIDor instanceID containsan illegal character orif it does not followthe rules for quoting.



getParentType
public static String getParentType(String type)(Code)
Returns the MBean/resource type of the parent of the MBean/resource with the given type. A Portal Server MBean/resource type has the form "aaa.bbb.ccc". In this case "aaa.bbb" is returned.
Parameters:
  type - the type of the MBean/resource whose parentMBean/resource type is to be returned. the MBean/resource type of the parent;null if the given MBean/resource has noparent, e.g. PortalDomain.
exception:
  NullPointerException - if type is null.



getPortalDomainContext
public static PortalDomainContext getPortalDomainContext() throws Exception(Code)
Returns the default portal domain context. the default portal domain context.
exception:
  Exception - if the default portal domain context couldnot be loaded for any reason.



getPortalDomainMBeanObjectName
public static ObjectName getPortalDomainMBeanObjectName(String domainID) throws MalformedObjectNameException(Code)
Returns the ObjectName of the PortalDomainMBean with the given portal domain ID.
Parameters:
  domainID - portal domain ID of the PortalDomainMBean. the ObjectName of the PortalDomainMBean.
exception:
  NullPointerException - if domainID is null.
exception:
  MalformedObjectNameException - if domainID contains anillegal character or ifit does not follow therules for quoting.



getPortalDomainsPattern
public static ObjectName getPortalDomainsPattern() throws MalformedObjectNameException(Code)
Returns the ObjectName pattern to search for the portal domains. The returned value can be used in MBeanServerConnection.queryMBeans() or MBeanServerConnection.queryNames() to obtain the PortalDomainMBeans an ObjectName pattern.



getPortalMBeanObjectName
public static ObjectName getPortalMBeanObjectName(String domainID, String portalID) throws MalformedObjectNameException(Code)
Returns the ObjectName of the PortalMBean with the given portal ID and is in the portal domain with the given domain ID.
Parameters:
  domainID - domain ID of the portal domain.
Parameters:
  portalID - portal ID of the PortalMBean. the ObjectName of the PortalMBean.
exception:
  NullPointerException - if domainID or portalID isnull.
exception:
  MalformedObjectNameException - if domainID or portalIDcontains an illegalcharacter or if it doesnot follow the rulesfor quoting.



getPortalServerInstancesPattern
public static ObjectName getPortalServerInstancesPattern(String domainID, String portalID) throws MalformedObjectNameException(Code)
Returns the ObjectName pattern to search for the portal server instances in the portal with the given portal ID and in the portal domain with the given domain ID. The returned value can be used in MBeanServerConnection.queryMBeans() or MBeanServerConnection.queryNames() to obtain the PortalServerInstanceMBeans in the portal with the given portal ID and in the portal domain with the given domain ID.
Parameters:
  domainID - domain ID of the portal domain.
Parameters:
  portalID - portal ID of the portal. an ObjectName pattern.
exception:
  NullPointerException - if domainID or portalID isnull.
exception:
  MalformedObjectNameException - if domainID or portalIDcontains an illegalcharacter or if it doesnot follow the rulesfor quoting.



getPortalsPattern
public static ObjectName getPortalsPattern(String domainID) throws MalformedObjectNameException(Code)
Returns the ObjectName pattern to search for the portals in the portal domain with the given ID. The returned value can be used in MBeanServerConnection.queryMBeans() or MBeanServerConnection.queryNames() to obtain the PortalMBeans in the portal domain with the given ID.
Parameters:
  domainID - domain ID of the portal domain. an ObjectName pattern.
exception:
  NullPointerException - if domainID is null.
exception:
  MalformedObjectNameException - if domainID contains anillegal character or ifit does not follow therules for quoting.



getResourceMBeanObjectName
public static ObjectName getResourceMBeanObjectName(String type, List path) throws MalformedObjectNameException(Code)
Returns the ObjectName of the portal resource MBean of the given MBean/resource type and with the given path.
Parameters:
  type - MBean/resource type of the portal resource MBean.
Parameters:
  path - the full portal resource identification path.For example, it is {domainID} forPortalDomain, {portalID, domainID}for PortalDomain.Portal, and{instanceID, portalID, domainID} forPortalDomain.Portal.ServerInstance. the ObjectName of the portal resource MBean.
exception:
  NullPointerException - if type or path is null.
exception:
  IllegalArgumentException - if path is empty or typeand path's length are inconsistent.
exception:
  MalformedObjectNameException - if type or any elementin path contains anillegal character orif it does not followthe rules for quoting.



getResourcesPattern
public static ObjectName getResourcesPattern(String type, List parentPath) throws MalformedObjectNameException(Code)
Returns the ObjectName pattern to search for the portal resource MBeans of the given MBean/resource type under a parent resource instance with the given path. The returned value can be used in MBeanServerConnection.queryMBeans() or MBeanServerConnection.queryNames() to obtain the portal resource MBeans.
Parameters:
  type - the type of the MBeans to be searched.
Parameters:
  parentPath - the full path of the parent resource instance. an ObjectName pattern.
exception:
  NullPointerException - if type or parentPath isnull.
exception:
  IllegalArgumentException - if type and parentPath'slength are inconsistent.
exception:
  MalformedObjectNameException - if type or any elementin parentPath containsan illegal character orif it does not followthe rules for quoting.



getSearchDatabasePattern
public static ObjectName getSearchDatabasePattern(String domainID, String searchServerID) throws MalformedObjectNameException(Code)
Returns the ObjectName pattern to search for the search database in the portal domain with the given ID. The returned value can be used in MBeanServerConnection.queryMBeans() or MBeanServerConnection.queryNames() to obtain the PortalMBeans in the portal domain with the given ID.
Parameters:
  domainID - domain ID of the portal domain.
Parameters:
  searchserverID - search server ID. an ObjectName pattern.
exception:
  NullPointerException - if domainID is null.
exception:
  MalformedObjectNameException - if domainID contains anillegal character or ifit does not follow therules for quoting.



getSearchServerPattern
public static ObjectName getSearchServerPattern(String domainID) throws MalformedObjectNameException(Code)
Returns the ObjectName pattern to search for the searchserver in the portal domain with the given ID. The returned value can be used in MBeanServerConnection.queryMBeans() or MBeanServerConnection.queryNames() to obtain the PortalMBeans in the portal domain with the given ID.
Parameters:
  domainID - domain ID of the portal domain. an ObjectName pattern.
exception:
  NullPointerException - if domainID is null.
exception:
  MalformedObjectNameException - if domainID contains anillegal character or ifit does not follow therules for quoting.



isLocal
public static boolean isLocal(String host) throws UnknownHostException(Code)
Determines if the given host is the same as the local host.
Parameters:
  host - the host to be tested for locality. true if the current JVM is running on thegiven host; false otherwise.
exception:
  UnknownHostException - if no IP address for the hostcould be found.



isOnlySRAInstalled
public static boolean isOnlySRAInstalled(PSConfigContext cc)(Code)
returns true if only SRA component is installed on the local system (SRA Core/GW/NLP/RWP).



isSRAInstalled
public static boolean isSRAInstalled(PSConfigContext cc)(Code)
returns true if any SRA component is installed on the local system (SRA Core/GW/NLP/RWP).



isSameHost
public static boolean isSameHost(String host1, String host2) throws UnknownHostException(Code)
Determines if the hosts with the given names are the same.
Parameters:
  host1 - the first host to be tested for equality.
Parameters:
  host2 - the second host to be tested for equality. true if the hosts are the same;false otherwise.
exception:
  UnknownHostException - if no IP address for the hostscould be found.



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.