Package com.ibm.di.fc.itregistry
Class InitITRegistryFC
- java.lang.Object
-
- com.ibm.di.fc.Function
-
- com.ibm.di.fc.itregistry.InitITRegistryFC
-
- All Implemented Interfaces:
FunctionInterface
,VersionInfoInterface
public class InitITRegistryFC extends Function
This Component initializes a connection to the IT registry and registers a Management Software System(MSS) in the IT registry database. It also returns the GUID with which MSS has got registered wrapped as aConfigurationItemId
, thus preventing the user to see its content, but allowing its usage by the other IT registry Components.
-
-
Constructor Summary
Constructors Constructor Description InitITRegistryFC()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
checkDbConnection()
Checks if with the currently configured properties, a connection to the IT registry database can be established.java.lang.String
getCdmVersion()
Returns the version of the CDM that this component is using.java.lang.String
getDbUsername()
This method returns the username for connecting to the UT registry database used by the Connector.java.lang.String
getJdbcDriver()
This method returns the JDBC Driver used by the Connector.java.lang.String
getJdbcUrl()
This method returns the JDBC Url used by the Connector.java.lang.String
getVersion()
Version information.void
initialize(java.lang.Object obj)
Called once to initialize the Function Component.java.lang.Object
perform(java.lang.Object obj)
The FC receives the information about MSS data either from the configuration panel or from its Output Map and registers the MSS in the IT registry.java.lang.Object
querySchema(java.lang.Object input)
This method displays the attributes belonging to the MSS class.void
terminate()
This method frees any resources allocated by the Component.-
Methods inherited from class com.ibm.di.fc.Function
debug, getConfiguration, getContext, getDebug, getLog, getParam, getRSInterface, getUI, initialize, logmsg, setConfiguration, setContext, setDebug, setLog, setParam, setRSInterface, updateSchema, verifyInitialized
-
-
-
-
Method Detail
-
initialize
public void initialize(java.lang.Object obj) throws java.lang.Exception
Called once to initialize the Function Component.- Specified by:
initialize
in interfaceFunctionInterface
- Overrides:
initialize
in classFunction
- Parameters:
obj
- ignored.- Throws:
java.lang.Exception
- if an error occurs.
-
perform
public java.lang.Object perform(java.lang.Object obj) throws java.lang.Exception
The FC receives the information about MSS data either from the configuration panel or from its Output Map and registers the MSS in the IT registry. Also it opens a IT registry book and fill the registration information in an IT registry Book and shares it statically.- Parameters:
obj
- the work entry passed to the FC.- Returns:
- an empty Entry object.
- Throws:
java.lang.Exception
- if a problem occurs.
-
getJdbcUrl
public java.lang.String getJdbcUrl()
This method returns the JDBC Url used by the Connector.- Returns:
- a JDBC Url.
-
getJdbcDriver
public java.lang.String getJdbcDriver()
This method returns the JDBC Driver used by the Connector.- Returns:
- a JDBC Driver.
-
getDbUsername
public java.lang.String getDbUsername()
This method returns the username for connecting to the UT registry database used by the Connector.- Returns:
- a database username.
-
querySchema
public java.lang.Object querySchema(java.lang.Object input) throws java.lang.Exception
This method displays the attributes belonging to the MSS class. For a source of this meta-data it uses either a local jar file or meta-data calls to an IT registry system (depending on its configuration).- Specified by:
querySchema
in interfaceFunctionInterface
- Overrides:
querySchema
in classFunction
- Parameters:
input
- entry object- Returns:
- null, since this Components has itslf populated the Schemas.
- Throws:
java.lang.Exception
- if a problem occurs.- See Also:
Entry
,Vector
-
getVersion
public java.lang.String getVersion()
Version information.- Returns:
- version information
-
terminate
public void terminate() throws java.lang.Exception
This method frees any resources allocated by the Component.- Specified by:
terminate
in interfaceFunctionInterface
- Overrides:
terminate
in classFunction
- Throws:
java.lang.Exception
- an exception is thrown if this method fails
-
checkDbConnection
public java.lang.String checkDbConnection()
Checks if with the currently configured properties, a connection to the IT registry database can be established.- Returns:
- if the connection was established successfully null is returned, otherwise the method returns a String containing the exception's text.
-
getCdmVersion
public java.lang.String getCdmVersion() throws java.lang.Exception
Returns the version of the CDM that this component is using. depending on its configuration this can be either the version of CDM that the IT registry is using or the version of the CDM meta-data stored in the locally used jar file.- Returns:
- the CDM version, with format '<version>.<release>.<modifier>'.
- Throws:
java.lang.Exception
- if a problem occurs.
-
-