demo.rmi.filesystem.server
Class RemoteFileSystemImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
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
Constructor Summary |
protected |
RemoteFileSystemImpl()
Simple constructor that does nothing except exporting the object. |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
RemoteFileSystemImpl
protected RemoteFileSystemImpl()
throws RemoteException
- Simple constructor that does nothing except exporting the object.
- Throws:
RemoteException
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
© 2002-18 Genady Beryozkin, rmi-info@genady.net.
Read our Privacy policy. Hosted on RimuHosting. Visit Javalobby.