public interface OMAGServerAdministration
There are four types of operations supported by OMAGServerAdministration:
| Modifier and Type | Method and Description |
|---|---|
void |
activateWithStoredConfig(String userId,
String serverName)
Activate the open metadata and governance services using the stored configuration information.
|
void |
activateWithSuppliedConfig(String userId,
String serverName,
OMAGServerConfig configuration)
Activate the open metadata and governance services using the supplied configuration
document.
|
void |
deactivatePermanently(String userId,
String serverName)
Permanently deactivate any open metadata and governance services and unregister from
any cohorts.
|
void |
deactivateTemporarily(String userId,
String serverName)
Temporarily deactivate any open metadata and governance services.
|
void |
disableAccessServices(String userId,
String serverName)
Disable the access services.
|
void |
disableCohortRegistration(String userId,
String serverName,
String cohortName)
Unregister this server from an open metadata repository cohort.
|
void |
enableAccessServices(String userId,
String serverName,
Map<String,Object> accessServiceOptions)
Enable all access services that are installed into this server.
|
void |
enableCohortRegistration(String userId,
String serverName,
String cohortName,
Map<String,Object> additionalProperties)
Enable registration of server to an open metadata repository cohort.
|
OMAGServerConfig |
getCurrentConfiguration(String userId,
String serverName)
Return the complete set of configuration properties in use by the server.
|
String |
getServerOrigin()
Return the origin of this server implementation.
|
void |
setAccessServicesConfig(String userId,
String serverName,
List<AccessServiceConfig> accessServicesConfig)
Set up the configuration for all of the open metadata access services (OMASs).
|
void |
setCohortConfig(String userId,
String serverName,
String cohortName,
CohortConfig cohortConfig)
Set up the configuration properties for a cohort.
|
void |
setEnterpriseAccessConfig(String userId,
String serverName,
EnterpriseAccessConfig enterpriseAccessConfig)
Set up the configuration that controls the enterprise repository services.
|
void |
setEventBus(String userId,
String serverName,
String connectorProvider,
String topicURLRoot,
Map<String,Object> additionalProperties)
Set up the default event bus for embedding in event-driven connector.
|
void |
setGraphLocalRepository(String userId,
String serverName)
Set up a graph store as the local repository.
|
void |
setInMemLocalRepository(String userId,
String serverName)
Set up an in memory local repository.
|
void |
setLocalRepositoryConfig(String userId,
String serverName,
LocalRepositoryConfig localRepositoryConfig)
Set up the configuration for the local repository.
|
void |
setLocalRepositoryEventMapper(String userId,
String serverName,
Connection localRepositoryEventMapper)
Provide the connection to the local repository's event mapper if needed.
|
void |
setLocalRepositoryEventMapper(String userId,
String serverName,
String connectorProvider,
String eventSource,
Map<String,Object> additionalProperties)
Provide the connection to the local repository's event mapper if needed.
|
void |
setMaxPageSize(String userId,
String serverName,
int maxPageSize)
Set an upper limit in the page size that can be requested on a REST call to the server.
|
void |
setNoRepositoryMode(String userId,
String serverName)
Remove all configuration for a local repository.
|
void |
setOrganizationName(String userId,
String serverName,
String organizationName)
Set up the name of the organization that is running this server.
|
void |
setRepositoryProxyConnection(String userId,
String serverName,
Connection repositoryProxyConnection)
Provide the connection to the local repository - used when the local repository mode is set to repository proxy.
|
void |
setRepositoryProxyConnection(String userId,
String serverName,
String connectorProvider,
Map<String,Object> additionalProperties)
Provide the connection to the local repository - used when the local repository mode is set to repository proxy.
|
void |
setServerType(String userId,
String serverName,
String serverType)
Set up the descriptive type of the server.
|
void |
setServerURLRoot(String userId,
String serverName,
String serverURLRoot)
Set up the root URL for this server that is used to construct full URL paths to calls for
this server's REST interfaces.
|
void |
setServerUserId(String userId,
String serverName,
String id)
Set up the user id to use when there is no external user driving the work (for example when processing events
from another server).
|
String getServerOrigin()
void setServerURLRoot(String userId, String serverName, String serverURLRoot) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - user that is issuing the request.serverName - local server name.serverURLRoot - String url.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName or serverURLRoot parameter.void setServerType(String userId, String serverName, String serverType) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - user that is issuing the request.serverName - local server name.serverType - short description for the type of server.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName or serverType parameter.void setOrganizationName(String userId, String serverName, String organizationName) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - user that is issuing the request.serverName - local server name.organizationName - String name of the organization.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName or organizationName parameter.void setServerUserId(String userId, String serverName, String id) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - user that is issuing the request.serverName - local server name.id - String user is for the server.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid serverName or serverURLRoot parameter.void setMaxPageSize(String userId, String serverName, int maxPageSize) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - user that is issuing the request.serverName - local server name.maxPageSize - max number of elements that can be returned on a request.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName or organizationName parameter.void setEventBus(String userId, String serverName, String connectorProvider, String topicURLRoot, Map<String,Object> additionalProperties) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
userId - user that is issuing the request.serverName - local server name.connectorProvider - connector provider for the event bus (if it is null then Kafka is assumed).topicURLRoot - the common root of the topics used by the open metadata server.additionalProperties - property name/value pairs used to configure the connection to the event bus connectorOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGConfigurationErrorException - it is too late to configure the event bus - other configuration already exists.OMAGInvalidParameterException - invalid serverName or serviceMode parameter.void enableAccessServices(String userId, String serverName, Map<String,Object> accessServiceOptions) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
userId - user that is issuing the request.serverName - local server name.accessServiceOptions - property name/value pairs used to configure the access servicesOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGConfigurationErrorException - the event bus has not been configured orOMAGInvalidParameterException - invalid serverName parameter.void disableAccessServices(String userId, String serverName) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - user that is issuing the request.serverName - local server name.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName parameter.void setInMemLocalRepository(String userId, String serverName) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - user that is issuing the request.serverName - local server name.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName or localRepositoryMode parameter.void setGraphLocalRepository(String userId, String serverName) throws OMAGNotAuthorizedException, OMAGConfigurationErrorException, OMAGInvalidParameterException
userId - user that is issuing the request.serverName - local server name.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGConfigurationErrorException - the event bus has not been configured orOMAGInvalidParameterException - invalid serverName or localRepositoryMode parameter.void setNoRepositoryMode(String userId, String serverName) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - user that is issuing the request.serverName - local server name.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName or localRepositoryMode parameter.void setRepositoryProxyConnection(String userId, String serverName, Connection repositoryProxyConnection) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
userId - user that is issuing the request.serverName - local server name.repositoryProxyConnection - connection to the OMRS repository connector.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName or organizationName parameter.OMAGConfigurationErrorException - the local repository mode has not been setvoid setRepositoryProxyConnection(String userId, String serverName, String connectorProvider, Map<String,Object> additionalProperties) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
userId - user that is issuing the request.serverName - local server name.connectorProvider - connector provider class name to the OMRS repository connector.additionalProperties - additional parameters to pass to the repository connectorOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName or organizationName parameter.OMAGConfigurationErrorException - the local repository mode has not been set.void setLocalRepositoryEventMapper(String userId, String serverName, Connection localRepositoryEventMapper) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
userId - user that is issuing the request.serverName - local server name.localRepositoryEventMapper - connection to the OMRS repository event mapper.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName or organizationName parameter.OMAGConfigurationErrorException - the local repository mode has not been setvoid setLocalRepositoryEventMapper(String userId, String serverName, String connectorProvider, String eventSource, Map<String,Object> additionalProperties) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
userId - user that is issuing the request.serverName - local server name.connectorProvider - Java class name of the connector provider for the OMRS repository event mapper.eventSource - topic name or URL to the native event source.additionalProperties - additional properties for the event mapper connectionOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName or organizationName parameter.OMAGConfigurationErrorException - the local repository mode has not been setvoid enableCohortRegistration(String userId, String serverName, String cohortName, Map<String,Object> additionalProperties) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
userId - user that is issuing the request.serverName - local server name.cohortName - name of the cohort.additionalProperties - additional properties for the event bus connectionOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName, cohortName or serviceMode parameter orOMAGConfigurationErrorException - the event bus is not set.void disableCohortRegistration(String userId, String serverName, String cohortName) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - user that is issuing the request.serverName - local server name.cohortName - name of the cohort.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName, cohortName or serviceMode parameter.void setAccessServicesConfig(String userId, String serverName, List<AccessServiceConfig> accessServicesConfig) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - - user that is issuing the request.serverName - - local server name.accessServicesConfig - - list of configuration properties for each access service.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid serverName or accessServicesConfig parameter.void setLocalRepositoryConfig(String userId, String serverName, LocalRepositoryConfig localRepositoryConfig) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - - user that is issuing the request.serverName - - local server name.localRepositoryConfig - - configuration properties for the local repository.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName or localRepositoryConfig parameter.void setEnterpriseAccessConfig(String userId, String serverName, EnterpriseAccessConfig enterpriseAccessConfig) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - - user that is issuing the requestserverName - - local server nameenterpriseAccessConfig - - enterprise repository services configuration properties.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName or enterpriseAccessConfig parameter.void setCohortConfig(String userId, String serverName, String cohortName, CohortConfig cohortConfig) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - - user that is issuing the requestserverName - - local server namecohortName - - name of the cohortcohortConfig - - configuration for the cohortOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName, cohortName or cohortConfig parameter.OMAGServerConfig getCurrentConfiguration(String userId, String serverName) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - - user that is issuing the requestserverName - - local server nameOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - invalid serverName parameter.void activateWithStoredConfig(String userId, String serverName) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
userId - - user that is issuing the requestserverName - - local server nameOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - the server name is invalid orOMAGConfigurationErrorException - there is a problem using the supplied configuration.void activateWithSuppliedConfig(String userId, String serverName, OMAGServerConfig configuration) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
userId - - user that is issuing the requestconfiguration - - properties used to initialize the servicesserverName - - local server nameOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - the server name is invalid orOMAGConfigurationErrorException - there is a problem using the supplied configuration.void deactivateTemporarily(String userId, String serverName) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - user that is issuing the requestserverName - local server nameOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - the serverName is invalid.void deactivatePermanently(String userId, String serverName) throws OMAGNotAuthorizedException, OMAGInvalidParameterException
userId - user that is issuing the requestserverName - local server nameOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGInvalidParameterException - the serverName is invalid.Copyright © 2018 ODPi. All rights reserved.