Package thredds.server.opendap
Class GuardedDatasetCacheAndClone
- java.lang.Object
-
- thredds.server.opendap.GuardedDatasetCacheAndClone
-
- All Implemented Interfaces:
Closeable,AutoCloseable,GuardedDataset
@Immutable public class GuardedDatasetCacheAndClone extends Object implements GuardedDataset
This creates and caches DDS, DAS, then clones them when they are needed.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description GuardedDatasetCacheAndClone(String reqPath, ucar.nc2.NetcdfFile ncfile, boolean hasSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()opendap.dap.DASgetDAS()Get the DAS for this Dataset.ServerDDSgetDDS()Get the DDS for this Dataset.voidrelease()Release the lock, if any, on this dataset.StringtoString()
-
-
-
Constructor Detail
-
GuardedDatasetCacheAndClone
public GuardedDatasetCacheAndClone(String reqPath, ucar.nc2.NetcdfFile ncfile, boolean hasSession)
-
-
Method Detail
-
release
public void release()
Description copied from interface:GuardedDatasetRelease the lock, if any, on this dataset.- Specified by:
releasein interfaceGuardedDataset
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceGuardedDataset
-
getDDS
public ServerDDS getDDS()
Description copied from interface:GuardedDatasetGet the DDS for this Dataset.- Specified by:
getDDSin interfaceGuardedDataset- Returns:
- the ServerDDS
-
getDAS
public opendap.dap.DAS getDAS()
Description copied from interface:GuardedDatasetGet the DAS for this Dataset.- Specified by:
getDASin interfaceGuardedDataset- Returns:
- the DAS
-
-