Back to the RMI Plug-in for Eclipse

demo.rmi.filesystem.server
Class RemoteFileSystemImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by demo.rmi.filesystem.server.RemoteFileSystemImpl
All Implemented Interfaces:
IRemoteFileSystem, Serializable, Remote

public class RemoteFileSystemImpl
extends UnicastRemoteObject
implements IRemoteFileSystem

This class implements the remote file system interface.

Author:
Genady Beryozkin, rmi-info@genady.net
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
protected RemoteFileSystemImpl()
          Simple constructor that does nothing except exporting the object.
 
Method Summary
 String getHost()
          Return the local hostname.
 IRemoteFile getRemoteFile(String path)
          Return a remote file instance for the given path.
 IRemoteFile[] getRoots()
          Return our local file system roots.
 
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
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

RemoteFileSystemImpl

protected RemoteFileSystemImpl()
                        throws RemoteException
Simple constructor that does nothing except exporting the object.

Throws:
RemoteException
Method Detail

getHost

public String getHost()
               throws RemoteException
Return the local hostname.

Specified by:
getHost in interface IRemoteFileSystem
Throws:
RemoteException

getRemoteFile

public IRemoteFile getRemoteFile(String path)
                          throws RemoteException
Description copied from interface: IRemoteFileSystem
Return a remote file instance for the given path.

Specified by:
getRemoteFile in interface IRemoteFileSystem
Throws:
RemoteException

getRoots

public IRemoteFile[] getRoots()
                       throws RemoteException
Return our local file system roots. TODO: Retrieve only the real local roots and not any mapped drives.

Specified by:
getRoots in interface IRemoteFileSystem
Throws:
RemoteException

Back to the RMI Plug-in for Eclipse


© 2002-18 Genady Beryozkin, rmi-info@genady.net. Read our Privacy policy. Hosted on RimuHosting. Visit Javalobby.