public class DiscoveryConfigurationClient extends DiscoveryConfigurationServer implements DiscoveryEngineEventInterface
| Constructor and Description |
|---|
DiscoveryConfigurationClient(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
DiscoveryConfigurationClient(String serverName,
String serverPlatformURLRoot,
ODFRESTClient restClient,
int maxPageSize,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
DiscoveryConfigurationClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createDiscoveryEngine(String userId,
String qualifiedName,
String displayName,
String description)
Create a new discovery engine definition.
|
String |
createDiscoveryService(String userId,
String qualifiedName,
String displayName,
String description,
Connection connection)
Create a discovery service definition.
|
void |
deleteDiscoveryEngine(String userId,
String guid,
String qualifiedName)
Remove the properties of the discovery engine.
|
void |
deleteDiscoveryService(String userId,
String guid,
String qualifiedName)
Remove the properties of the discovery service.
|
List<DiscoveryEngineProperties> |
getAllDiscoveryEngines(String userId,
int startingFrom,
int maximumResults)
Return the list of discovery engine definitions that are stored.
|
List<DiscoveryServiceProperties> |
getAllDiscoveryServices(String userId,
int startingFrom,
int maximumResults)
Return the list of discovery services definitions that are stored.
|
String |
getConfigurationServerName()
Return the name of the server where configuration is supposed to be stored.
|
DiscoveryEngineProperties |
getDiscoveryEngineByGUID(String userId,
String guid)
Return the properties from a discovery engine definition.
|
DiscoveryEngineProperties |
getDiscoveryEngineByName(String userId,
String name)
Return the properties from a discovery engine definition.
|
DiscoveryServiceProperties |
getDiscoveryServiceByGUID(String userId,
String guid)
Return the properties from a discovery service definition.
|
DiscoveryServiceProperties |
getDiscoveryServiceByName(String userId,
String name)
Return the properties from a discovery service definition.
|
List<String> |
getDiscoveryServiceRegistrations(String userId,
String discoveryServiceGUID)
Return the list of discovery engines that a specific discovery service is registered with.
|
RegisteredDiscoveryService |
getRegisteredDiscoveryService(String userId,
String discoveryEngineGUID,
String discoveryServiceGUID)
Retrieve a specific discovery service registered with a discovery engine.
|
List<String> |
getRegisteredDiscoveryServices(String userId,
String discoveryEngineGUID,
int startingFrom,
int maximumResults)
Retrieve the identifiers of the discovery services registered with a discovery engine.
|
void |
registerDiscoveryServiceWithEngine(String userId,
String discoveryEngineGUID,
String discoveryServiceGUID,
List<String> discoveryRequestTypes,
Map<String,String> defaultAnalysisParameters)
Register a discovery service with a specific discovery engine.
|
void |
registerListener(String userId,
DiscoveryEngineEventListener listener)
Register a listener object that will be passed each of the events published by
the Discovery Engine OMAS.
|
void |
unregisterDiscoveryServiceFromEngine(String userId,
String discoveryEngineGUID,
String discoveryServiceGUID)
Unregister a discovery service from the discovery engine.
|
void |
updateDiscoveryEngine(String userId,
String guid,
String qualifiedName,
String displayName,
String description,
String typeDescription,
String version,
String patchLevel,
String source,
Map<String,String> additionalProperties,
Map<String,Object> extendedProperties)
Update the properties of an existing discovery engine definition.
|
void |
updateDiscoveryService(String userId,
String guid,
String qualifiedName,
String displayName,
String shortDescription,
String description,
String owner,
OwnerType ownerType,
List<String> zoneMembership,
String latestChange,
Connection connection,
Map<String,String> additionalProperties,
Map<String,Object> extendedProperties)
Update the properties of an existing discovery service definition.
|
public DiscoveryConfigurationClient(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 DiscoveryConfigurationClient(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 DiscoveryConfigurationClient(String serverName, String serverPlatformURLRoot, ODFRESTClient 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 - pre-initialized REST clientmaxPageSize - pre-initialized parameter limitauditLog - logging destinationInvalidParameterException - there is a problem with the information about the remote OMASpublic String getConfigurationServerName()
public void registerListener(String userId, DiscoveryEngineEventListener listener) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, PropertyServerException, UserNotAuthorizedException
registerListener in interface DiscoveryEngineEventInterfaceuserId - calling userlistener - listener objectInvalidParameterException - one of the parameters is null or invalid.ConnectionCheckedException - there are errors in the configuration of the connection which is preventing
the creation of a connector.ConnectorCheckedException - there are errors in the initialization of the connector.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public String createDiscoveryEngine(String userId, String qualifiedName, String displayName, String description) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDiscoveryEngine in class DiscoveryConfigurationServeruserId - identifier of calling userqualifiedName - unique name for the discovery engine.displayName - display name for messages and user interfaces.description - description of the types of discovery services that will be associated with
this discovery engine.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem storing the discovery engine definition.public DiscoveryEngineProperties getDiscoveryEngineByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDiscoveryEngineByGUID in class DiscoveryConfigurationServeruserId - identifier of calling userguid - unique identifier (guid) of the discovery engine definition.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery engine definition.public DiscoveryEngineProperties getDiscoveryEngineByName(String userId, String name) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDiscoveryEngineByName in class DiscoveryConfigurationServeruserId - identifier of calling username - qualified name or display name (if unique).InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery engine definition.public List<DiscoveryEngineProperties> getAllDiscoveryEngines(String userId, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getAllDiscoveryEngines in class DiscoveryConfigurationServeruserId - identifier of calling userstartingFrom - initial position in the stored list.maximumResults - maximum number of definitions to return on this call.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery engine definitions.public void updateDiscoveryEngine(String userId, String guid, String qualifiedName, String displayName, String description, String typeDescription, String version, String patchLevel, String source, Map<String,String> additionalProperties, Map<String,Object> extendedProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateDiscoveryEngine in class DiscoveryConfigurationServeruserId - identifier of calling userguid - unique identifier of the discovery engine - used to locate the definition.qualifiedName - new value for unique name of discovery engine.displayName - new value for the display name.description - new description for the discovery engine.typeDescription - new description of the type ofg discovery engine.version - new version number for the discovery engine implementation.patchLevel - new patch level for the discovery engine implementation.source - new source description for the implementation of the discovery engine.additionalProperties - additional properties for the discovery engine.extendedProperties - properties to populate the subtype of the discovery engine.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem storing the discovery engine definition.public void deleteDiscoveryEngine(String userId, String guid, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
deleteDiscoveryEngine in class DiscoveryConfigurationServeruserId - identifier of calling userguid - unique identifier of the discovery engine - used to locate the definition.qualifiedName - unique name for the discovery engine.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery engine definition.public String createDiscoveryService(String userId, String qualifiedName, String displayName, String description, Connection connection) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDiscoveryService in class DiscoveryConfigurationServeruserId - identifier of calling userqualifiedName - unique name for the discovery service.displayName - display name for the discovery service.description - description of the analysis provided by the discovery service.connection - connection to instanciate the discovery service implementation.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem storing the discovery service definition.public DiscoveryServiceProperties getDiscoveryServiceByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDiscoveryServiceByGUID in class DiscoveryConfigurationServeruserId - identifier of calling userguid - unique identifier (guid) of the discovery service definition.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery service definition.public DiscoveryServiceProperties getDiscoveryServiceByName(String userId, String name) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDiscoveryServiceByName in class DiscoveryConfigurationServeruserId - identifier of calling username - qualified name or display name (if unique).InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery engine definition.public List<DiscoveryServiceProperties> getAllDiscoveryServices(String userId, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getAllDiscoveryServices in class DiscoveryConfigurationServeruserId - identifier of calling userstartingFrom - initial position in the stored list.maximumResults - maximum number of definitions to return on this call.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery service definitions.public List<String> getDiscoveryServiceRegistrations(String userId, String discoveryServiceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDiscoveryServiceRegistrations in class DiscoveryConfigurationServeruserId - identifier of calling userdiscoveryServiceGUID - discovery service to search for.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery service and/or discovery engine definitions.public void updateDiscoveryService(String userId, String guid, String qualifiedName, String displayName, String shortDescription, String description, String owner, OwnerType ownerType, List<String> zoneMembership, String latestChange, Connection connection, Map<String,String> additionalProperties, Map<String,Object> extendedProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateDiscoveryService in class DiscoveryConfigurationServeruserId - identifier of calling userguid - unique identifier of the discovery service - used to locate the definition.qualifiedName - new value for unique name of discovery service.displayName - new value for the display name.shortDescription - new value for the short description.description - new value for the description.owner - new owner of the discovery service.ownerType - new type for the owner of the discovery service.latestChange - short description of this update.zoneMembership - new list of zones for this discovery service.connection - connection used to create an instance of this discovery service.additionalProperties - additional properties for the discovery engine.extendedProperties - properties to populate the subtype of the discovery service.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem storing the discovery service definition.public void deleteDiscoveryService(String userId, String guid, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
deleteDiscoveryService in class DiscoveryConfigurationServeruserId - identifier of calling userguid - unique identifier of the discovery service - used to locate the definition.qualifiedName - unique name for the discovery service.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery service definition.public void registerDiscoveryServiceWithEngine(String userId, String discoveryEngineGUID, String discoveryServiceGUID, List<String> discoveryRequestTypes, Map<String,String> defaultAnalysisParameters) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
registerDiscoveryServiceWithEngine in class DiscoveryConfigurationServeruserId - identifier of calling userdiscoveryEngineGUID - unique identifier of the discovery engine.discoveryServiceGUID - unique identifier of the discovery service.discoveryRequestTypes - list of discovery request types that this discovery service is able to process.defaultAnalysisParameters - list of analysis parameters that are passed the the discovery service (via
the discovery context). These values can be overridden on the actual discovery request.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery service and/or discovery engine definitions.public RegisteredDiscoveryService getRegisteredDiscoveryService(String userId, String discoveryEngineGUID, String discoveryServiceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getRegisteredDiscoveryService in class DiscoveryConfigurationServeruserId - identifier of calling userdiscoveryEngineGUID - unique identifier of the discovery engine.discoveryServiceGUID - unique identifier of the discovery service.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery service and/or discovery engine definitions.public List<String> getRegisteredDiscoveryServices(String userId, String discoveryEngineGUID, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getRegisteredDiscoveryServices in class DiscoveryConfigurationServeruserId - identifier of calling userdiscoveryEngineGUID - unique identifier of the discovery engine.startingFrom - initial position in the stored list.maximumResults - maximum number of definitions to return on this call.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery service and/or discovery engine definitions.public void unregisterDiscoveryServiceFromEngine(String userId, String discoveryEngineGUID, String discoveryServiceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unregisterDiscoveryServiceFromEngine in class DiscoveryConfigurationServeruserId - identifier of calling userdiscoveryEngineGUID - unique identifier of the discovery engine.discoveryServiceGUID - unique identifier of the discovery service.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the discovery service and/or discovery engine definitions.Copyright © 2018–2020 ODPi. All rights reserved.