getAllResourcesPattern(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.
getChildPath(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.
getDisplayProfileMBeanObjectName(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.
getInstanceMBeanObjectName(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.
getPortalDomainMBeanObjectName(String domainID) Returns the ObjectName of the PortalDomainMBean with the given
portal domain ID.
Parameters: domainID - portal domain ID of the PortalDomainMBean.
getPortalMBeanObjectName(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.
getPortalServerInstancesPattern(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.
getResourceMBeanObjectName(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.
getResourcesPattern(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.
getSearchDatabasePattern(String domainID, String searchServerID) Returns the ObjectName pattern to search for the search database
in the portal domain with the given ID.
isSRAInstalled(PSConfigContext cc) returns true if any SRA component is installed on the local
system (SRA Core/GW/NLP/RWP).
public static boolean
isSameHost(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)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.