Class DinoViewAdmin
- java.lang.Object
-
- org.odpi.openmetadata.adminservices.configuration.registration.ViewServiceAdmin
-
- org.odpi.openmetadata.viewservices.dino.admin.DinoViewAdmin
-
public class DinoViewAdmin extends ViewServiceAdmin
DinoViewAdmin is the class that is called by the UI Server to initialize and terminate the Dino OMVS. The initialization call provides this OMVS with the Audit log and configuration.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringresourceEndpointsPropertyName-
Fields inherited from class org.odpi.openmetadata.adminservices.configuration.registration.ViewServiceAdmin
remoteServerName, remoteServerURL
-
-
Constructor Summary
Constructors Constructor Description DinoViewAdmin()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<ResourceEndpointConfig>extractResourceEndpoints(List<ResourceEndpointConfig> resourceEndpoints, String viewServiceFullName, AuditLog auditLog)Extract the resource endpoints property from the view services option.voidinitialize(String serverName, ViewServiceConfig viewServiceConfig, AuditLog auditLog, String serverUserName, int maxPageSize)Initialize the Dino view service.voidshutdown()Shutdown the dino view service.-
Methods inherited from class org.odpi.openmetadata.adminservices.configuration.registration.ViewServiceAdmin
logBadConfigProperties, logBadConfiguration, throwUnexpectedInitializationException
-
-
-
-
Field Detail
-
resourceEndpointsPropertyName
protected String resourceEndpointsPropertyName
-
-
Method Detail
-
initialize
public void initialize(String serverName, ViewServiceConfig viewServiceConfig, AuditLog auditLog, String serverUserName, int maxPageSize) throws OMAGConfigurationErrorException
Initialize the Dino view service.- Specified by:
initializein classViewServiceAdmin- Parameters:
serverName- name of the local serverviewServiceConfig- specific configuration properties for this view service.auditLog- audit log component for logging messages.serverUserName- user id to use to issue calls to the remote server.maxPageSize- maximum page size. 0 means unlimited- Throws:
OMAGConfigurationErrorException- invalid parameters in the configuration properties.
-
shutdown
public void shutdown()
Shutdown the dino view service.- Specified by:
shutdownin classViewServiceAdmin
-
extractResourceEndpoints
protected List<ResourceEndpointConfig> extractResourceEndpoints(List<ResourceEndpointConfig> resourceEndpoints, String viewServiceFullName, AuditLog auditLog) throws OMAGConfigurationErrorException
Extract the resource endpoints property from the view services option.- Parameters:
resourceEndpoints- options passed to the access service.viewServiceFullName- name of calling serviceauditLog- audit log for error messages- Returns:
- null or list of resource endpoints
- Throws:
OMAGConfigurationErrorException- the supported zones property is not a list of zone names.
-
-