public abstract class ViewServiceAdmin extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
remoteServerName |
protected String |
remoteServerURL |
| Constructor and Description |
|---|
ViewServiceAdmin() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
initialize(String serverName,
ViewServiceConfig viewServiceConfigurationProperties,
AuditLog auditLog,
String serverUserName,
int maxPageSize)
Initialize the view service.
|
abstract void |
shutdown()
Shutdown the view service.
|
protected void |
throwUnexpectedInitializationException(String actionDescription,
String fullViewServiceName,
Throwable error)
Log that an unexpected exception was received during start up.
|
protected final String remoteServerName
protected final String remoteServerURL
public abstract void initialize(String serverName, ViewServiceConfig viewServiceConfigurationProperties, AuditLog auditLog, String serverUserName, int maxPageSize) throws OMAGConfigurationErrorException
serverName - name of the local serverviewServiceConfigurationProperties - specific configuration properties for this view service.auditLog - audit log component for logging messages.serverUserName - user id to use on OMRS calls where there is no end user.maxPageSize - maximum page size. 0 means unlimitedOMAGConfigurationErrorException - invalid parameters in the configuration properties.public abstract void shutdown()
protected void throwUnexpectedInitializationException(String actionDescription, String fullViewServiceName, Throwable error) throws OMAGConfigurationErrorException
actionDescription - calling methodfullViewServiceName - name of the view serviceerror - exception that was caughtOMAGConfigurationErrorException - wrapped exceptionCopyright © 2018–2020 ODPi. All rights reserved.