Class EgeriaOpenMetadataEventClient
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.events.OpenMetadataEventClient
org.odpi.openmetadata.frameworkservices.omf.client.EgeriaOpenMetadataEventClient
- All Implemented Interfaces:
OpenMetadataEventInterface
EgeriaOpenMetadataEventClient provides the implementation to manage the interaction with the server to
set up a listener to support the receipt of inbound events from the Open Metadata Store Out Topic.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.events.OpenMetadataEventClient
auditLog, callerId, maxPageSize, password, serverName, serverPlatformURLRoot, userId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidShutdown the event listener.voidregisterListener(String userId, OpenMetadataEventListener listener) Register a listener object that will be passed each of the events published by the Open Metadata Store.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.events.OpenMetadataEventClient
getConfigurationServerName
-
Constructor Details
-
EgeriaOpenMetadataEventClient
public EgeriaOpenMetadataEventClient(String serverName, String serverPlatformURLRoot, String serverUserId, String serverPassword, int maxPageSize, AuditLog auditLog, String callerId) throws InvalidParameterException Create a new client that is to be used within an OMAG Server.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesserverUserId- this server's userIdserverPassword- this server's userIdmaxPageSize- pre-initialized parameter limitauditLog- logging destinationcallerId- unique identifier of the caller- Throws:
InvalidParameterException- there is a problem with the information about the remote OMAS
-
-
Method Details
-
registerListener
public void registerListener(String userId, OpenMetadataEventListener listener) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Register a listener object that will be passed each of the events published by the Open Metadata Store.- Specified by:
registerListenerin interfaceOpenMetadataEventInterface- Specified by:
registerListenerin classOpenMetadataEventClient- Parameters:
userId- calling userlistener- listener object- Throws:
InvalidParameterException- one of the parameters is null or invalid.PropertyServerException- there is a problem retrieving information from the property server(s).UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
disconnect
public void disconnect()Shutdown the event listener.- Specified by:
disconnectin classOpenMetadataEventClient
-