public class VitamCounterService extends Object
| Constructor and Description |
|---|
VitamCounterService(MongoDbAccessAdminImpl dbConfiguration,
List<Integer> tenants,
Map<Integer,List<String>> externalIdentifiers)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
VitamSequence |
getNextBackupSequenceDocument(Integer tenant,
SequenceType sequenceType)
Atomically find a backup sequence and update it, returning updated document.
|
Integer |
getNextSequence(Integer tenant,
SequenceType sequenceType)
Atomically find a sequence and update it.
|
String |
getNextSequenceAsString(Integer tenant,
SequenceType sequenceType)
Atomically find a sequence and update it.
|
Integer |
getSequence(Integer tenant,
SequenceType sequenceType)
Get the last sequence functional collection
|
VitamSequence |
getSequenceDocument(Integer tenant,
SequenceType sequenceType) |
boolean |
isSlaveFunctionnalCollectionOnTenant(FunctionalAdminCollections collection,
Integer tenant) |
public VitamCounterService(MongoDbAccessAdminImpl dbConfiguration, List<Integer> tenants, Map<Integer,List<String>> externalIdentifiers) throws VitamException
dbConfiguration - tenants - externalIdentifiers - VitamExceptionpublic String getNextSequenceAsString(Integer tenant, SequenceType sequenceType) throws ReferentialException
tenant - sequenceType - ReferentialExceptionpublic Integer getNextSequence(Integer tenant, SequenceType sequenceType) throws ReferentialException
tenant - sequenceType - InvalidCreateOperationExceptionInvalidParseOperationExceptionReferentialExceptionpublic VitamSequence getNextBackupSequenceDocument(Integer tenant, SequenceType sequenceType) throws ReferentialException
tenant - sequenceType - InvalidCreateOperationExceptionInvalidParseOperationExceptionReferentialExceptionpublic Integer getSequence(Integer tenant, SequenceType sequenceType) throws ReferentialException
tenant - sequenceType - ReferentialExceptionpublic VitamSequence getSequenceDocument(Integer tenant, SequenceType sequenceType) throws ReferentialException
ReferentialExceptionpublic boolean isSlaveFunctionnalCollectionOnTenant(FunctionalAdminCollections collection, Integer tenant)
Copyright © 2018 Vitam. All rights reserved.