net.rmi.dfs
Class DFSImplementation

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by net.rmi.dfs.DFSImplementation
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, DFSInterface

public class DFSImplementation
extends java.rmi.server.UnicastRemoteObject
implements DFSInterface

See Also:
Serialized Form

Field Summary
static java.lang.String REMOTE_NAME
           
 
Constructor Summary
DFSImplementation()
           
 
Method Summary
 void cd(java.lang.String dir)
           
 byte[] getFile(java.lang.String fileName)
           
 java.lang.String[] ls()
           
 void mkdir(java.lang.String dir)
           
 void putFile(java.lang.String fileName, byte[] data)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

REMOTE_NAME

public static java.lang.String REMOTE_NAME
Constructor Detail

DFSImplementation

public DFSImplementation()
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

getFile

public byte[] getFile(java.lang.String fileName)
               throws java.rmi.RemoteException
Specified by:
getFile in interface DFSInterface
Throws:
java.rmi.RemoteException

putFile

public void putFile(java.lang.String fileName,
                    byte[] data)
             throws java.rmi.RemoteException
Specified by:
putFile in interface DFSInterface
Throws:
java.rmi.RemoteException

ls

public java.lang.String[] ls()
                      throws java.rmi.RemoteException
Specified by:
ls in interface DFSInterface
Throws:
java.rmi.RemoteException

mkdir

public void mkdir(java.lang.String dir)
           throws java.rmi.RemoteException
Specified by:
mkdir in interface DFSInterface
Throws:
java.rmi.RemoteException

cd

public void cd(java.lang.String dir)
        throws java.rmi.RemoteException
Specified by:
cd in interface DFSInterface
Throws:
java.rmi.RemoteException