dods.servers.agg
Class Dataset

java.lang.Object
  extended by dods.servers.agg.Dataset
All Implemented Interfaces:
GuardedDataset
Direct Known Subclasses:
AggDataset, DODSDataset, NcDataset

public abstract class Dataset
extends Object
implements GuardedDataset


Constructor Summary
protected Dataset(String extPath, String intPath, InvCatalog.Dataset invDS)
           
 
Method Summary
 void acquire()
           
 boolean attempt(long msecs)
           
abstract  void close()
           
 InvCatalog.Dataset getCatalogDataset()
           
protected abstract  DDS getClientDDS()
           
abstract  DAS getDAS()
          Get the DAS for this Dataset.
abstract  ServerDDS getDDS()
          Get the DDS for this Dataset.
 String getExternalPath()
           
 String getInternalPath()
           
 boolean isLockedByMe()
           
 void release()
          Release the lock, if any, on this dataset.
 void setDebug(boolean b)
           
 String whoHasLock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dataset

protected Dataset(String extPath,
                  String intPath,
                  InvCatalog.Dataset invDS)
Method Detail

getDDS

public abstract ServerDDS getDDS()
Description copied from interface: GuardedDataset
Get the DDS for this Dataset.

Specified by:
getDDS in interface GuardedDataset
Returns:
the ServerDDS

getDAS

public abstract DAS getDAS()
Description copied from interface: GuardedDataset
Get the DAS for this Dataset.

Specified by:
getDAS in interface GuardedDataset
Returns:
the DAS

close

public abstract void close()
                    throws IOException
Throws:
IOException

getClientDDS

protected abstract DDS getClientDDS()

getExternalPath

public String getExternalPath()

getInternalPath

public String getInternalPath()

getCatalogDataset

public InvCatalog.Dataset getCatalogDataset()

setDebug

public void setDebug(boolean b)

acquire

public void acquire()

attempt

public boolean attempt(long msecs)

release

public void release()
Description copied from interface: GuardedDataset
Release the lock, if any, on this dataset.

Specified by:
release in interface GuardedDataset

isLockedByMe

public boolean isLockedByMe()

whoHasLock

public String whoHasLock()