Class IntegrationIterator
java.lang.Object
org.odpi.openmetadata.frameworks.integration.iterator.IntegrationIterator
- Direct Known Subclasses:
MetadataCollectionIterator,RelatedElementsIterator
IntegrationIterator provides the common logic for an integration iterator.
-
Constructor Summary
ConstructorsConstructorDescriptionIntegrationIterator(String metadataCollectionGUID, String metadataCollectionQualifiedName, String externalScopeGUID, String externalScopeName, String catalogTargetName, String connectorName, String metadataTypeName, OpenMetadataAccess openMetadataAccess, org.odpi.openmetadata.frameworks.openmetadata.enums.PermittedSynchronization targetPermittedSynchronization, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create the iterator. -
Method Summary
Modifier and TypeMethodDescriptiongetMemberByQualifiedName(String qualifiedName) Retrieve the member element by qualified name.Return the next element.booleanIs there information from the open metadata repositories to process?
-
Constructor Details
-
IntegrationIterator
public IntegrationIterator(String metadataCollectionGUID, String metadataCollectionQualifiedName, String externalScopeGUID, String externalScopeName, String catalogTargetName, String connectorName, String metadataTypeName, OpenMetadataAccess openMetadataAccess, org.odpi.openmetadata.frameworks.openmetadata.enums.PermittedSynchronization targetPermittedSynchronization, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create the iterator.- Parameters:
metadataCollectionGUID- unique identifier of the metadata collectionmetadataCollectionQualifiedName- unique name of the metadata collectionexternalScopeGUID- unique identifier for the owning scope (typically a catalog)externalScopeName- unique name for the owning scope (typically a catalog)catalogTargetName- name of targetconnectorName- name of the calling connectormetadataTypeName- type of element to receiveopenMetadataAccess- client to access metadatatargetPermittedSynchronization- the synchronization policy for this targetmaxPageSize- max page size for the serverauditLog- logging destination
-
-
Method Details
-
moreToReceive
public boolean moreToReceive() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionIs there information from the open metadata repositories to process?- Returns:
- boolean where true means there are elements to process.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- problem with a parameter valueorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- repository not working properlyorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- permissions problem
-
getNextMember
public MemberElement getNextMember() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturn the next element.- Returns:
- next member in the repository.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- problem with a parameter valueorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- repository not working properlyorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- permissions problem
-
getMemberByQualifiedName
public MemberElement getMemberByQualifiedName(String qualifiedName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Retrieve the member element by qualified name. This is used in sweep 2 when elements from the third party system are being retrieved and mapped to open metadata elements. It is possible that there is no open metadata element, or it has been deleted.- Parameters:
qualifiedName- anticipated qualified name.- Returns:
- member element - may be empty - but not null
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- problem with a parameter valueorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- repository not working properlyorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- permissions problem
-