1 17 package org.alfresco.filesys.server.filesys; 18 19 import org.alfresco.filesys.smb.PCShare; 20 21 29 public class SrvDiskInfo extends DiskInfo 30 { 31 32 35 public SrvDiskInfo() 36 { 37 } 38 39 47 public SrvDiskInfo(int totunits, int blkunit, int blksiz, int freeunit) 48 { 49 super(null, (long) totunits, blkunit, blksiz, (long) freeunit); 50 } 51 52 60 public SrvDiskInfo(long totunits, long blkunit, long blksiz, long freeunit) 61 { 62 super(null, totunits, (int) blkunit, (int) blksiz, freeunit); 63 } 64 65 74 protected SrvDiskInfo(PCShare shr, int totunits, int blkunit, int blksiz, int freeunit) 75 { 76 super(shr, totunits, blkunit, blksiz, freeunit); 77 } 78 79 84 public final void setBlockSize(int siz) 85 { 86 m_blocksize = siz; 87 } 88 89 94 public final void setBlocksPerAllocationUnit(int blks) 95 { 96 m_blockperunit = blks; 97 } 98 99 104 public final void setFreeUnits(int units) 105 { 106 m_freeunits = units; 107 } 108 109 114 public final void setTotalUnits(int units) 115 { 116 m_totalunits = units; 117 } 118 119 124 public final void setBlockSize(long siz) 125 { 126 m_blocksize = siz; 127 } 128 129 134 public final void setBlocksPerAllocationUnit(long blks) 135 { 136 m_blockperunit = blks; 137 } 138 139 144 public final void setFreeUnits(long units) 145 { 146 m_freeunits = units; 147 } 148 149 154 public final void setTotalUnits(long units) 155 { 156 m_totalunits = units; 157 } 158 159 164 protected final void setNodeName(String name) 165 { 166 m_nodename = name; 167 } 168 169 174 protected final void setShareName(String name) 175 { 176 m_share = name; 177 } 178 179 184 public final void copyFrom(SrvDiskInfo disk) 185 { 186 187 189 setBlockSize(disk.getBlockSize()); 190 setBlocksPerAllocationUnit(disk.getBlocksPerAllocationUnit()); 191 192 setFreeUnits(disk.getFreeUnits()); 193 setTotalUnits(disk.getTotalUnits()); 194 } 195 } | Popular Tags |