public abstract class OMAGServerConfigurationClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
adminUserId |
protected InvalidParameterHandler |
invalidParameterHandler |
protected NullRequestBody |
nullRequestBody |
protected org.odpi.openmetadata.adminservices.client.AdminServicesRESTClient |
restClient |
protected String |
serverName |
protected String |
serverPlatformRootURL |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuditLogDestination(Connection connection)
Add an audit log destination that is defined by the supplied connection object.
|
void |
addConsoleAuditLogDestination(List<String> supportedSeverities)
Set up the console audit log for the server.
|
void |
addEventTopicAuditLogDestination(List<String> supportedSeverities)
Add an audit log destination that sends each log record as an event on the supplied event topic.
|
void |
addFileAuditLogDestination(List<String> supportedSeverities)
Add an audit log destination that creates log records as JSON files in a shared directory.
|
void |
addSLF4JAuditLogDestination(List<String> supportedSeverities)
Add an audit log destination that creates slf4j records.
|
void |
clearAuditLogDestinations()
Clears all audit log destinations for this server.
|
void |
clearServerSecurityConnection()
Clear the connection object for the server security connection which means the
server does no authorization checks when a request is made to this server.
|
void |
deployOMAGServerConfig(String destinationPlatformURLRoot)
Push the configuration for the server to another OMAG Server Platform.
|
OMAGServerConfig |
getOMAGServerConfig()
Return the complete set of configuration properties in use by the server.
|
ServerTypeClassificationSummary |
getServerClassification()
Return the derived server type that is classified based on the configuration values.
|
Connection |
getServerSecurityConnection()
Return the connection object for the server security connector.
|
void |
setDefaultAuditLog()
Set up the default audit log for the server.
|
void |
setEventBus(String connectorProvider,
String topicURLRoot,
Map<String,Object> configurationProperties)
Set up the default event bus for embedding in event-driven connector.
|
void |
setMaxPageSize(int maxPageSize)
Set an upper limit in the page size that can be requested on a REST call to the server.
|
void |
setOMAGServerConfig(OMAGServerConfig serverConfig)
Set up the configuration properties for an OMAG Server in a single command.
|
void |
setOrganizationName(String organizationName)
Set up the name of the organization that is running this server.
|
void |
setServerPassword(String serverPassword)
Set up the password to use in the header of HTTP requests with the server's userId.
|
void |
setServerSecurityConnection(Connection connection)
Override the default server security connector.
|
void |
setServerType(String serverType)
Set up the descriptive type of the server.
|
void |
setServerURLRoot(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 serverUserId)
Set up the user id to use when there is no external user driving the work (for example when processing events
from another server).
|
protected String adminUserId
protected String serverName
protected String serverPlatformRootURL
protected InvalidParameterHandler invalidParameterHandler
protected org.odpi.openmetadata.adminservices.client.AdminServicesRESTClient restClient
protected NullRequestBody nullRequestBody
public ServerTypeClassificationSummary getServerClassification() throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void setServerURLRoot(String serverURLRoot) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
serverURLRoot - String url.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void setEventBus(String connectorProvider, String topicURLRoot, Map<String,Object> configurationProperties) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
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.configurationProperties - property name/value pairs used to configure the connection to the event bus connectorOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void setServerType(String serverType) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
serverType - short description for the type of server.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void setOrganizationName(String organizationName) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
organizationName - String name of the organization.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void setServerUserId(String serverUserId) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
serverUserId - String user that the server will use on connections and requests not associated with an end user.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void setServerPassword(String serverPassword) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
serverPassword - String password that the server will use on connections.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void setMaxPageSize(int maxPageSize)
throws OMAGNotAuthorizedException,
OMAGInvalidParameterException,
OMAGConfigurationErrorException
maxPageSize - max number of elements that can be returned on a request.OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void setDefaultAuditLog()
throws OMAGNotAuthorizedException,
OMAGInvalidParameterException,
OMAGConfigurationErrorException
OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void addConsoleAuditLogDestination(List<String> supportedSeverities) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
supportedSeverities - list of severities that should be logged to this destination (empty list means all)OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void addSLF4JAuditLogDestination(List<String> supportedSeverities) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
supportedSeverities - list of severities that should be logged to this destination (empty list means all)OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void addFileAuditLogDestination(List<String> supportedSeverities) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
supportedSeverities - list of severities that should be logged to this destination (empty list means all)OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void addEventTopicAuditLogDestination(List<String> supportedSeverities) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
supportedSeverities - list of severities that should be logged to this destination (empty list means all)OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void addAuditLogDestination(Connection connection) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
connection - connection object that defines the audit log destinationOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void clearAuditLogDestinations()
throws OMAGNotAuthorizedException,
OMAGInvalidParameterException,
OMAGConfigurationErrorException
OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void setServerSecurityConnection(Connection connection) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
connection - connection object that defines the server security connectorOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void clearServerSecurityConnection()
throws OMAGNotAuthorizedException,
OMAGInvalidParameterException,
OMAGConfigurationErrorException
OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public Connection getServerSecurityConnection() throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void setOMAGServerConfig(OMAGServerConfig serverConfig) throws OMAGNotAuthorizedException, OMAGConfigurationErrorException, OMAGInvalidParameterException
serverConfig - configuration for the serverOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public void deployOMAGServerConfig(String destinationPlatformURLRoot) throws OMAGNotAuthorizedException, OMAGConfigurationErrorException, OMAGInvalidParameterException
destinationPlatformURLRoot - location of the platform where the config is to be deployed toOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.public OMAGServerConfig getOMAGServerConfig() throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
OMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid parameter.OMAGConfigurationErrorException - unusual state in the admin server.Copyright © 2018–2020 ODPi. All rights reserved.