Class OMRSOperationalServices
java.lang.Object
org.odpi.openmetadata.repositoryservices.admin.OMRSOperationalServices
OMRSOperationalServices provides the OMAG Server with access to the OMRS capabilities.
This includes managing the local metadata repository, connecting and disconnecting from the metadata
highway and supporting administrative
actions captured through the OMAG REST interface.
Examples of the types of capabilities offered by the OMRS Manager include:
- Initialize and Shutdown the OMRS
- See the state of the cohort
- See the state of the connectors
- View the audit log
- Load new connector JARs
- Connect/disconnect from the metadata highway
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOpenMetadataArchive
(String serverName, Connection openMetadataArchiveConnection, String archiveSource) Add an open metadata archive to the local repository.void
addOpenMetadataArchive
(String serverName, OpenMetadataArchiveStore openMetadataArchive, String archiveSource) Add an open metadata archive to the local repository.boolean
disconnect
(boolean permanent) Shutdown the Open Metadata Repository Services.getAuditLog
(int componentId, ComponentDevelopmentStatus componentDevelopmentStatus, String componentName, String componentDescription, String componentWikiURL) Create an audit log for an external component.Return the enterprise connector manager.getEnterpriseOMRSRepositoryConnector
(String callingServiceName) Create repository connector for an access service.Return the Enterprise OMRS Topic Connector.void
initializeAuditLog
(RepositoryServicesConfig repositoryServicesConfig, String serverTypeClassification) Initialize the OMRS component for the Open Metadata Repository Services (OMRS) for a basic server.void
initializeCohortMember
(RepositoryServicesConfig repositoryServicesConfig) Initialize the OMRS component for the Open Metadata Repository Services (OMRS).void
initializeGovernanceServer
(RepositoryServicesConfig repositoryServicesConfig) Initialize the OMRS component for the Open Metadata Repository Services (OMRS).void
initializeViewServer
(RepositoryServicesConfig repositoryServicesConfig) Initialize the OMRS component for the Open Metadata Repository Services (OMRS).void
setSecurityVerifier
(OpenMetadataServerSecurityVerifier securityVerifier) Set up a new security verifier (the handler runs with a default verifier until this method is called).void
The local repository (if configured) has been started while the archives were loaded and the cohorts initialized.
-
Constructor Details
-
OMRSOperationalServices
public OMRSOperationalServices(String localServerName, String localServerType, String organizationName, String localServerUserId, String localServerPassword, String localServerURL, int maxPageSize) Constructor used at server startup.- Parameters:
localServerName
- name of the local serverlocalServerType
- type of the local serverorganizationName
- name of the organization that owns the local serverlocalServerUserId
- user id for this server to use in outbound REST calls and internal calls when processing inbound messages.localServerPassword
- password for this server to use on outbound REST calls.localServerURL
- URL root for this server.maxPageSize
- maximum number of records that can be requested on the pageSize parameter
-
-
Method Details
-
getEnterpriseOMRSTopicConnector
Return the Enterprise OMRS Topic Connector.- Returns:
- OMRSTopicConnector for use by the Conformance Test Services or Access Services.
-
getEnterpriseOMRSRepositoryConnector
Create repository connector for an access service.- Parameters:
callingServiceName
- name of the access service name.- Returns:
- a repository connector that is able to retrieve and maintain information from all connected repositories.
-
getEnterpriseConnectorManager
Return the enterprise connector manager. This is used by the conformance suite to get access to connectors to registered members of the cohorts that this server is connected to. That way it can exercise their APIs and compare them with the events being received over the cohort topic. This method is called after the OMRS is initialized. The enterprise connector manager is created whether there are OMASs activated or not.- Returns:
- enterprise connector manager.
-
getAuditLog
public OMRSAuditLog getAuditLog(int componentId, ComponentDevelopmentStatus componentDevelopmentStatus, String componentName, String componentDescription, String componentWikiURL) Create an audit log for an external component.- Parameters:
componentId
- numerical identifier for the componentcomponentDevelopmentStatus
- development statuscomponentName
- display name for the componentcomponentDescription
- description of the componentcomponentWikiURL
- link to more information- Returns:
- new audit log object
-
initializeAuditLog
public void initializeAuditLog(RepositoryServicesConfig repositoryServicesConfig, String serverTypeClassification) Initialize the OMRS component for the Open Metadata Repository Services (OMRS) for a basic server. By that it means, for any type of server that is not a metadata server. In a basic server, only the audit log is enabled.- Parameters:
repositoryServicesConfig
- current configuration valuesserverTypeClassification
- classification of server that will drive initialization
-
initializeCohortMember
public void initializeCohortMember(RepositoryServicesConfig repositoryServicesConfig) throws RepositoryErrorException Initialize the OMRS component for the Open Metadata Repository Services (OMRS). The configuration is taken as is. Any configuration errors are reported as exceptions.- Parameters:
repositoryServicesConfig
- current configuration values- Throws:
RepositoryErrorException
- there is a problem accessing an open metadata archive
-
startOutboundEvents
public void startOutboundEvents()The local repository (if configured) has been started while the archives were loaded and the cohorts initialized. During this time, outbound repository events have been buffered. Calling start() releases these buffered events into the cohort(s). -
initializeGovernanceServer
Initialize the OMRS component for the Open Metadata Repository Services (OMRS). The configuration is taken as is. Any configuration errors are reported as exceptions.- Parameters:
repositoryServicesConfig
- current configuration values
-
initializeViewServer
Initialize the OMRS component for the Open Metadata Repository Services (OMRS). The configuration is taken as is. Any configuration errors are reported as exceptions.- Parameters:
repositoryServicesConfig
- current configuration values
-
setSecurityVerifier
Set up a new security verifier (the handler runs with a default verifier until this method is called). The security verifier provides authorization checks for access and maintenance changes to open metadata. Authorization checks are enabled through the OpenMetadataServerSecurityConnector.- Parameters:
securityVerifier
- new security verifier
-
addOpenMetadataArchive
public void addOpenMetadataArchive(String serverName, Connection openMetadataArchiveConnection, String archiveSource) throws InvalidParameterException, RepositoryErrorException Add an open metadata archive to the local repository.- Parameters:
serverName
- name of called serveropenMetadataArchiveConnection
- connection to the archivearchiveSource
- descriptive name of the archive source- Throws:
InvalidParameterException
- the archive resource is not foundRepositoryErrorException
- there is a problem with the archive manager
-
addOpenMetadataArchive
public void addOpenMetadataArchive(String serverName, OpenMetadataArchiveStore openMetadataArchive, String archiveSource) throws InvalidParameterException, RepositoryErrorException Add an open metadata archive to the local repository.- Parameters:
serverName
- name of called serveropenMetadataArchive
- content the archivearchiveSource
- descriptive name of the archive source- Throws:
InvalidParameterException
- the archive resource is not foundRepositoryErrorException
- there is a problem with the archive manager
-
disconnect
public boolean disconnect(boolean permanent) Shutdown the Open Metadata Repository Services.- Parameters:
permanent
- boolean flag indicating whether this server permanently shutting down or not- Returns:
- boolean indicated whether the disconnect was successful.
-