Class DataContractServer
java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.odcs.DataContractServer
This class represents a server (infrastructure location) where the data described by an Open Data Contract
Standard (ODCS) data contract resides. The "type" of server (postgresql, kafka, s3, bigquery, ...) determines
which of the location properties are relevant. This bean holds the union of the location properties defined
for all server types by the standard, and captures any others in additionalProperties so that nothing is lost
on a round trip.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the account (for example Snowflake, Redshift, Glue).Return any server properties that are not explicitly modelled by this bean.Return the catalog (for example Databricks, Trino, Presto, Athena).Return the URL of an Apache Iceberg REST catalog.Return the list of custom (key/value) properties attached to this element.Return the database.Return the dataset (for example BigQuery).Return the delimiter for delimited formats.Return the description of the server.Return the character encoding of the data payloads exposed through this server, for example UTF-8.Return the endpoint URL (for example an S3 compatible endpoint).Return the environment of the server, for example production or development.Return the data format (for example parquet, json, avro, csv).getHost()Return the host name (and optionally port) of the server.getId()Return the stable identifier of this element (alphanumeric, hyphen and underscore characters only).Return the location URI (for example s3://, abfss://, sftp:// or an API URL).Return the namespace within an Apache Iceberg catalog.getPath()Return the file path (for local servers).getPort()Return the port number of the server.Return the project (for example BigQuery or Pub/Sub).Return the cloud region (for example Kinesis or Redshift).Return the cloud region name (for example Athena).getRoles()Return the list of access roles specific to this server.Return the schema within the database.Return the identifier of the server.Return the service name (for example Oracle).Return the staging directory URI (for example Athena).Return the stream name (for example Kinesis).getType()Return the type of server.Return the warehouse (for example Snowflake).Return the Amazon Athena workgroup.inthashCode()Return hash code based on properties.voidsetAccount(String account) Set up the account (for example Snowflake, Redshift, Glue).voidsetAdditionalProperties(Map<String, Object> additionalProperties) Set up any server properties that are not explicitly modelled by this bean.voidsetAdditionalProperty(String propertyName, Object propertyValue) Add a single property that is not explicitly modelled by this bean.voidsetCatalog(String catalog) Set up the catalog (for example Databricks, Trino, Presto, Athena).voidsetCatalogUrl(String catalogUrl) Set up the URL of an Apache Iceberg REST catalog.voidsetCustomProperties(List<BitolCustomProperty> customProperties) Set up the list of custom (key/value) properties attached to this element.voidsetDatabase(String database) Set up the database.voidsetDataset(String dataset) Set up the dataset (for example BigQuery).voidsetDelimiter(String delimiter) Set up the delimiter for delimited formats.voidsetDescription(String description) Set up the description of the server.voidsetEncoding(String encoding) Set up the character encoding of the data payloads exposed through this server, for example UTF-8.voidsetEndpointUrl(String endpointUrl) Set up the endpoint URL (for example an S3 compatible endpoint).voidsetEnvironment(String environment) Set up the environment of the server, for example production or development.voidSet up the data format (for example parquet, json, avro, csv).voidSet up the host name (and optionally port) of the server.voidSet up the stable identifier of this element (alphanumeric, hyphen and underscore characters only).voidsetLocation(String location) Set up the location URI (for example s3://, abfss://, sftp:// or an API URL).voidsetNamespace(String namespace) Set up the namespace within an Apache Iceberg catalog.voidSet up the file path (for local servers).voidSet up the port number of the server.voidsetProject(String project) Set up the project (for example BigQuery or Pub/Sub).voidSet up the cloud region (for example Kinesis or Redshift).voidsetRegionName(String regionName) Set up the cloud region name (for example Athena).voidsetRoles(List<DataContractRole> roles) Set up the list of access roles specific to this server.voidSet up the schema within the database.voidSet up the identifier of the server.voidsetServiceName(String serviceName) Set up the service name (for example Oracle).voidsetStagingDir(String stagingDir) Set up the staging directory URI (for example Athena).voidSet up the stream name (for example Kinesis).voidSet up the type of server.voidsetWarehouse(String warehouse) Set up the warehouse (for example Snowflake).voidsetWorkgroup(String workgroup) Set up the Amazon Athena workgroup.toString()Standard toString method.
-
Constructor Details
-
DataContractServer
public DataContractServer()Default constructor
-
-
Method Details
-
getId
Return the stable identifier of this element (alphanumeric, hyphen and underscore characters only).- Returns:
- string identifier
-
setId
Set up the stable identifier of this element (alphanumeric, hyphen and underscore characters only).- Parameters:
id- string identifier
-
getServer
Return the identifier of the server.- Returns:
- string name
-
setServer
Set up the identifier of the server.- Parameters:
server- string name
-
getType
Return the type of server. Standard values are defined in DataContractServerType.- Returns:
- string type name
-
setType
Set up the type of server. Standard values are defined in DataContractServerType.- Parameters:
type- string type name
-
getDescription
Return the description of the server.- Returns:
- string description
-
setDescription
Set up the description of the server.- Parameters:
description- string description
-
getEnvironment
Return the environment of the server, for example production or development.- Returns:
- string environment name
-
setEnvironment
Set up the environment of the server, for example production or development.- Parameters:
environment- string environment name
-
getRoles
Return the list of access roles specific to this server.- Returns:
- list of roles
-
setRoles
Set up the list of access roles specific to this server.- Parameters:
roles- list of roles
-
getAccount
Return the account (for example Snowflake, Redshift, Glue).- Returns:
- string account name
-
setAccount
Set up the account (for example Snowflake, Redshift, Glue).- Parameters:
account- string account name
-
getCatalog
Return the catalog (for example Databricks, Trino, Presto, Athena).- Returns:
- string catalog name
-
setCatalog
Set up the catalog (for example Databricks, Trino, Presto, Athena).- Parameters:
catalog- string catalog name
-
getDatabase
Return the database.- Returns:
- string database name
-
setDatabase
Set up the database.- Parameters:
database- string database name
-
getDataset
Return the dataset (for example BigQuery).- Returns:
- string dataset name
-
setDataset
Set up the dataset (for example BigQuery).- Parameters:
dataset- string dataset name
-
getSchema
Return the schema within the database.- Returns:
- string schema name
-
setSchema
Set up the schema within the database.- Parameters:
schema- string schema name
-
getHost
Return the host name (and optionally port) of the server.- Returns:
- string host name
-
setHost
Set up the host name (and optionally port) of the server.- Parameters:
host- string host name
-
getPort
Return the port number of the server. It is normally an integer but may be a string holding a variable reference such as ${DB_PORT}.- Returns:
- integer value or null if not specified
-
setPort
Set up the port number of the server. It is normally an integer but may be a string holding a variable reference such as ${DB_PORT}.- Parameters:
port- integer value or null if not specified
-
getLocation
Return the location URI (for example s3://, abfss://, sftp:// or an API URL).- Returns:
- string URI
-
setLocation
Set up the location URI (for example s3://, abfss://, sftp:// or an API URL).- Parameters:
location- string URI
-
getEndpointUrl
Return the endpoint URL (for example an S3 compatible endpoint).- Returns:
- string URL
-
setEndpointUrl
Set up the endpoint URL (for example an S3 compatible endpoint).- Parameters:
endpointUrl- string URL
-
getPath
Return the file path (for local servers).- Returns:
- string path
-
setPath
Set up the file path (for local servers).- Parameters:
path- string path
-
getFormat
Return the data format (for example parquet, json, avro, csv).- Returns:
- string format name
-
setFormat
Set up the data format (for example parquet, json, avro, csv).- Parameters:
format- string format name
-
getDelimiter
Return the delimiter for delimited formats.- Returns:
- string delimiter
-
setDelimiter
Set up the delimiter for delimited formats.- Parameters:
delimiter- string delimiter
-
getProject
Return the project (for example BigQuery or Pub/Sub).- Returns:
- string project name
-
setProject
Set up the project (for example BigQuery or Pub/Sub).- Parameters:
project- string project name
-
getRegion
Return the cloud region (for example Kinesis or Redshift).- Returns:
- string region name
-
setRegion
Set up the cloud region (for example Kinesis or Redshift).- Parameters:
region- string region name
-
getRegionName
Return the cloud region name (for example Athena).- Returns:
- string region name
-
setRegionName
Set up the cloud region name (for example Athena).- Parameters:
regionName- string region name
-
getServiceName
Return the service name (for example Oracle).- Returns:
- string service name
-
setServiceName
Set up the service name (for example Oracle).- Parameters:
serviceName- string service name
-
getStagingDir
Return the staging directory URI (for example Athena).- Returns:
- string URI
-
setStagingDir
Set up the staging directory URI (for example Athena).- Parameters:
stagingDir- string URI
-
getWarehouse
Return the warehouse (for example Snowflake).- Returns:
- string warehouse name
-
setWarehouse
Set up the warehouse (for example Snowflake).- Parameters:
warehouse- string warehouse name
-
getStream
Return the stream name (for example Kinesis).- Returns:
- string stream name
-
setStream
Set up the stream name (for example Kinesis).- Parameters:
stream- string stream name
-
getCustomProperties
Return the list of custom (key/value) properties attached to this element.- Returns:
- list of custom properties
-
setCustomProperties
Set up the list of custom (key/value) properties attached to this element.- Parameters:
customProperties- list of custom properties
-
getAdditionalProperties
Return any server properties that are not explicitly modelled by this bean.- Returns:
- map from property name to value
-
setAdditionalProperties
Set up any server properties that are not explicitly modelled by this bean.- Parameters:
additionalProperties- map from property name to value
-
setAdditionalProperty
Add a single property that is not explicitly modelled by this bean. Called by Jackson for each unrecognized property so that no part of the document is lost on a round trip.- Parameters:
propertyName- name of the propertypropertyValue- value of the property
-
getEncoding
Return the character encoding of the data payloads exposed through this server, for example UTF-8.- Returns:
- String
-
setEncoding
Set up the character encoding of the data payloads exposed through this server, for example UTF-8.- Parameters:
encoding- String
-
getWorkgroup
Return the Amazon Athena workgroup.- Returns:
- String
-
setWorkgroup
Set up the Amazon Athena workgroup.- Parameters:
workgroup- String
-
getCatalogUrl
Return the URL of an Apache Iceberg REST catalog.- Returns:
- String
-
setCatalogUrl
Set up the URL of an Apache Iceberg REST catalog.- Parameters:
catalogUrl- String
-
getNamespace
Return the namespace within an Apache Iceberg catalog.- Returns:
- String
-
setNamespace
Set up the namespace within an Apache Iceberg catalog.- Parameters:
namespace- String
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-