Source code: com/neuron/jaffer/AFP_Volume.java
1 /*
2 * Copyright (c) 2003 Stewart Allen <stewart@neuron.com>. All rights reserved.
3 * This program is free software. See the 'License' file for details.
4 */
5
6 package com.neuron.jaffer;
7
8 import java.io.*;
9 import java.net.*;
10 import java.util.*;
11
12 public abstract class AFP_Volume implements AFP_Constants
13 {
14 private int id; // assigned by the AFP Server
15
16 public abstract String getName()
17 ;
18
19 public abstract int getCreateDate()
20 ;
21
22 public abstract int getBackupDate()
23 ;
24
25 public abstract int getModifiedDate()
26 ;
27
28 public abstract void setBackupDate(int d)
29 ;
30
31 public abstract void setModifiedDate(int d)
32 ;
33
34 // flat, fixed, variable
35 public abstract int getSignature()
36 ;
37
38 public abstract int getAttributes()
39 ;
40
41 public abstract void setAttributes(int attr)
42 ;
43
44 public abstract int getBlockSize()
45 ;
46
47 public abstract int getBytesFree()
48 ;
49
50 public abstract int getBytesTotal()
51 ;
52
53 public abstract long getExtBytesFree()
54 ;
55
56 public abstract long getExtBytesTotal()
57 ;
58
59 public abstract String getPassword()
60 ;
61
62 public abstract boolean hasUnixPrivs()
63 ;
64
65 // 0-16=reserved. 0=invalid, 1=root's parent, 2=root
66 public abstract AFP_CNode getCNode(int id)
67 ;
68
69 public int getID()
70 {
71 return id;
72 }
73
74 public void setID(int id)
75 {
76 this.id = id;
77 }
78 }
79