|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.adt.topology.TopologyServiceFactory
public final class TopologyServiceFactory
Implements factory methods for configuring TopologyService and for creating the interface instances required to use TopologyService services. Only one TopologyServiceFactory per JVM is allowed.
Constructor Summary | |
---|---|
TopologyServiceFactory()
|
Method Summary | |
---|---|
static TopologyComparator |
createComparatorInstance(java.lang.String providerId)
Creates a new TopologyComparator instance corresponding to the specified providerId. |
static TopologyProvider |
createProviderInstance(java.lang.String providerId)
Creates a new TopologyProvider instance corresponding to the specified providerId. |
static TopologyService |
createTopologyServiceInstance()
Creates a new TopologyService instance that is used when it is desireable to establish context for object searchs that is finer grained then "JVM-wide". |
static void |
destroyTopologyServiceInstance(TopologyService service)
Destroys a TopologyService instance. |
static java.lang.String[] |
getAvailableProviders()
Get the registered TopologyProvider implementations. |
static java.lang.String |
getConfigurationHandlerId(ConfigurationHandler handler)
Returns the id of the specified ConfigurationHandler. |
static TopologyService |
getGlobalTopologyService()
Creates the global TopologyService instance if it doesn't already exist and returns it. |
static TopologyServiceLogger |
getLogger()
Gets the global TopologyService Logger instance. |
static java.lang.String |
getProperty(java.lang.String key)
Returns a runtime property from the TopologyService property store. |
static ConfigurationHandler[] |
getRegisteredConfigurationHandlers()
Gets all registered ConfigurationHandler instances. |
static TopologyObjectCorrelator |
getRegisteredCorrelator(java.lang.String correlatorId)
Gets the registered TopologyObjectCorrelator instance associated with the specified correlatorId. |
static RelationshipMetaInfo[] |
getRegisteredRelationships(java.lang.String objectTypeNamespace)
Returns the registered relationships applicable for the given namespace. |
static void |
registerComparator(java.lang.String providerId,
java.lang.Class comparatorClass)
Register a TopologyComparator class with TopologyService. |
static void |
registerConfigurationHandler(java.lang.String handlerId,
java.lang.Object handler)
Register a ConfigurationHandler instance with TopologyService. |
static void |
registerCorrelator(java.lang.String correlatorId,
java.lang.Object correlator)
Register a TopologyObjectCorrelator instance with TopologyService. |
static void |
registerProvider(java.lang.String providerId,
java.lang.Class providerClass)
Register a TopologyProvider class with TopologyService. |
static void |
registerProviderRelationships(java.net.URL relationshipMapURL)
Register provider relationships using the given XML descriptor file. |
static void |
setLoggingOptions(boolean enable,
java.lang.String logPath,
java.util.logging.Level level)
Set the logging options for Topology Service. |
static void |
setProperty(java.lang.String key,
java.lang.String value)
Sets a runtime property in the TopologyService property store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TopologyServiceFactory()
Method Detail |
---|
public static TopologyService getGlobalTopologyService()
public static TopologyService createTopologyServiceInstance()
public static void destroyTopologyServiceInstance(TopologyService service)
service
- The TopologyService instance to destroy. NOTE: The global
instance cannot be destroyed.public static java.lang.String[] getAvailableProviders()
public static TopologyProvider createProviderInstance(java.lang.String providerId) throws TopologyException
providerId
- the type of TopologyProvider to instantiate.
TopologyException
public static TopologyComparator createComparatorInstance(java.lang.String providerId) throws TopologyException
providerId
- the type of TopologyComparator to instantiate.
TopologyException
public static void setProperty(java.lang.String key, java.lang.String value)
key
- the lookup keyvalue
- the value to setpublic static java.lang.String getProperty(java.lang.String key)
key
- the lookup key
public static void registerConfigurationHandler(java.lang.String handlerId, java.lang.Object handler)
handlerId
- the handlerIdhandler
- a ConfigurationHandler instancepublic static void registerCorrelator(java.lang.String correlatorId, java.lang.Object correlator)
correlatorId
- the correlatorIdcorrelator
- a TopologyObjectCorrelator instancepublic static void registerProvider(java.lang.String providerId, java.lang.Class providerClass)
providerId
- the providerIdproviderClass
- a TopologyProvider classpublic static void registerComparator(java.lang.String providerId, java.lang.Class comparatorClass)
providerId
- the providerIdcomparatorClass
- a TopologyComparator classpublic static ConfigurationHandler[] getRegisteredConfigurationHandlers()
public static java.lang.String getConfigurationHandlerId(ConfigurationHandler handler)
handler
- the ConfigurationHandler instance
public static TopologyObjectCorrelator getRegisteredCorrelator(java.lang.String correlatorId)
correlatorId
- the correlatorId
public static void setLoggingOptions(boolean enable, java.lang.String logPath, java.util.logging.Level level) throws TopologyException
enable
- turns logging onlogPath
- specifies base path for log fileslevel
- specifies the logging level to be applied
TopologyException
public static void registerProviderRelationships(java.net.URL relationshipMapURL)
relationshipMapURL
- URL object that points to the XML file conforming to the
TopologyObjectCorrelator.xsd schema filepublic static RelationshipMetaInfo[] getRegisteredRelationships(java.lang.String objectTypeNamespace)
objectTypeNamespace
- the namespace
public static TopologyServiceLogger getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |