Class EgeriaExtractor
java.lang.Object
org.odpi.openmetadata.adapters.connectors.egeriainfrastructure.extractor.EgeriaExtractor
EgeriaExtractor extracts information from the Egeria runtimes. It covers both the OMAG Server Platform and the
OMAG Servers.
-
Constructor Summary
ConstructorsConstructorDescriptionEgeriaExtractor(String platformURLRoot, String platformName, String serverOfInterest, String clientUserId) Constructor -
Method Summary
Modifier and TypeMethodDescriptionActivate the Open Metadata and Governance (OMAG) server using the configuration document stored for this server.activateServer(String serverName) Activate the Open Metadata and Governance (OMAG) server using the configuration document stored for this server.voidaddOpenMetadataArchive(org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection connection) Add a new open metadata archive to running repository.voidaddOpenMetadataArchiveContent(org.odpi.openmetadata.repositoryservices.connectors.stores.archivestore.properties.OpenMetadataArchive openMetadataArchive) Add a new open metadata archive to running repository.voidaddOpenMetadataArchiveFile(String fileName) Add a new open metadata archive to running repository.booleanconnectToCohort(String cohortName) A new server needs to register the metadataCollectionId for its metadata repository with the other servers in the open metadata repository.booleanconnectToCohort(String userId, String cohortName) A new server needs to register the metadataCollectionId for its metadata repository with the other servers in the open metadata repository.voiddeployOMAGServerConfig(String serverName, String destinationPlatformURLRoot) Push the configuration for the server to another OMAG Server Platform.booleandisconnectFromCohort(String cohortName) Disconnect communications from a specific cohort.booleandisconnectFromCohort(String userId, String cohortName) Disconnect communications from a specific cohort.List<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService>Retrieve a list of the access services registered on the platformorg.odpi.openmetadata.adminservices.configuration.properties.OMAGServerConfigReturn the configuration used for the current active instance of the server.org.odpi.openmetadata.serveroperations.properties.ServerServicesStatusReturn the status of a running server (use platform services to find out if the server is running).Retrieve a list of the active services on a serverSet<org.odpi.openmetadata.adminservices.configuration.properties.OMAGServerConfig>Return all the OMAG Server configurations that are stored on this platform.List<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService>Retrieve a list of the services known on the platformgetConfigurationProperties(String connectorName) Retrieve the configuration properties of the named connector.org.odpi.openmetadata.frameworks.connectors.properties.beans.ConnectorTypegetConnectorType(String connectorProviderClassName) Return the connector type for the requested connector provider after validating that the connector provider is available on the OMAGServerPlatform's class path.List<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService>Retrieve a list of the engine services registered on the platformList<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService>Retrieve a list of the integration services registered on the platformorg.odpi.openmetadata.adminservices.configuration.properties.OMAGServerConfigReturn the complete set of configuration properties in use by the server.org.odpi.openmetadata.adminservices.configuration.properties.OMAGServerConfiggetOMAGServerConfig(String serverName) Return the complete set of configuration properties in use by the server.Return the latest status information for the platform.Return the latest status information about a particular service.org.odpi.openmetadata.serveroperations.properties.ServerStatusRetrieve the server statusList<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService>Retrieve a list of the view services registered on the platformvoidpublishOpenLineageEvent(String event) Pass an open lineage event to the integration service.voidrefreshConnector(String connectorName) Issue a refresh() request on a specific connectorvoidIssue a refresh() request on a connector running in the integration daemon.voidRequest that all governance engines refresh their configuration by calling the metadata server.voidrefreshEngineConfig(String governanceEngineName) Request that the governance engine refresh its configuration by calling the metadata server.voidrefreshIntegrationGroupConfig(String integrationGroupName) Request that the integration group refresh its configuration by calling the metadata server.voidrestartConnector(String connectorName) Issue a restart() request on a specific connectorvoidIssue a restart() request on a connector running in the integration daemon.voidTemporarily shutdown all running servers.voidShutdown any active servers and unregister them from any cohorts.voidPermanently deactivate any open metadata and governance services and unregister from any cohorts.voidshutdownAndUnregisterServer(String serverName) Permanently deactivate any open metadata and governance services and unregister from any cohorts.voidTemporarily deactivate any open metadata and governance services.voidshutdownServer(String serverName) Temporarily deactivate any open metadata and governance services.booleanunregisterFromCohort(String cohortName) Unregister from a specific cohort and disconnect from cohort communications.booleanunregisterFromCohort(String userId, String cohortName) Unregister from a specific cohort and disconnect from cohort communications.voidupdateConfigurationProperties(String connectorName, boolean isMergeUpdate, Map<String, Object> configurationProperties) Update the configuration properties of the connectors, or specific connector if a connector name is supplied.voidupdateConnectorConnection(String connectorName, org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection connection) Update the configuration properties of the connectors, or specific connector if a connector name is supplied.voidupdateEndpointNetworkAddress(String connectorName, String networkAddress) Update the configuration properties of the connectors, or specific connector if a connector name is supplied.
-
Constructor Details
-
EgeriaExtractor
public EgeriaExtractor(String platformURLRoot, String platformName, String serverOfInterest, String clientUserId) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException Constructor- Parameters:
platformURLRoot- platform URL rootplatformName- name of the platformserverOfInterest- optional server nameclientUserId- userId to use for calls to the- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameterorg.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid parameterorg.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException
-
-
Method Details
-
getPlatformReport
Return the latest status information for the platform.- Returns:
- platform report
- Throws:
Exception- a variety of exceptions from the different clients
-
getConnectorType
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ConnectorType getConnectorType(String connectorProviderClassName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return the connector type for the requested connector provider after validating that the connector provider is available on the OMAGServerPlatform's class path. This method is for tools that are configuring connectors into an Egeria server. It does not validate that the connector will load and initialize.- Parameters:
connectorProviderClassName- name of the connector provider class- Returns:
- ConnectorType bean or exceptions that occur when trying to create the connector
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getAccessServices
public List<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService> getAccessServices() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionRetrieve a list of the access services registered on the platform- Returns:
- List of access services
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getEngineServices
public List<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService> getEngineServices() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionRetrieve a list of the engine services registered on the platform- Returns:
- List of engine services
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getViewServices
public List<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService> getViewServices() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionRetrieve a list of the view services registered on the platform- Returns:
- List of view services
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getIntegrationServices
public List<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService> getIntegrationServices() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionRetrieve a list of the integration services registered on the platform- Returns:
- List of integration services
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getAllServices
public List<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService> getAllServices() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionRetrieve a list of the services known on the platform- Returns:
- List of common services
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
activateServer
public String activateServer(String serverName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Activate the Open Metadata and Governance (OMAG) server using the configuration document stored for this server.- Parameters:
serverName- server to start- Returns:
- success message
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the server.
-
activateServer
public String activateServer() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionActivate the Open Metadata and Governance (OMAG) server using the configuration document stored for this server.- Returns:
- success message
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the server.
-
shutdownServer
public void shutdownServer(String serverName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Temporarily deactivate any open metadata and governance services.- Parameters:
serverName- server to start- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the platform.
-
shutdownServer
public void shutdownServer() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionTemporarily deactivate any open metadata and governance services.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the platform.
-
shutdownAllServers
public void shutdownAllServers() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionTemporarily shutdown all running servers.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the platform.
-
shutdownAndUnregisterServer
public void shutdownAndUnregisterServer(String serverName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Permanently deactivate any open metadata and governance services and unregister from any cohorts.- Parameters:
serverName- server to start- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the platform.
-
shutdownAndUnregisterServer
public void shutdownAndUnregisterServer() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionPermanently deactivate any open metadata and governance services and unregister from any cohorts.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the platform.
-
shutdownAndUnregisterAllServers
public void shutdownAndUnregisterAllServers() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionShutdown any active servers and unregister them from any cohorts.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the platform.
-
connectToCohort
public boolean connectToCohort(String userId, String cohortName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException A new server needs to register the metadataCollectionId for its metadata repository with the other servers in the open metadata repository. It only needs to do this once and uses a timestamp to record that the registration event has been sent. If the server has already registered in the past, it sends a reregistration request.- Parameters:
userId- calling usercohortName- name of cohort- Returns:
- boolean to indicate that the request has been issued. If false it is likely that the cohort name is not known
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the supplied parameters caused a problemorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem communicating with the remote server.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to perform the operation requested
-
disconnectFromCohort
public boolean disconnectFromCohort(String userId, String cohortName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Disconnect communications from a specific cohort.- Parameters:
userId- calling usercohortName- name of cohort- Returns:
- boolean flag to indicate success.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the supplied parameters caused a problemorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem communicating with the remote server.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to perform the operation requested
-
unregisterFromCohort
public boolean unregisterFromCohort(String userId, String cohortName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Unregister from a specific cohort and disconnect from cohort communications.- Parameters:
userId- calling usercohortName- name of cohort- Returns:
- boolean flag to indicate success.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the supplied parameters caused a problemorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem communicating with the remote server.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to perform the operation requested
-
getAllServerConfigurations
public Set<org.odpi.openmetadata.adminservices.configuration.properties.OMAGServerConfig> getAllServerConfigurations() throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterExceptionReturn all the OMAG Server configurations that are stored on this platform.- Returns:
- the OMAG Server configurations that are stored on this platform
- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid parameter.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- unusual state in the admin server.
-
deployOMAGServerConfig
public void deployOMAGServerConfig(String serverName, String destinationPlatformURLRoot) throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException Push the configuration for the server to another OMAG Server Platform.- Parameters:
serverName- local server namedestinationPlatformURLRoot- location of the platform where the config is to be deployed to- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- something went wrong with the REST call stack.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid serverName or destinationPlatform parameter.
-
getOMAGServerConfig
public org.odpi.openmetadata.adminservices.configuration.properties.OMAGServerConfig getOMAGServerConfig(String serverName) throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException Return the complete set of configuration properties in use by the server.- Parameters:
serverName- local server name- Returns:
- OMAGServerConfig properties
- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid serverName parameter.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- something went wrong with the REST call stack.
-
getOMAGServerConfig
public org.odpi.openmetadata.adminservices.configuration.properties.OMAGServerConfig getOMAGServerConfig() throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorExceptionReturn the complete set of configuration properties in use by the server.- Returns:
- OMAGServerConfig properties
- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid serverName parameter.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- something went wrong with the REST call stack.
-
getServerStatus
public org.odpi.openmetadata.serveroperations.properties.ServerStatus getServerStatus() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionRetrieve the server status- Returns:
- The server status
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getActiveConfiguration
public org.odpi.openmetadata.adminservices.configuration.properties.OMAGServerConfig getActiveConfiguration() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionReturn the configuration used for the current active instance of the server. Null is returned if the server instance is not running.- Returns:
- configuration properties used to initialize the server or null if not running
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the platform.
-
getActiveServerStatus
public org.odpi.openmetadata.serveroperations.properties.ServerServicesStatus getActiveServerStatus() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionReturn the status of a running server (use platform services to find out if the server is running).- Returns:
- status of the server
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the platform.
-
getActiveServices
public List<String> getActiveServices() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionRetrieve a list of the active services on a server- Returns:
- List of service names
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
addOpenMetadataArchiveFile
public void addOpenMetadataArchiveFile(String fileName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Add a new open metadata archive to running repository.- Parameters:
fileName- name of the open metadata archive file.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the platform.
-
addOpenMetadataArchive
public void addOpenMetadataArchive(org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection connection) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Add a new open metadata archive to running repository.- Parameters:
connection- connection for the open metadata archive.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the platform.
-
addOpenMetadataArchiveContent
public void addOpenMetadataArchiveContent(org.odpi.openmetadata.repositoryservices.connectors.stores.archivestore.properties.OpenMetadataArchive openMetadataArchive) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Add a new open metadata archive to running repository.- Parameters:
openMetadataArchive- openMetadataArchive for the open metadata archive.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- invalid parameter.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- unusual state in the platform.
-
getServerReport
Return the latest status information about a particular service.- Returns:
- server report
- Throws:
Exception- a variety of exceptions from the different clients
-
getConfigurationProperties
public Map<String,Object> getConfigurationProperties(String connectorName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the configuration properties of the named connector.- Parameters:
connectorName- name of a specific connector or null for all connectors- Returns:
- property map
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the connector name is not recognizedorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem detected by the integration daemon
-
updateConfigurationProperties
public void updateConfigurationProperties(String connectorName, boolean isMergeUpdate, Map<String, Object> configurationProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionUpdate the configuration properties of the connectors, or specific connector if a connector name is supplied.- Parameters:
connectorName- name of a specific connector or null for all connectorsisMergeUpdate- should the properties be merged into the existing properties or replace themconfigurationProperties- new configuration properties- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the connector name is not recognizedorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
-
updateEndpointNetworkAddress
public void updateEndpointNetworkAddress(String connectorName, String networkAddress) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the configuration properties of the connectors, or specific connector if a connector name is supplied.- Parameters:
connectorName- name of a specific connector or null for all connectorsnetworkAddress- new address- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the connector name is not recognizedorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
-
updateConnectorConnection
public void updateConnectorConnection(String connectorName, org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection connection) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the configuration properties of the connectors, or specific connector if a connector name is supplied.- Parameters:
connectorName- name of a specific connector or null for all connectorsconnection- new address- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the connector name is not recognizedorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
-
refreshConnector
public void refreshConnector(String connectorName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a refresh() request on a specific connector- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem detected by the integration daemon
-
refreshConnectors
public void refreshConnectors() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionIssue a refresh() request on a connector running in the integration daemon.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem detected by the integration daemon
-
restartConnector
public void restartConnector(String connectorName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a restart() request on a specific connector- Parameters:
connectorName- connector- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem detected by the integration daemon
-
restartConnectors
public void restartConnectors() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionIssue a restart() request on a connector running in the integration daemon.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem detected by the integration daemon
-
refreshIntegrationGroupConfig
public void refreshIntegrationGroupConfig(String integrationGroupName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Request that the integration group refresh its configuration by calling the metadata server. This request is useful if the metadata server has an outage, particularly while the integration daemon is initializing. This request just ensures that the latest configuration is in use.- Parameters:
integrationGroupName- qualifiedName of the integration group to target- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem detected by the integration group.
-
publishOpenLineageEvent
public void publishOpenLineageEvent(String event) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Pass an open lineage event to the integration service. It will pass it on to the integration connectors that have registered a listener for open lineage events.- Parameters:
event- open lineage event to publish.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the caller is not authorized to call the serviceorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem processing the request
-
refreshEngineConfig
public void refreshEngineConfig(String governanceEngineName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Request that the governance engine refresh its configuration by calling the metadata server. This request is useful if the metadata server has an outage, particularly while the governance server is initializing. This request just ensures that the latest configuration is in use.- Parameters:
governanceEngineName- qualifiedName of the governance engine to target- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem detected by the governance engine.
-
refreshEngineConfig
public void refreshEngineConfig() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionRequest that all governance engines refresh their configuration by calling the metadata server. This request is useful if the metadata server has an outage, particularly while the governance server is initializing. This request just ensures that the latest configuration is in use.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem detected by the governance engine.
-
connectToCohort
public boolean connectToCohort(String cohortName) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException A new server needs to register the metadataCollectionId for its metadata repository with the other servers in the open metadata repository. It only needs to do this once and uses a timestamp to record that the registration event has been sent. If the server has already registered in the past, it sends a reregistration request.- Parameters:
cohortName- name of cohort- Returns:
- boolean to indicate that the request has been issued. If false it is likely that the cohort name is not known
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException- one of the supplied parameters caused a problemorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- there is a problem communicating with the remote server.org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException- the user is not authorized to perform the operation requested
-
disconnectFromCohort
public boolean disconnectFromCohort(String cohortName) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException Disconnect communications from a specific cohort.- Parameters:
cohortName- name of cohort- Returns:
- boolean flag to indicate success.
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException- one of the supplied parameters caused a problemorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- there is a problem communicating with the remote server.org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException- the user is not authorized to perform the operation requested
-
unregisterFromCohort
public boolean unregisterFromCohort(String cohortName) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException Unregister from a specific cohort and disconnect from cohort communications.- Parameters:
cohortName- name of cohort- Returns:
- boolean flag to indicate success.
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException- one of the supplied parameters caused a problemorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- there is a problem communicating with the remote server.org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException- the user is not authorized to perform the operation requested
-