Class Endpoint
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
org.odpi.openmetadata.frameworks.connectors.properties.beans.Endpoint
The Endpoint describes the network information necessary for a connector to connect to the server
where the Asset is accessible from. The properties for an endpoint are defined in model 0026.
They include:
- type definition of the specific metadata type for the endpoint.
- guid Globally unique identifier for the endpoint.
- url External link address for the endpoint properties in the metadata repository. This URL can be stored as a property in another entity to create an explicit link to this endpoint.
- qualifiedName The official (unique) name for the endpoint. This is often defined by the IT systems management organization and should be used (when available) on audit logs and error messages.
- displayName - A consumable name for the endpoint. Often a shortened form of the qualifiedName for use on user interfaces and messages. The displayName should be only be used for audit logs and error messages if the qualifiedName is not set.
- description - A description for the endpoint.
- address - The location of the asset. For network connected resources, this is typically the URL and port number (if needed) for the server where the asset is located (or at least accessible by the connector). For file-based resources, this is typically the name of the file.
- protocol - The communication protocol that the connection should use to connect to the server.
- encryptionMethod - Describes the encryption method to use (if any). This is an open value allowing information needed by the connector user to retrieve all the information they need to work with the endpoint.
- additionalProperties - Any additional properties that the connector need to know in order to access the Asset.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
additionalProperties, qualifiedName
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
extendedProperties
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Returns the stored address property for the endpoint.Return the description for the endpoint.Returns the stored display name property for the endpoint.Returns the stored encryptionMethod property for the endpoint.static ElementType
Return the standard type for an endpoint.Returns the stored protocol property for the endpoint.int
hashCode()
Hash of propertiesvoid
setAddress
(String address) Set up the network address of the Endpoint.void
setDescription
(String description) Set up description of the element.void
setDisplayName
(String displayName) Set up the display name for UIs and reports.void
setEncryptionMethod
(String encryptionMethod) Set up the encryption method used on this Endpoint.void
setProtocol
(String protocol) Set up the protocol to use for this EndpointtoString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedName
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
getExtendedProperties, setExtendedProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
getClassifications, getGUID, setClassifications, setGUID
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Field Details
-
displayName
-
description
-
address
-
protocol
-
encryptionMethod
-
-
Constructor Details
-
Endpoint
public Endpoint()Default constructor -
Endpoint
Copy/clone constructor for an Endpoint.- Parameters:
templateEndpoint
- template object to copy.
-
-
Method Details
-
getEndpointType
Return the standard type for an endpoint.- Returns:
- ElementType object
-
setDisplayName
Set up the display name for UIs and reports.- Parameters:
displayName
- String name
-
getDisplayName
Returns the stored display name property for the endpoint. If no display name is available then null is returned.- Returns:
- displayName
-
setDescription
Set up description of the element.- Parameters:
description
- String
-
getDescription
Return the description for the endpoint.- Returns:
- String description
-
setAddress
Set up the network address of the Endpoint.- Parameters:
address
- String resource name
-
getAddress
Returns the stored address property for the endpoint. If no network address is available then null is returned.- Returns:
- address
-
setProtocol
Set up the protocol to use for this Endpoint- Parameters:
protocol
- String protocol name
-
getProtocol
Returns the stored protocol property for the endpoint. If no protocol is available then null is returned.- Returns:
- protocol
-
setEncryptionMethod
Set up the encryption method used on this Endpoint.- Parameters:
encryptionMethod
- String name
-
getEncryptionMethod
Returns the stored encryptionMethod property for the endpoint. This is an open type allowing the information needed to work with a specific encryption mechanism used by the endpoint to be defined. If no encryptionMethod property is available (typically because this is an unencrypted endpoint) then null is returned.- Returns:
- encryption method information
-
toString
Standard toString method.- Overrides:
toString
in classReferenceable
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classReferenceable
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCode
in classReferenceable
- Returns:
- int
-