public abstract class ConnectorProviderBase extends ConnectorProvider implements AuditLoggingComponent
| Modifier and Type | Field and Description |
|---|---|
protected AuditLog |
auditLog |
protected ConnectorType |
connectorTypeBean |
| Constructor and Description |
|---|
ConnectorProviderBase()
Typical constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Provide a common implementation of equals for all OCF Connector Provider objects.
|
Connector |
getConnector(Connection connection)
Creates a new instance of a connector using the name of the connector provider in the supplied connection.
|
Connector |
getConnector(ConnectionProperties connection)
Creates a new instance of a connector based on the information in the supplied connection.
|
String |
getConnectorClassName()
Return the class name for the connector that the connector provider generates.
|
ConnectorType |
getConnectorType()
Returns the properties about the type of connector that this ConnectorTypeManager supports.
|
ConnectorTypeProperties |
getConnectorTypeProperties()
Returns the properties about the type of connector that this Connector Provider supports.
|
protected String |
getNewConnectorGUID()
Each connector has a guid to make it easier to correlate log messages from the various components that
serve it.
|
int |
hashCode()
Provide a common implementation of hashCode for all OCF Connector Provider objects.
|
void |
setAuditLog(AuditLog auditLog)
Receive an audit log object that can be used to record audit log messages.
|
protected void |
setConnectorClassName(String newConnectorClassName)
Update the class name for this connector provider.
|
protected void |
setConnectorComponentDescription(ComponentDescription connectorComponentDescription)
Update the component name to use in the creation of the connector's audit log.
|
protected void |
setConnectorTypeProperties(ConnectorType connectorTypeBean)
Setter method to enable a subclass to set up the connector type properties that are
added to a connection properties object.
|
String |
toString()
Standard toString method.
|
protected AuditLog auditLog
protected ConnectorType connectorTypeBean
protected String getNewConnectorGUID()
public String getConnectorClassName()
protected void setConnectorClassName(String newConnectorClassName)
newConnectorClassName - this must be a valid Java class name for a class that implements the
org.odpi.openmetadata.Connector interface.protected void setConnectorComponentDescription(ComponentDescription connectorComponentDescription)
connectorComponentDescription - component description.public void setAuditLog(AuditLog auditLog)
setAuditLog in interface AuditLoggingComponentauditLog - audit log objectpublic ConnectorTypeProperties getConnectorTypeProperties()
getConnectorTypeProperties in class ConnectorProviderpublic ConnectorType getConnectorType()
getConnectorType in class ConnectorProviderprotected void setConnectorTypeProperties(ConnectorType connectorTypeBean)
connectorTypeBean - default properties for this type of connectorpublic Connector getConnector(Connection connection) throws ConnectionCheckedException, ConnectorCheckedException
getConnector in class ConnectorProviderconnection - properties for the connector and connector provider.ConnectionCheckedException - an error with the connection.ConnectorCheckedException - an error initializing the connector.public Connector getConnector(ConnectionProperties connection) throws ConnectionCheckedException, ConnectorCheckedException
getConnector in class ConnectorProviderconnection - connection that should have all of the properties needed by the Connector Provider
to create a connector instance.ConnectionCheckedException - if there are missing or invalid properties in the connectionConnectorCheckedException - if there are issues instantiating or initializing the connectorpublic int hashCode()
public boolean equals(Object object)
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.