medi.db.util
Class Volume2Db

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--medi.db.util.Volume2Db
All Implemented Interfaces:
java.lang.Runnable

public class Volume2Db
extends java.lang.Thread

Captures volume information and puts it into the database.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Volume2Db()
          Creates new Volume2Db
Volume2Db(Provider pPrv)
          Creates new Volume2Db
Volume2Db(Provider pPrv, java.io.File mPoint, java.lang.String pVolumeName, java.lang.String pVolumeType, java.lang.Integer pContainerID)
          Creates a new Volume2Db.
 
Method Summary
 void run()
          Thread's run method.
 void scan()
          Starts scanning a volume and putting information in the database.
 void setContainerID(java.lang.Integer pContainerID)
          Sets the container ID.
 void setMain(MediMain pMm)
          Sets a reference to the main class.
 void setMountPoint(java.io.File mPoint)
          Sets the starting mount point.
 void setProvider(Provider pPrv)
          Sets the provider to use.
 void setVolumeName(java.lang.String pVolumeName)
          Sets the volume name.
 void setVolumeType(java.lang.String pVolumeType)
          Sets the volume type.
 void stopScan()
          Stops scanning files.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Volume2Db

public Volume2Db()
Creates new Volume2Db


Volume2Db

public Volume2Db(Provider pPrv)
Creates new Volume2Db

Parameters:
pPrv - The provider to use.

Volume2Db

public Volume2Db(Provider pPrv,
                 java.io.File mPoint,
                 java.lang.String pVolumeName,
                 java.lang.String pVolumeType,
                 java.lang.Integer pContainerID)
Creates a new Volume2Db.

Parameters:
pPrv - The provider to use.
mPoint - The starting mount point.
pVolumeName - The volume name.
pVolumeType - The volume type.
pContainerID - The container ID.
Method Detail

setProvider

public void setProvider(Provider pPrv)
Sets the provider to use.

Parameters:
pPrv - The provider to use.

setMountPoint

public void setMountPoint(java.io.File mPoint)
Sets the starting mount point.

Parameters:
mPoint - The starting mount point.

setVolumeType

public void setVolumeType(java.lang.String pVolumeType)
Sets the volume type.

Parameters:
pVolumeType - The volume type.

setVolumeName

public void setVolumeName(java.lang.String pVolumeName)
Sets the volume name.

Parameters:
pVolumeName - The volume name.

setContainerID

public void setContainerID(java.lang.Integer pContainerID)
Sets the container ID.

Parameters:
pContainerID - The container ID.

setMain

public void setMain(MediMain pMm)
Sets a reference to the main class.

Parameters:
pMm - The main class.

scan

public void scan()
Starts scanning a volume and putting information in the database.


stopScan

public void stopScan()
Stops scanning files.


run

public void run()
Thread's run method.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread