Package thredds.server.catalog.tracker
Class CatalogTracker
- java.lang.Object
-
- thredds.server.catalog.tracker.CatalogTracker
-
public class CatalogTracker extends Object
Track the list of catalogs. Used to check if any have changed, without having to read the catalog tree.- Since:
- 6/22/2015
-
-
Constructor Summary
Constructors Constructor Description CatalogTracker(String pathname, boolean startOver, int expectedSize, long nextCatId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CatalogExtget(String path)Iterable<? extends CatalogExt>getCatalogs()longgetNextCatId()longput(CatalogExt cat)CatalogExtremoveCatalog(String catPath)voidsave()intsize()
-
-
-
Constructor Detail
-
CatalogTracker
public CatalogTracker(String pathname, boolean startOver, int expectedSize, long nextCatId)
-
-
Method Detail
-
put
public long put(CatalogExt cat)
-
get
public CatalogExt get(String path)
-
removeCatalog
public CatalogExt removeCatalog(String catPath)
-
getCatalogs
public Iterable<? extends CatalogExt> getCatalogs()
-
save
public void save() throws IOException- Throws:
IOException
-
size
public int size()
-
getNextCatId
public long getNextCatId()
-
-