This Connector will add a CI (Configuration Item) or a Relationship to a
centralized IT registry database. It depends upon IT registry for working
properly.
This Connector supports three modes:
CallReply
Iterator
Lookup
Field Summary
Fields inherited from class com.ibm.di.connector.Connector
findEntry(SearchCriteria searchCrit)
This will return an Entry (CI\Relationship) based on the conditions
specified in the Link Criteria of the Connector.
This standard method initializes the Connector with values present in its
Configuration panel. If database related parameters are not present in
the Connector's configuration, they are taken from the
#IT_REGISTRY_PROPERTIES_FILE file.
This method populates Output Map for CallReply mode and Input Map for
Iterator\Lookup mode. Depending upon the value of "Use IT registry"
parameter the attributes for a CI\Relationship are fetched from JAR or
the IT registry database.
This method is invoke for CallReply mode. In this mode the Connector will
be used together with an Init IT registry FC in the AssemblyLine. It
depends upon Init IT registry FC for statically sharing a book - an
object holding needed information, which it looks up using a 'Book Name'
parameter. In this mode the Connector can perform the following
operations:
create: add a CI or Relationship. If Init IT registry FC has set a
Refresh flag, then the Connector will first remove all entries in the IT
registry database which are older that a given timestamp. The timestamp
is detemined by the Init IT registry FC and made available through the
shared book. To add a CI the Connector should satisfy at least one of its
Naming Rules. A naming rule is a specific list of identifying attributes
that should be passed to the IT registry for a CI to be successfully
registered in its database (please refer to the Tivoli Common Data Model
documentation for more details). The supported attributes for a CI
(identifying and non-identifying) can be discovered in Output Map of the
Connector. After registering a CI the Connector will return a $id
attribute - a wrapper of the actual GUID returned by the IT registry. It
could be latter passed to another IT registry Connector for registering
Relationships. However, the value of the wrapped GUID cannot and should
not be extracted by users. To add a Relationship the &id-s of two CIs
should be passed for the 'source' and 'target' attributes in the Output
Map of the Connector.
modify: currently this operation is not supported neither for CIs nor
Relationships.
delete: delete a CI\Relationship. To delete a Relationship the $id-s
of the 'source' and 'target' CIs should be supplied.
the returned entry object. It contains an attribute $id which
will hold a wrapper of the GUID returned by the IT registry upon
registering a CI. For the rest of the cases (update and delete)
it is null.
Throws:
Exception - If Book Name is not supplied. If MSS Guid is not supplied. If
operation is not supplied.
This is preparation method for Iterator mode. This will fetch values of
CI\Relationship from the IT registry database. The values will be
selected based on 'Attribute Filter' parameter or 'Date Filter'
parameter. The 'MSS Name' parameter determines the artifacts for whose
MSSs should be searched. All CIs\Relationships will be fetched if no
value is supplied in either of the above parameters.
This will return an Entry (CI\Relationship) based on the conditions
specified in the Link Criteria of the Connector. The returned attributes
will comply with the Common Data Model. In case more than one entry is
found 'On Multiple Entries' hook should be enabled.
The search criteria should use logical AND conditions between the
separate criterion and the comparison should be "equals". Otherwise, an
Exception will be thrown.
Returns the types of CIs/Relationships available for this Connector.
Depending on its Configuration we can get the names of all supported CIs,
or of all Relationships.
Returns the version of the CDM that this Connector 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>'.
Returns the Management Software Systems (MSSs) present in IT registry
database. This will help populate 'MSS Guid' parameter and is applicable
only for Lookup and Iterator mode.
Returns:
a HashMap of MSSs. For each entry the key is either the MSSName
of the MSS or a combination of its identifying attributes (the
format is [ManufacturerName, ProductName, Hostname], and the
value is a HashMap containing the full information for the
MSS.MSS.