You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pubscribe-commits@ws.apache.org by sc...@apache.org on 2005/07/29 18:52:35 UTC
svn commit: r226398 - in
/webservices/pubscribe/trunk/src/examples/filesystem/src/java/example/filesystem/backend:
FileSystem.java UnixFileSystem.java
Author: scamp
Date: Fri Jul 29 09:52:33 2005
New Revision: 226398
URL: http://svn.apache.org/viewcvs?rev=226398&view=rev
Log: (empty)
Modified:
webservices/pubscribe/trunk/src/examples/filesystem/src/java/example/filesystem/backend/FileSystem.java
webservices/pubscribe/trunk/src/examples/filesystem/src/java/example/filesystem/backend/UnixFileSystem.java
Modified: webservices/pubscribe/trunk/src/examples/filesystem/src/java/example/filesystem/backend/FileSystem.java
URL: http://svn.apache.org/viewcvs/webservices/pubscribe/trunk/src/examples/filesystem/src/java/example/filesystem/backend/FileSystem.java?rev=226398&r1=226397&r2=226398&view=diff
==============================================================================
--- webservices/pubscribe/trunk/src/examples/filesystem/src/java/example/filesystem/backend/FileSystem.java (original)
+++ webservices/pubscribe/trunk/src/examples/filesystem/src/java/example/filesystem/backend/FileSystem.java Fri Jul 29 09:52:33 2005
@@ -30,4 +30,10 @@
int getFsckPassNumber();
void setFsckPassNumber(int fsckPassNumber);
+
+ void mount() throws Exception;
+
+ void unmount() throws Exception;
+
+ boolean isMounted();
}
Modified: webservices/pubscribe/trunk/src/examples/filesystem/src/java/example/filesystem/backend/UnixFileSystem.java
URL: http://svn.apache.org/viewcvs/webservices/pubscribe/trunk/src/examples/filesystem/src/java/example/filesystem/backend/UnixFileSystem.java?rev=226398&r1=226397&r2=226398&view=diff
==============================================================================
--- webservices/pubscribe/trunk/src/examples/filesystem/src/java/example/filesystem/backend/UnixFileSystem.java (original)
+++ webservices/pubscribe/trunk/src/examples/filesystem/src/java/example/filesystem/backend/UnixFileSystem.java Fri Jul 29 09:52:33 2005
@@ -16,14 +16,14 @@
private String m_type = "vxfs";
private int m_backupFrequency=0;
private int m_fsckPassNumber=2;
- private List m_options;
+ private List m_options = new ArrayList();
private String m_comment="user files";
private String m_deviceSpecialFile = "/dev/vg00/lvol7";
+ private boolean m_isMounted = true;
public UnixFileSystem(String devicePath)
{
m_deviceSpecialFile = devicePath;
- m_options = new ArrayList();
m_options.add("delaylog");
m_options.add("quota");
}
@@ -83,5 +83,20 @@
public void setFsckPassNumber(int fsckPassNumber)
{
m_fsckPassNumber = fsckPassNumber;
+ }
+
+ public void mount() throws Exception
+ {
+ m_isMounted = true;
+ }
+
+ public void unmount() throws Exception
+ {
+ m_isMounted = false;
+ }
+
+ public boolean isMounted()
+ {
+ return m_isMounted;
}
}