public class EventBrokerClient extends SchemaManagerClient implements EventBrokerInterface
| Constructor and Description |
|---|
EventBrokerClient(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
EventBrokerClient(String serverName,
String serverPlatformURLRoot,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
EventBrokerClient(String serverName,
String serverPlatformURLRoot,
DataManagerRESTClient restClient,
int maxPageSize,
AuditLog auditLog)
Create a new client that is going to be used in an OMAG Server.
|
EventBrokerClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
EventBrokerClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createEventType(String userId,
String eventBrokerGUID,
String eventBrokerName,
boolean eventBrokerIsHome,
String topicGUID,
EventTypeProperties properties)
Create a new metadata element to represent a event type.
|
String |
createEventTypeFromTemplate(String userId,
String eventBrokerGUID,
String eventBrokerName,
boolean eventBrokerIsHome,
String templateGUID,
String topicGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a event type using an existing metadata element as a template.
|
String |
createTopic(String userId,
String eventBrokerGUID,
String eventBrokerName,
boolean eventBrokerIsHome,
TopicProperties topicProperties)
Create a new metadata element to represent a topic.
|
String |
createTopicFromTemplate(String userId,
String eventBrokerGUID,
String eventBrokerName,
boolean eventBrokerIsHome,
String templateGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a topic using an existing metadata element as a template.
|
List<EventTypeElement> |
findEventTypes(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of event type metadata elements that contain the search string.
|
List<TopicElement> |
findTopics(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of topic metadata elements that contain the search string.
|
EventTypeElement |
getEventTypeByGUID(String userId,
String guid)
Retrieve the event type metadata element with the supplied unique identifier.
|
List<EventTypeElement> |
getEventTypesByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of event type metadata elements with a matching qualified or display name.
|
List<EventTypeElement> |
getEventTypesForEventSet(String userId,
String eventSetGUID,
int startFrom,
int pageSize)
Return the list of event types associated with an EventSet.
|
List<EventTypeElement> |
getEventTypesForTopic(String userId,
String topicGUID,
int startFrom,
int pageSize)
Return the list of event-types associated with a topic.
|
TopicElement |
getTopicByGUID(String userId,
String guid)
Retrieve the topic metadata element with the supplied unique identifier.
|
List<TopicElement> |
getTopicsByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of topic metadata elements with a matching qualified or display name.
|
List<TopicElement> |
getTopicsForEventBroker(String userId,
String eventBrokerGUID,
String eventBrokerName,
int startFrom,
int pageSize)
Retrieve the list of topics created by this caller.
|
void |
publishTopic(String userId,
String topicGUID)
Update the zones for the topic asset so that it becomes visible to consumers.
|
void |
removeEventType(String userId,
String eventBrokerGUID,
String eventBrokerName,
String eventTypeGUID,
String qualifiedName)
Remove the metadata element representing a event type.
|
void |
removeTopic(String userId,
String eventBrokerGUID,
String eventBrokerName,
String topicGUID,
String qualifiedName)
Remove the metadata element representing a topic.
|
void |
updateEventType(String userId,
String eventBrokerGUID,
String eventBrokerName,
String eventTypeGUID,
boolean isMergeUpdate,
EventTypeProperties properties)
Update the metadata element representing a event type.
|
void |
updateTopic(String userId,
String eventBrokerGUID,
String eventBrokerName,
String topicGUID,
boolean isMergeUpdate,
TopicProperties topicProperties)
Update the metadata element representing a topic.
|
void |
withdrawTopic(String userId,
String topicGUID)
Update the zones for the topic asset so that it is no longer visible to consumers.
|
clearCalculatedValue, clearQueryTargetRelationship, clearSchemaType, createEnumSchemaType, createLiteralSchemaType, createMapSchemaType, createPrimitiveSchemaType, createSchemaAttribute, createSchemaAttributeFromTemplate, createSchemaTypeChoice, createSchemaTypeFromTemplate, createStructSchemaType, findSchemaAttributes, findSchemaType, findValidValueSet, getNestedAttributes, getSchemaAttributeByGUID, getSchemaAttributesByName, getSchemaTypeByGUID, getSchemaTypeByName, getSchemaTypeForElement, getSchemaTypeParent, getValidValueSetByName, removeSchemaAttribute, removeSchemaType, setupCalculatedValue, setupQueryTargetRelationship, setupSchemaType, updateQueryTargetRelationship, updateSchemaAttribute, updateSchemaTypepublic EventBrokerClient(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public EventBrokerClient(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public EventBrokerClient(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public EventBrokerClient(String serverName, String serverPlatformURLRoot, DataManagerRESTClient restClient, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - client that issues the REST API callsmaxPageSize - maximum number of results supported by this serverauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public EventBrokerClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public String createTopic(String userId, String eventBrokerGUID, String eventBrokerName, boolean eventBrokerIsHome, TopicProperties topicProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createTopic in interface EventBrokerInterfaceuserId - calling usereventBrokerGUID - unique identifier of software server capability representing the event brokereventBrokerName - unique name of software server capability representing the event brokereventBrokerIsHome - should the topic be marked as owned by the event broker so others can not update?topicProperties - properties to storeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createTopicFromTemplate(String userId, String eventBrokerGUID, String eventBrokerName, boolean eventBrokerIsHome, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createTopicFromTemplate in interface EventBrokerInterfaceuserId - calling usereventBrokerGUID - unique identifier of software server capability representing the event brokereventBrokerName - unique name of software server capability representing the event brokereventBrokerIsHome - should the topic be marked as owned by the event broker so others can not update?templateGUID - unique identifier of the metadata element to copytemplateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateTopic(String userId, String eventBrokerGUID, String eventBrokerName, String topicGUID, boolean isMergeUpdate, TopicProperties topicProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateTopic in interface EventBrokerInterfaceuserId - calling usereventBrokerGUID - unique identifier of software server capability representing the event brokereventBrokerName - unique name of software server capability representing the event brokertopicGUID - unique identifier of the metadata element to updateisMergeUpdate - are unspecified properties unchanged (true) or removed?topicProperties - new properties for this elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void publishTopic(String userId, String topicGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
publishTopic in interface EventBrokerInterfaceuserId - calling usertopicGUID - unique identifier of the metadata element to publishInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void withdrawTopic(String userId, String topicGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
withdrawTopic in interface EventBrokerInterfaceuserId - calling usertopicGUID - unique identifier of the metadata element to withdrawInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeTopic(String userId, String eventBrokerGUID, String eventBrokerName, String topicGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeTopic in interface EventBrokerInterfaceuserId - calling usereventBrokerGUID - unique identifier of software server capability representing the event brokereventBrokerName - unique name of software server capability representing the event brokertopicGUID - unique identifier of the metadata element to removequalifiedName - unique name of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<TopicElement> findTopics(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findTopics in interface EventBrokerInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<TopicElement> getTopicsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getTopicsByName in interface EventBrokerInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<TopicElement> getTopicsForEventBroker(String userId, String eventBrokerGUID, String eventBrokerName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getTopicsForEventBroker in interface EventBrokerInterfaceuserId - calling usereventBrokerGUID - unique identifier of software server capability representing the topic manager (event broker)eventBrokerName - unique name of software server capability representing the topic manager (event broker)startFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public TopicElement getTopicByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getTopicByGUID in interface EventBrokerInterfaceuserId - calling userguid - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createEventType(String userId, String eventBrokerGUID, String eventBrokerName, boolean eventBrokerIsHome, String topicGUID, EventTypeProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createEventType in interface EventBrokerInterfaceuserId - calling usereventBrokerGUID - unique identifier of software server capability representing the event brokereventBrokerName - unique name of software server capability representing the event brokereventBrokerIsHome - should the event type be marked as owned by the event broker so others can not update?topicGUID - unique identifier of the topic where the event type is locatedproperties - properties about the event typeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createEventTypeFromTemplate(String userId, String eventBrokerGUID, String eventBrokerName, boolean eventBrokerIsHome, String templateGUID, String topicGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createEventTypeFromTemplate in interface EventBrokerInterfaceuserId - calling usereventBrokerGUID - unique identifier of software server capability representing the event brokereventBrokerName - unique name of software server capability representing the event brokereventBrokerIsHome - should the event type be marked as owned by the event broker so others can not update?templateGUID - unique identifier of the metadata element to copytopicGUID - unique identifier of the topic where the event type is locatedtemplateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateEventType(String userId, String eventBrokerGUID, String eventBrokerName, String eventTypeGUID, boolean isMergeUpdate, EventTypeProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateEventType in interface EventBrokerInterfaceuserId - calling usereventBrokerGUID - unique identifier of software server capability representing the event brokereventBrokerName - unique name of software server capability representing the event brokereventTypeGUID - unique identifier of the metadata element to updateisMergeUpdate - are unspecified properties unchanged (true) or removed?properties - new properties for the metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeEventType(String userId, String eventBrokerGUID, String eventBrokerName, String eventTypeGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeEventType in interface EventBrokerInterfaceuserId - calling usereventBrokerGUID - unique identifier of software server capability representing the event brokereventBrokerName - unique name of software server capability representing the event brokereventTypeGUID - unique identifier of the metadata element to removequalifiedName - unique name of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<EventTypeElement> findEventTypes(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findEventTypes in interface EventBrokerInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<EventTypeElement> getEventTypesForEventSet(String userId, String eventSetGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getEventTypesForEventSet in interface EventBrokerInterfaceuserId - calling usereventSetGUID - unique identifier of the topic to querystartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<EventTypeElement> getEventTypesForTopic(String userId, String topicGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getEventTypesForTopic in interface EventBrokerInterfaceuserId - calling usertopicGUID - unique identifier of the topic to querystartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<EventTypeElement> getEventTypesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getEventTypesByName in interface EventBrokerInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public EventTypeElement getEventTypeByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getEventTypeByGUID in interface EventBrokerInterfaceuserId - calling userguid - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.