Class IntegrationConnectorReport
java.lang.Object
org.odpi.openmetadata.governanceservers.integrationdaemonservices.properties.IntegrationConnectorReport
IntegrationConnectorReport provides information on the operation of a single connector within an integration service.
-
Constructor Summary
ConstructorDescriptionDefault constructor does nothing.Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Validate that an object is equal depending on their stored values.Return the connection used to create the instance of the connector.Return the unique identifier of the connector entity - set up in the metadata store.Return the unique identifier of the connector - set up in the configuration.Return the unique identifier of the connector instance.Return the name of the connector.Set up the status for the integration connector.Return the message extracted from an exception returned by the connector.Return the date/time when the connector was last refreshed.Return the date/time when the status was last changed.long
Return the configured minimum time between calls to refresh.Return the statistics logged by the connector through the context.int
hashCode()
Return a hash code based on the values of this object.void
setConnection
(Connection connection) Set up the connection object used to create the instance of the connector.void
setConnectorGUID
(String connectorGUID) Set up the unique identifier of the connector entity - set up in the metadata store.void
setConnectorId
(String connectorId) Set up the unique identifier of the connector - set up in the configuration.void
setConnectorInstanceId
(String connectorInstanceId) Set up the unique identifier of the connector instance.void
setConnectorName
(String connectorName) Set up the name of the connector.void
setConnectorStatus
(IntegrationConnectorStatus connectorStatus) Set up the status for the integration connector.void
setFailingExceptionMessage
(String failingExceptionMessage) Set up the message extracted from an exception returned by the connector.void
setLastRefreshTime
(Date lastRefreshTime) Set up the date/time when the connector was last refreshed.void
setLastStatusChange
(Date lastStatusChange) Set up the date/time when the status was last changed.void
setMinMinutesBetweenRefresh
(long minMinutesBetweenRefresh) Set up the configured minimum time between calls to refresh.void
setStatistics
(Map<String, Object> statistics) Set up if the connector should be started in its own thread to allow it to block on a listening call.toString()
Standard toString method.
-
Constructor Details
-
IntegrationConnectorReport
public IntegrationConnectorReport()Default constructor does nothing. -
IntegrationConnectorReport
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getConnectorId
Return the unique identifier of the connector - set up in the configuration.- Returns:
- string guid
-
setConnectorId
Set up the unique identifier of the connector - set up in the configuration.- Parameters:
connectorId
- string guid
-
getConnectorGUID
Return the unique identifier of the connector entity - set up in the metadata store.- Returns:
- string guid
-
setConnectorGUID
Set up the unique identifier of the connector entity - set up in the metadata store.- Parameters:
connectorGUID
- string guid
-
getConnectorName
Return the name of the connector. This name is used for routing refresh calls to the connector as well as being used for diagnostics. Ideally it should be unique amongst the connectors for the integration service.- Returns:
- String name
-
setConnectorName
Set up the name of the connector. This name is used for routing refresh calls to the connector as well as being used for diagnostics. Ideally it should be unique amongst the connectors for the integration service.- Parameters:
connectorName
- String
-
getConnection
Return the connection used to create the instance of the connector.- Returns:
- connection object
-
setConnection
Set up the connection object used to create the instance of the connector.- Parameters:
connection
- connection object
-
getConnectorInstanceId
Return the unique identifier of the connector instance.- Returns:
- string guid
-
setConnectorInstanceId
Set up the unique identifier of the connector instance.- Parameters:
connectorInstanceId
- string guid
-
getConnectorStatus
Set up the status for the integration connector.- Returns:
- status object
-
setConnectorStatus
Set up the status for the integration connector.- Parameters:
connectorStatus
- status object
-
getLastStatusChange
Return the date/time when the status was last changed.- Returns:
- timestamp
-
setLastStatusChange
Set up the date/time when the status was last changed.- Parameters:
lastStatusChange
- timestamp
-
getLastRefreshTime
Return the date/time when the connector was last refreshed. Null means it has never been refreshed.- Returns:
- timestamp
-
setLastRefreshTime
Set up the date/time when the connector was last refreshed. Null means it has never been refreshed.- Parameters:
lastRefreshTime
- timestamp
-
getMinMinutesBetweenRefresh
public long getMinMinutesBetweenRefresh()Return the configured minimum time between calls to refresh. This gives an indication of when the next refresh is due. Null means refresh is only called at server start up and in response to an API request.- Returns:
- count
-
setMinMinutesBetweenRefresh
public void setMinMinutesBetweenRefresh(long minMinutesBetweenRefresh) Set up the configured minimum time between calls to refresh. This gives an indication of when the next refresh is due. Null means refresh is only called at server start up and in response to an API request.- Parameters:
minMinutesBetweenRefresh
- count
-
getFailingExceptionMessage
Return the message extracted from an exception returned by the connector. This is only set if the connectorStatus is FAILED. The full exception is logged in the server's audit log.- Returns:
- string message
-
setFailingExceptionMessage
Set up the message extracted from an exception returned by the connector. This is only set if the connectorStatus is FAILED. The full exception is logged in the server's audit log.- Parameters:
failingExceptionMessage
- string message
-
getStatistics
Return the statistics logged by the connector through the context.- Returns:
- name value pairs for the statistics
-
setStatistics
Set up if the connector should be started in its own thread to allow it to block on a listening call.- Parameters:
statistics
- boolean flag
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values. -
hashCode
public int hashCode()Return a hash code based on the values of this object.
-