Class OMAGServerConfig
- java.lang.Object
-
- org.odpi.openmetadata.adminservices.configuration.properties.AdminServicesConfigHeader
-
- org.odpi.openmetadata.adminservices.configuration.properties.OMAGServerConfig
-
- All Implemented Interfaces:
Serializable
public class OMAGServerConfig extends AdminServicesConfigHeader
OMAGServerConfig provides the properties used to initialize an open metadata and governance (OMAG) server. The OMAG server configuration has the following basic properties, plus configuration for the subsystems that should be activated in the OMAG Server:- localServerId - Unique identifier for this server. By default, this is initialized to a randomly generated Universal Unique identifier (UUID).
- localServerName - meaningful name for the server for use in messages and UIs. Ideally this value is unique to aid administrators in understanding the source of messages and events from the server. This value is set to the server name assigned when the configuration is created.
- localServerType - descriptive type name for the server. Again this is useful information for the administrator to understand the role of the server. The default value is "Open Metadata and Governance Server".
- organizationName - descriptive name for the organization that owns the local server/repository. This is useful when the open metadata repository cluster consists of metadata servers from different organizations, or different departments of an enterprise. The default value is null.
- localServerURL - network address of the OMAG server platform where this server runs (typically host and port number but may also include the initial part of the URL before "open-metadata"). The default value is "https://localhost:9443".
- localServerUserId - UserId to use for server initiated REST calls. The default is "OMAGServer".
- maxPageSize - the maximum page size that can be set on requests to the server. The default value is 1000.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>COMPATIBLE_VERSIONSstatic StringdefaultLocalServerTypestatic StringVERSION_ONEstatic StringVERSION_TWO
-
Constructor Summary
Constructors Constructor Description OMAGServerConfig()Default constructor.OMAGServerConfig(OMAGServerConfig template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Validate that an object is equal depending on their stored values.List<AccessServiceConfig>getAccessServicesConfig()Return the configuration for the registered Open Metadata Access Services (OMASs).List<String>getAuditTrail()Return the list of audit log entries associated with this config file.ConformanceSuiteConfiggetConformanceSuiteConfig()Return the configuration for the open metadata conformance suite services.DataEngineProxyConfiggetDataEngineProxyConfig()Return the configuration for the data engine proxy services.EngineHostServicesConfiggetEngineHostServicesConfig()Return the configuration for the engine host services that control an engine host OMAG Server.EventBusConfiggetEventBusConfig()Set up the information used to create connections to an event bus.List<IntegrationServiceConfig>getIntegrationServicesConfig()Return the configuration for the registered Open Metadata Integration Services (OMISs).StringgetLocalServerId()Return an unique identifier for this server.StringgetLocalServerName()Return the name of the local server.StringgetLocalServerPassword()Return the password that the local server should use on outbound REST calls (this is the password for the localServerUserId).StringgetLocalServerType()Return the descriptive name for the server type.StringgetLocalServerURL()Return the base URL for calling the local server.StringgetLocalServerUserId()Return the userId that the local server should use when processing events and there is no external user driving the operation.intgetMaxPageSize()Return the maximum page size supported by this server.OpenLineageServerConfiggetOpenLineageServerConfig()Return the configuration for open lineage services.StringgetOrganizationName()Return the name of the organization that is running the server.RepositoryServicesConfiggetRepositoryServicesConfig()Return the Open Metadata Repository Services (OMRS) config.ConnectiongetServerSecurityConnection()Return the connection for the optional server security connector that validates calls to this server from admin to operations to metadata and governance services.StringgetVersionId()Return the versionId of this document.List<ViewServiceConfig>getViewServicesConfig()Return the configuration for the registered Open Metadata View Services (OMVSs).inthashCode()Return a hash code based on the values of this object.voidsetAccessServicesConfig(List<AccessServiceConfig> accessServicesConfig)Set up the configuration for the registered Open Metadata Access Services (OMASs).voidsetAuditTrail(List<String> auditTrail)Set up the audit log messages.voidsetConformanceSuiteConfig(ConformanceSuiteConfig conformanceSuiteConfig)Set up the configuration for the open metadata conformance suite services.voidsetDataEngineProxyConfig(DataEngineProxyConfig dataEngineProxyConfig)Set up the configuration for the data engine proxy services.voidsetEngineHostServicesConfig(EngineHostServicesConfig engineHostServicesConfig)Set up the configuration for the engine host services that control an engine host OMAG Server.voidsetEventBusConfig(EventBusConfig eventBusConfig)Set up the information used to create connections to an event bus.voidsetIntegrationServicesConfig(List<IntegrationServiceConfig> integrationServicesConfig)Set up the configuration for the registered Open Metadata Integration Services (OMISs).voidsetLocalServerId(String localServerId)Set up a unique identifier for this server.voidsetLocalServerName(String localServerName)Set up the name of the local server.voidsetLocalServerPassword(String localServerPassword)Set up the password that the local server should use on outbound REST calls (this is the password for the localServerUserId).voidsetLocalServerType(String localServerType)Set up the descriptive name for the server type.voidsetLocalServerURL(String localServerURL)Set up the base URL for calling the local server.voidsetLocalServerUserId(String localServerUserId)Set up the userId that the local server should use when processing events and there is no external user driving the operation.voidsetMaxPageSize(int maxPageSize)Set up the maximum page size supported by this server.voidsetOpenLineageServerConfig(OpenLineageServerConfig openLineageServerConfig)Set up the configuration for open lineage services.voidsetOrganizationName(String organizationName)Set up the name of the organization that is running the server.voidsetRepositoryServicesConfig(RepositoryServicesConfig repositoryServicesConfig)Set up the Open Metadata Repository Services (OMRS) config.voidsetServerSecurityConnection(Connection serverSecurityConnection)Set up the connection for the optional server security connector that validates calls to this server from admin to operations to metadata and governance services.voidsetVersionId(String versionId)Set up the versionId of this document.voidsetViewServicesConfig(List<ViewServiceConfig> viewServicesConfig)Set up the configuration for the registered Open Metadata View Services (OMVSs).StringtoString()Standard toString method.
-
-
-
Field Detail
-
VERSION_ONE
public static final String VERSION_ONE
- See Also:
- Constant Field Values
-
VERSION_TWO
public static final String VERSION_TWO
- See Also:
- Constant Field Values
-
defaultLocalServerType
public static final String defaultLocalServerType
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OMAGServerConfig
public OMAGServerConfig()
Default constructor.
-
OMAGServerConfig
public OMAGServerConfig(OMAGServerConfig template)
Copy/clone constructor.- Parameters:
template- object to copy
-
-
Method Detail
-
getVersionId
public String getVersionId()
Return the versionId of this document.- Returns:
- string
-
setVersionId
public void setVersionId(String versionId)
Set up the versionId of this document.- Parameters:
versionId- string
-
getLocalServerId
public String getLocalServerId()
Return an unique identifier for this server.- Returns:
- string guid
-
setLocalServerId
public void setLocalServerId(String localServerId)
Set up a unique identifier for this server.- Parameters:
localServerId- string guid
-
getLocalServerName
public String getLocalServerName()
Return the name of the local server.- Returns:
- String server name
-
setLocalServerName
public void setLocalServerName(String localServerName)
Set up the name of the local server.- Parameters:
localServerName- String local server name
-
getLocalServerType
public String getLocalServerType()
Return the descriptive name for the server type.- Returns:
- String server type
-
setLocalServerType
public void setLocalServerType(String localServerType)
Set up the descriptive name for the server type.- Parameters:
localServerType- String server type
-
getOrganizationName
public String getOrganizationName()
Return the name of the organization that is running the server.- Returns:
- String organization name
-
setOrganizationName
public void setOrganizationName(String organizationName)
Set up the name of the organization that is running the server.- Parameters:
organizationName- String organization name
-
getLocalServerURL
public String getLocalServerURL()
Return the base URL for calling the local server.- Returns:
- String URL
-
setLocalServerURL
public void setLocalServerURL(String localServerURL)
Set up the base URL for calling the local server.- Parameters:
localServerURL- String URL
-
getLocalServerUserId
public String getLocalServerUserId()
Return the userId that the local server should use when processing events and there is no external user driving the operation.- Returns:
- user id
-
setLocalServerUserId
public void setLocalServerUserId(String localServerUserId)
Set up the userId that the local server should use when processing events and there is no external user driving the operation.- Parameters:
localServerUserId- string user id
-
getLocalServerPassword
public String getLocalServerPassword()
Return the password that the local server should use on outbound REST calls (this is the password for the localServerUserId). Using userId's and passwords for server authentication is not suitable for production environments.- Returns:
- password in clear
-
setLocalServerPassword
public void setLocalServerPassword(String localServerPassword)
Set up the password that the local server should use on outbound REST calls (this is the password for the localServerUserId). Using userId's and passwords for server authentication is not suitable for production environments.- Parameters:
localServerPassword- password in clear
-
getMaxPageSize
public int getMaxPageSize()
Return the maximum page size supported by this server.- Returns:
- int number of elements
-
setMaxPageSize
public void setMaxPageSize(int maxPageSize)
Set up the maximum page size supported by this server.- Parameters:
maxPageSize- int number of elements
-
getServerSecurityConnection
public Connection getServerSecurityConnection()
Return the connection for the optional server security connector that validates calls to this server from admin to operations to metadata and governance services.- Returns:
- Connection bean.
-
setServerSecurityConnection
public void setServerSecurityConnection(Connection serverSecurityConnection)
Set up the connection for the optional server security connector that validates calls to this server from admin to operations to metadata and governance services.- Parameters:
serverSecurityConnection- connection bean
-
getEventBusConfig
public EventBusConfig getEventBusConfig()
Set up the information used to create connections to an event bus.- Returns:
- EventBusConfig object
-
setEventBusConfig
public void setEventBusConfig(EventBusConfig eventBusConfig)
Set up the information used to create connections to an event bus.- Parameters:
eventBusConfig- EventBusConfig object
-
getAccessServicesConfig
public List<AccessServiceConfig> getAccessServicesConfig()
Return the configuration for the registered Open Metadata Access Services (OMASs).- Returns:
- array of configuration properties, one for each OMAS
-
setAccessServicesConfig
public void setAccessServicesConfig(List<AccessServiceConfig> accessServicesConfig)
Set up the configuration for the registered Open Metadata Access Services (OMASs).- Parameters:
accessServicesConfig- array of configuration properties, one for each OMAS
-
getIntegrationServicesConfig
public List<IntegrationServiceConfig> getIntegrationServicesConfig()
Return the configuration for the registered Open Metadata Integration Services (OMISs).- Returns:
- array of configuration properties, one for each OMIS
-
setIntegrationServicesConfig
public void setIntegrationServicesConfig(List<IntegrationServiceConfig> integrationServicesConfig)
Set up the configuration for the registered Open Metadata Integration Services (OMISs).- Parameters:
integrationServicesConfig- array of configuration properties, one for each OMIS
-
getViewServicesConfig
public List<ViewServiceConfig> getViewServicesConfig()
Return the configuration for the registered Open Metadata View Services (OMVSs).- Returns:
- array of configuration properties, one for each OMVS
-
setViewServicesConfig
public void setViewServicesConfig(List<ViewServiceConfig> viewServicesConfig)
Set up the configuration for the registered Open Metadata View Services (OMVSs).- Parameters:
viewServicesConfig- array of configuration properties, one for each OMVS
-
getRepositoryServicesConfig
public RepositoryServicesConfig getRepositoryServicesConfig()
Return the Open Metadata Repository Services (OMRS) config.- Returns:
- configuration properties that control OMRS
-
setRepositoryServicesConfig
public void setRepositoryServicesConfig(RepositoryServicesConfig repositoryServicesConfig)
Set up the Open Metadata Repository Services (OMRS) config.- Parameters:
repositoryServicesConfig- configuration properties that control OMRS
-
getConformanceSuiteConfig
public ConformanceSuiteConfig getConformanceSuiteConfig()
Return the configuration for the open metadata conformance suite services.- Returns:
- configuration properties that control the operation of the open metadata test labs.
-
setConformanceSuiteConfig
public void setConformanceSuiteConfig(ConformanceSuiteConfig conformanceSuiteConfig)
Set up the configuration for the open metadata conformance suite services.- Parameters:
conformanceSuiteConfig- configuration properties that control the operation of the open metadata test labs.
-
getEngineHostServicesConfig
public EngineHostServicesConfig getEngineHostServicesConfig()
Return the configuration for the engine host services that control an engine host OMAG Server.- Returns:
- properties for an engine host server
-
setEngineHostServicesConfig
public void setEngineHostServicesConfig(EngineHostServicesConfig engineHostServicesConfig)
Set up the configuration for the engine host services that control an engine host OMAG Server.- Parameters:
engineHostServicesConfig- properties for an engine host server
-
getOpenLineageServerConfig
public OpenLineageServerConfig getOpenLineageServerConfig()
Return the configuration for open lineage services.- Returns:
- OpenLineageConfig properties
-
setOpenLineageServerConfig
public void setOpenLineageServerConfig(OpenLineageServerConfig openLineageServerConfig)
Set up the configuration for open lineage services.- Parameters:
openLineageServerConfig- OpenLineageConfig properties
-
setDataEngineProxyConfig
public void setDataEngineProxyConfig(DataEngineProxyConfig dataEngineProxyConfig)
Set up the configuration for the data engine proxy services.- Parameters:
dataEngineProxyConfig- properties
-
getDataEngineProxyConfig
public DataEngineProxyConfig getDataEngineProxyConfig()
Return the configuration for the data engine proxy services.- Returns:
- DataEngineProxyConfig properties
-
getAuditTrail
public List<String> getAuditTrail()
Return the list of audit log entries associated with this config file. The audit log simply keep track of the changed to the configuration.- Returns:
- list of audit messages
-
setAuditTrail
public void setAuditTrail(List<String> auditTrail)
Set up the audit log messages.- Parameters:
auditTrail- list of audit messages
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.
-
-