Class OMRSRepositoryServicesInstance
java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
org.odpi.openmetadata.repositoryservices.rest.services.OMRSRepositoryServicesInstance
OMRSRepositoryServicesInstance caches references to OMRS objects for a specific server
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
invalidParameterHandler, maxPageSize, securityVerifier, serverName, serviceName
-
Constructor Summary
ConstructorDescriptionOMRSRepositoryServicesInstance
(String localServerName, OMRSAuditLog masterAuditLog, OMRSRepositoryConnector localRepositoryConnector, OMRSRepositoryConnector enterpriseRepositoryConnector, Connection remoteEnterpriseTopicConnection, OMRSMetadataHighwayManager metadataHighwayManager, String localServerURL, String serviceName, AuditLog auditLog, int maxPageSize) Set up the repository connectors that will service the REST Calls. -
Method Summary
Modifier and TypeMethodDescriptionReturn the audit log destination for this server.Return the enterprise metadata collection for this instance.Return the local metadata collection for this instance.Return the URL root for this server.Return the master audit log for audit log services.Return the metadata highway managerReturn the connection to the remote enterprise topic connection.Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
getInvalidParameterHandler, getServerName, getServiceInstanceStatus, getServiceName, setMaxPageSize, setSecurityVerifier, setServerName, setServiceInstanceStatus, shutdown
-
Constructor Details
-
OMRSRepositoryServicesInstance
public OMRSRepositoryServicesInstance(String localServerName, OMRSAuditLog masterAuditLog, OMRSRepositoryConnector localRepositoryConnector, OMRSRepositoryConnector enterpriseRepositoryConnector, Connection remoteEnterpriseTopicConnection, OMRSMetadataHighwayManager metadataHighwayManager, String localServerURL, String serviceName, AuditLog auditLog, int maxPageSize) Set up the repository connectors that will service the REST Calls. If the requested repository connector is null when a REST calls is received, the request is rejected.- Parameters:
localServerName
- name of this servermasterAuditLog
- audit log at the top of the treelocalRepositoryConnector
- link to the repository responsible for servicing the REST calls to the local repositoryenterpriseRepositoryConnector
- link to the repository responsible for servicing the REST calls to the enterpriseremoteEnterpriseTopicConnection
- connection object to pass to client to enable it to listen on enterprise topic events - may be nullmetadataHighwayManager
- manager of the cohort managerslocalServerURL
- URL of the local serverserviceName
- name of this serviceauditLog
- logging destinationmaxPageSize
- max number of results to return on single request.
-
-
Method Details
-
getMasterAuditLog
Return the master audit log for audit log services.- Returns:
- audit log at the top of the tree
-
getLocalMetadataCollection
Return the local metadata collection for this instance.- Returns:
- OMRSMetadataCollection object
-
getEnterpriseMetadataCollection
Return the enterprise metadata collection for this instance.- Returns:
- OMRSMetadataCollection object
-
getRemoteEnterpriseOMRSTopicConnection
Return the connection to the remote enterprise topic connection. This may be null, but if it is enabled in the server's configuration, this call is ued to return the configured connection object to a remote client, so it can listen for enterprise topic events.- Returns:
- connection or null
-
getMetadataHighwayManager
Return the metadata highway manager- Returns:
- OMRSMetadataHighwayManager object
-
getLocalServerURL
Return the URL root for this server.- Returns:
- URL
-
getAuditLog
Return the audit log destination for this server.- Returns:
- auditLog
-