public class AssetConsumerServicesInstance extends Object
| Constructor and Description |
|---|
AssetConsumerServicesInstance(OMRSRepositoryConnector repositoryConnector,
List<String> supportedZones,
OMRSAuditLog auditLog)
Set up the local repository connector that will service the REST Calls.
|
| Modifier and Type | Method and Description |
|---|---|
OMRSAuditLog |
getAuditLog()
Return the audit log for this access service.
|
OMRSMetadataCollection |
getMetadataCollection()
Return the local metadata collection for this server.
|
OMRSRepositoryConnector |
getRepositoryConnector()
Return the repository connector for this server.
|
String |
getServerName()
Return the server name.
|
List<String> |
getSupportedZones()
Return the list of zones that this instance of the Asset Consumer OMAS should support.
|
void |
shutdown()
Unregister this instance from the instance map.
|
public AssetConsumerServicesInstance(OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, OMRSAuditLog auditLog) throws NewInstanceException
repositoryConnector - link to the repository responsible for servicing the REST calls.supportedZones - list of zones that AssetConsumer is allowed to serve Assets from.NewInstanceException - a problem occurred during initializationpublic List<String> getSupportedZones()
public OMRSAuditLog getAuditLog()
public String getServerName() throws NewInstanceException
NewInstanceException - a problem occurred during initializationpublic OMRSMetadataCollection getMetadataCollection() throws PropertyServerException
PropertyServerException - the instance has not been initialized successfullypublic OMRSRepositoryConnector getRepositoryConnector() throws PropertyServerException
PropertyServerException - the instance has not been initialized successfullypublic void shutdown()
Copyright © 2018–2019 ODPi. All rights reserved.