Class OMRSRepositoryConnector
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector
- All Implemented Interfaces:
org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent,org.odpi.openmetadata.frameworks.connectors.SecureConnectorExtension,org.odpi.openmetadata.frameworks.connectors.VirtualConnectorExtension,OMRSMetadataCollectionManager
public abstract class OMRSRepositoryConnector
extends org.odpi.openmetadata.frameworks.connectors.ConnectorBase
implements OMRSMetadataCollectionManager, org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent
The OMRSRepositoryConnector defines the interface for an OMRS Repository Connector. It is an abstract
class since not all the methods for OMRSMetadataCollectionManager are implemented.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.frameworks.auditlog.ComponentDescriptionReturn the component description that is used by this connector in the audit log.intReturn the maximum PageSizeReturns the metadata collection object that provides an OMRS abstraction of the metadata within a metadata repository.Return the unique id for this metadata collection.Return the metadata collection name of this repository connector.Return the name of the organization that runs/owns the server used to access the repository.Return the repository helper for this connector.Return the name of the repository where the metadata collection resides.Return the repository validator for this connector.Return the name of the server where the metadata collection resides.Return the descriptive string describing the type of the server.Return the userId that the local server should use when processing events and there is no external user driving the operation.voidsetAuditLog(org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Receive an audit log object that can be used to record audit log messages.voidsetMaxPageSize(int maxPageSize) Set up the maximum PageSizevoidsetMetadataCollectionId(String metadataCollectionId) Set up the unique id for this metadata collection.voidsetMetadataCollectionName(String metadataCollectionName) Explicitly set up the metadata collection name.voidsetOrganizationName(String organizationName) Set up the name of the organization that runs/owns the server used to access the repository.voidsetRepositoryHelper(OMRSRepositoryHelper repositoryHelper) Set up a repository helper object for the repository connector to use.voidsetRepositoryName(String repositoryName) Set up the name of the repository where the metadata collection resides.voidsetRepositoryValidator(OMRSRepositoryValidator repositoryValidator) Set up a repository validator for the repository connector to use.voidsetServerName(String serverName) Set up the name of the server where the metadata collection resides.voidsetServerType(String serverType) Set up the descriptive string describing the type of the server.voidsetServerUserId(String localServerUserId) Set up the userId that the local server should use when processing events and there is no external user driving the operation.voidvalidateRepositoryIsActive(String methodName) Throw a RepositoryErrorException if the connector is not active.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
disconnect, equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, start, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, setStatisticProperty, setStatisticTimestamp
-
Constructor Details
-
OMRSRepositoryConnector
public OMRSRepositoryConnector()Default constructor nothing to do
-
-
Method Details
-
setAuditLog
public void setAuditLog(org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Receive an audit log object that can be used to record audit log messages. The caller has initialized it with the correct component description and log destinations.- Specified by:
setAuditLogin interfaceorg.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent- Parameters:
auditLog- audit log object
-
getConnectorComponentDescription
public org.odpi.openmetadata.frameworks.auditlog.ComponentDescription getConnectorComponentDescription()Return the component description that is used by this connector in the audit log.- Specified by:
getConnectorComponentDescriptionin interfaceorg.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent- Returns:
- id, name, description, wiki page URL.
-
setRepositoryHelper
Set up a repository helper object for the repository connector to use.- Specified by:
setRepositoryHelperin interfaceOMRSMetadataCollectionManager- Parameters:
repositoryHelper- helper object for building and querying TypeDefs and metadata instances.
-
getRepositoryHelper
Return the repository helper for this connector.- Returns:
- helper object for building and querying TypeDefs and metadata instances.
-
setRepositoryValidator
Set up a repository validator for the repository connector to use.- Specified by:
setRepositoryValidatorin interfaceOMRSMetadataCollectionManager- Parameters:
repositoryValidator- validator object to check the validity of TypeDefs and metadata instances.
-
getRepositoryValidator
Return the repository validator for this connector.- Returns:
- validator object to check the validity of TypeDefs and metadata instances.
-
getRepositoryName
Return the name of the repository where the metadata collection resides.- Specified by:
getRepositoryNamein interfaceOMRSMetadataCollectionManager- Returns:
- String name
-
setRepositoryName
Set up the name of the repository where the metadata collection resides.- Specified by:
setRepositoryNamein interfaceOMRSMetadataCollectionManager- Parameters:
repositoryName- String name
-
getServerName
Return the name of the server where the metadata collection resides.- Specified by:
getServerNamein interfaceOMRSMetadataCollectionManager- Returns:
- String name
-
setServerName
Set up the name of the server where the metadata collection resides.- Specified by:
setServerNamein interfaceOMRSMetadataCollectionManager- Parameters:
serverName- String name
-
getServerType
Return the descriptive string describing the type of the server. This might be the name of the product, or similar identifier.- Specified by:
getServerTypein interfaceOMRSMetadataCollectionManager- Returns:
- String name
-
setServerType
Set up the descriptive string describing the type of the server. This might be the name of the product, or similar identifier.- Specified by:
setServerTypein interfaceOMRSMetadataCollectionManager- Parameters:
serverType- String server type
-
getOrganizationName
Return the name of the organization that runs/owns the server used to access the repository.- Specified by:
getOrganizationNamein interfaceOMRSMetadataCollectionManager- Returns:
- String name
-
setOrganizationName
Set up the name of the organization that runs/owns the server used to access the repository.- Specified by:
setOrganizationNamein interfaceOMRSMetadataCollectionManager- Parameters:
organizationName- String organization name
-
getServerUserId
Return the userId that the local server should use when processing events and there is no external user driving the operation.- Specified by:
getServerUserIdin interfaceOMRSMetadataCollectionManager- Returns:
- user id
-
setServerUserId
Set up the userId that the local server should use when processing events and there is no external user driving the operation.- Specified by:
setServerUserIdin interfaceOMRSMetadataCollectionManager- Parameters:
localServerUserId- string user id
-
getMetadataCollectionId
Return the unique id for this metadata collection.- Specified by:
getMetadataCollectionIdin interfaceOMRSMetadataCollectionManager- Returns:
- String unique Id
-
setMetadataCollectionId
Set up the unique id for this metadata collection.- Specified by:
setMetadataCollectionIdin interfaceOMRSMetadataCollectionManager- Parameters:
metadataCollectionId- String unique Id
-
getMetadataCollectionName
Return the metadata collection name of this repository connector. It defaults to the server name if not set up explicitly.- Returns:
- display name of the metadata collection.
-
setMetadataCollectionName
Explicitly set up the metadata collection name.- Parameters:
metadataCollectionName- display name of the metadata collection.
-
getMaxPageSize
public int getMaxPageSize()Return the maximum PageSize- Specified by:
getMaxPageSizein interfaceOMRSMetadataCollectionManager- Returns:
- maximum number of elements that can be retrieved on a request.
-
setMaxPageSize
public void setMaxPageSize(int maxPageSize) Set up the maximum PageSize- Specified by:
setMaxPageSizein interfaceOMRSMetadataCollectionManager- Parameters:
maxPageSize- maximum number of elements that can be retrieved on a request.
-
validateRepositoryIsActive
Throw a RepositoryErrorException if the connector is not active.- Parameters:
methodName- name of calling method- Throws:
RepositoryErrorException- repository connector has not started or has been disconnected.
-
getMetadataCollection
Returns the metadata collection object that provides an OMRS abstraction of the metadata within a metadata repository.- Specified by:
getMetadataCollectionin interfaceOMRSMetadataCollectionManager- Returns:
- OMRSMetadataInstanceStore metadata information retrieved from the metadata repository.
- Throws:
RepositoryErrorException- no metadata collection
-