public class DataEngineProcessHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROCESS_GUID_PARAMETER_NAME |
| Constructor and Description |
|---|
DataEngineProcessHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
AssetHandler<Process> assetHandler,
DataEngineRegistrationHandler registrationHandler,
DataEngineCommonHandler dataEngineCommonHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
String |
createProcess(String userId,
Process process,
String externalSourceName)
Create the process
|
Optional<EntityDetail> |
findProcessEntity(String userId,
String qualifiedName)
Find out if the Process object is already stored in the repository.
|
Set<EntityDetail> |
getPortsForProcess(String userId,
String processGUID,
String portTypeName)
Retrieve all port objects that are connected to the process
|
void |
removeProcess(String userId,
String processGUID,
String externalSourceName,
DeleteSemantic deleteSemantic)
Remove the process
|
void |
updateProcess(String userId,
EntityDetail originalProcessEntity,
Process updatedProcess,
String externalSourceName)
Update the process
|
void |
updateProcessStatus(String userId,
String processGUID,
InstanceStatus instanceStatus,
String externalSourceName)
Update the process instance status
|
void |
upsertProcessHierarchyRelationship(String userId,
ParentProcess parentProcess,
String processGUID,
String externalSourceName) |
public static final String PROCESS_GUID_PARAMETER_NAME
public DataEngineProcessHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, AssetHandler<Process> assetHandler, DataEngineRegistrationHandler registrationHandler, DataEngineCommonHandler dataEngineCommonHandler)
serviceName - name of this serviceserverName - name of the local serverinvalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesrepositoryHelper - provides utilities for manipulating the repository services objectsassetHandler - provides utilities for manipulating the repository services assetsdataEngineCommonHandler - provides utilities for manipulating entitiesregistrationHandler - provides utilities for manipulating software server capability entitiespublic String createProcess(String userId, Process process, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocess - the values of the processexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void updateProcess(String userId, EntityDetail originalProcessEntity, Process updatedProcess, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling useroriginalProcessEntity - the created process entityupdatedProcess - the new values of the processexternalSourceName - the external data engineInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic Optional<EntityDetail> findProcessEntity(String userId, String qualifiedName) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException
userId - the name of the calling userqualifiedName - the qualifiedName name of the process to be searchedInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void updateProcessStatus(String userId, String processGUID, InstanceStatus instanceStatus, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocessGUID - the process GUIDinstanceStatus - the status of the processexternalSourceName - the external data engineInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic Set<EntityDetail> getPortsForProcess(String userId, String processGUID, String portTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocessGUID - the unique identifier of the processportTypeName - the type of the port to be retrievedInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void upsertProcessHierarchyRelationship(String userId, ParentProcess parentProcess, String processGUID, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
public void removeProcess(String userId, String processGUID, String externalSourceName, DeleteSemantic deleteSemantic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, FunctionNotSupportedException
userId - the name of the calling userprocessGUID - unique identifier of the port to be removedexternalSourceName - the external data enginedeleteSemantic - the delete semanticInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverFunctionNotSupportedException - the repository does not support this call.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.