public abstract static class Archiver.Abstract extends Object implements Archiver
Modifier and Type | Class and Description |
---|---|
protected static class |
Archiver.Abstract.PointReference
Point reference.
|
Archiver.Abstract, Archiver.Attic
ARCHIVER_PROPERTIES, ATTIC_IMPLEMENTATION_CLASS_PROPERTY, ATTIC_PROPERTIES, DEFAULT_ATTIC_IMPLEMENTATION_CLASS, DISABLED_PROPERTY, STORE_REMOVED_EVENT
Constructor and Description |
---|
Abstract() |
Modifier and Type | Method and Description |
---|---|
protected void |
archive(Archiver.Abstract.PointReference pointReference,
DateTime scanTime)
Archives a point.
|
void |
archive(Point point)
Archives a point.
|
void |
commit()
Commits.
|
protected void |
commitAttic()
Commits the attic.
|
Optional<Archiver.Attic> |
getAttic()
Gets the attic.
|
protected Optional<Archiver.Abstract.PointReference> |
getPointReference(Point point)
Gets a point reference.
|
protected Collection<Archiver.Abstract.PointReference> |
getPointReferences()
Gets the point references.
|
protected KeyedGroups |
getProperties()
Gets the properties.
|
protected StoreServiceAppImpl |
getStoreAppImpl()
Gets the storeAppImpl.
|
protected Logger |
getThisLogger()
Gets this logger.
|
protected boolean |
isDisabled()
Asks if disabled.
|
boolean |
setUp(StoreServiceAppImpl storeAppImpl)
Sets up this.
|
protected boolean |
setUpAttic(KeyedGroups atticProperties,
Config config,
File dataDir)
Sets up the attic.
|
boolean |
setUpPoints()
Sets up points.
|
void |
tearDown()
Tears down what has been set up.
|
protected void |
updateStats()
Updates the stats.
|
public void archive(Point point) throws ServiceNotAvailableException
archive
in interface Archiver
point
- The point.ServiceNotAvailableException
- When service not available.public Optional<Archiver.Attic> getAttic()
public boolean setUp(StoreServiceAppImpl storeAppImpl)
public boolean setUpPoints()
setUpPoints
in interface Archiver
public void tearDown()
protected void archive(@Nonnull Archiver.Abstract.PointReference pointReference, @Nonnull DateTime scanTime) throws ServiceNotAvailableException
pointReference
- The point reference.scanTime
- The scan time.ServiceNotAvailableException
- When service is not available.protected void commitAttic()
@Nonnull @CheckReturnValue protected Optional<Archiver.Abstract.PointReference> getPointReference(@Nonnull Point point)
point
- The point.@Nonnull @CheckReturnValue protected Collection<Archiver.Abstract.PointReference> getPointReferences()
@Nonnull @CheckReturnValue protected KeyedGroups getProperties()
@Nonnull @CheckReturnValue protected StoreServiceAppImpl getStoreAppImpl()
@Nonnull @CheckReturnValue protected Logger getThisLogger()
@CheckReturnValue protected boolean isDisabled()
protected boolean setUpAttic(@Nonnull KeyedGroups atticProperties, @Nonnull Config config, @Nonnull File dataDir)
atticProperties
- The attic properties.config
- The config.dataDir
- The data directory.protected void updateStats()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.