|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.wsspi.management.metadata.ManagedObjectMetadataCollectorManagerFactory
public class ManagedObjectMetadataCollectorManagerFactory
This is the factory class used to create instances of
ManagedObjectMetadataCollectorManager
.
ManagedObjectMetadataCollectorManager
Constructor Summary | |
---|---|
ManagedObjectMetadataCollectorManagerFactory()
|
Method Summary | |
---|---|
static ManagedObjectMetadataCollectorManager |
createCollectorManager(java.util.Properties props)
Invoke this method to obtain a ManagedObjectMetadataCollectorManager instance
which does not send collected metadata to the Deployment Manager. |
static ManagedObjectMetadataCollectorManager |
createCollectorManager(java.util.Properties props,
com.ibm.websphere.management.AdminClient adminClient)
Invoke this method to obtain a ManagedObjectMetadataCollectorManager instance
which collects and stores node metadata properties directly to the specified
local node's configuration directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedObjectMetadataCollectorManagerFactory()
Method Detail |
---|
public static ManagedObjectMetadataCollectorManager createCollectorManager(java.util.Properties props, com.ibm.websphere.management.AdminClient adminClient) throws com.ibm.websphere.management.exception.AdminException
ManagedObjectMetadataCollectorManager
instance
which collects and stores node metadata properties directly to the specified
local node's configuration directory.
An AdminClient connected to the node's Deployment Manager optionally can be specified in the event that the node is a federated node so that the master config repository can be updated with the collected metadata as soon as possible.
If a null AdminClient reference is passed in, the Metadata Collector Manager will read the local profile's configuration to first determine whether the node is a federated node (versus a standalone node). If it is and if the node is not for the Deployment Manager itself, this factory will obtain address data from the configuration to create an AdminClient which is connected to the Deployment Manager. Any AdminClient properties specified in props will override any values which would otherwise be used. If security is enabled, AdminClient login properties must be provided in inputProps. If the specified local node is a standalone node or if the specified local node is the Deployment Manager's node, no AdminClient is created.
If an AdminClient reference cannot be obtained or it otherwise cannot communicate with the Deployment Manager, the federated node's node agent will send the data to the Deployment Manager after startup upon initial discovery of the Deployment Manager.
Users of this factory should provide an AdminClient connected to the Deployment Manager when reasonably possible because doing so will be more efficient than having the Collector Manager read through the profile's configuration repository to obtain Deployment Manager connection data.
If the caller does not want the metadata uploaded to the Deployment Manager, it should use the variant of this method which does not take an AdminClient.
props
- A set of properties required to create a
ManagedObjectMetadataCollectorManager instance. The expected properties
are listed below:
If no properties are set, the value for props can be null.
adminClient
- An com.ibm.websphere.management.AdminClient reference. Collected
metadata can optionally be sent immediately to the administrative server to
be stored in the master configuration repository by providing an AdminClient
connection. If the node on which data is being collected is a member of a
Network Deployment cell, the AdminClient connection provided must be to the
Deployment Manager process. If the value for adminClient is null, the
metadata will not be sent to the Deployment Manager. The value for adminClient
should be null if the repository root specified already points to the
master config repository.
com.ibm.websphere.management.exception.AdminException
- Could not create a ManagedObjectMetadataCollectorManager instance.ManagedObjectMetadataCollectorManager.CELL_NAME
,
ManagedObjectMetadataCollectorManager.NODE_NAME
,
ManagedObjectMetadataCollectorManager.WAS_INSTALL_ROOT
,
createCollectorManager(Properties)
public static ManagedObjectMetadataCollectorManager createCollectorManager(java.util.Properties props) throws com.ibm.websphere.management.exception.AdminException
ManagedObjectMetadataCollectorManager
instance
which does not send collected metadata to the Deployment Manager.
For a complete description of this method and of the props parameter, refer the
description of
createCollectorManager(Properties, AdminClient)
.
com.ibm.websphere.management.exception.AdminException
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |