Save This Page
Home » apache-ivy-2.1.0-bin-with-deps » example.filesystem » backend » [javadoc | source]
    1   package example.filesystem.backend;
    2   
    3   import java.util.List;
    4   import java.util.ArrayList;
    5   
    6   
    7   /**
    8    * This is a mock filesystem to act as the backend for the example FileSystemService
    9    *
   10    * @author Sal Campana
   11    */
   12   public class UnixFileSystem implements FileSystem
   13   {
   14   
   15       private String m_mountPoint="/usr";
   16       private String m_type = "vxfs";
   17       private int m_backupFrequency=0;
   18       private int m_fsckPassNumber=2;
   19       private List m_options;
   20       private String m_comment="user files";
   21       private String m_deviceSpecialFile = "/dev/vg00/lvol7";
   22   
   23       public UnixFileSystem(String devicePath)
   24       {
   25           m_deviceSpecialFile = devicePath;
   26           m_options = new ArrayList();
   27           m_options.add("delaylog");
   28           m_options.add("quota");
   29       }
   30   
   31       public String getDeviceSpecialFile()
   32       {
   33           return m_deviceSpecialFile;
   34       }
   35       public String getMountPoint()
   36       {
   37           return m_mountPoint;
   38       }
   39       public void setMountPoint(String mountDir)
   40       {
   41           m_mountPoint=mountDir;
   42       }
   43       public String getType()
   44       {
   45           return m_type;
   46       }
   47   
   48       public int getBackupFrequency()
   49       {
   50           return m_backupFrequency;
   51       }
   52   
   53       public void setBackupFrequency(int backupFrequency)
   54       {
   55           m_backupFrequency = backupFrequency;
   56       }
   57   
   58       public List getOptions()
   59       {
   60           return m_options;
   61       }
   62   
   63       public void setOptions(List options)
   64       {
   65           m_options = options;
   66       }
   67   
   68       public String getComment()
   69       {
   70           return m_comment;
   71       }
   72   
   73       public void setComment(String comment)
   74       {
   75           m_comment = comment;
   76       }
   77   
   78       public int getFsckPassNumber()
   79       {
   80           return m_fsckPassNumber;
   81       }
   82   
   83       public void setFsckPassNumber(int fsckPassNumber)
   84       {
   85           m_fsckPassNumber = fsckPassNumber;
   86       }
   87   }

Save This Page
Home » apache-ivy-2.1.0-bin-with-deps » example.filesystem » backend » [javadoc | source]