net.rmi.rjs
Class RmiFileServerImplementation
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
net.rmi.rjs.RmiFileServerImplementation
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, RMIFileServerInterface
public class RmiFileServerImplementation
- extends java.rmi.server.UnicastRemoteObject
- implements RMIFileServerInterface
- See Also:
- Serialized Form
Method Summary |
byte[] |
getFile(java.lang.String fileName)
|
java.lang.String |
getMsg()
|
void |
putFile(java.lang.String fileName,
byte[] data)
|
void |
testGetMsg()
|
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 |
REMOTE_NAME
public static java.lang.String REMOTE_NAME
RmiFileServerImplementation
public RmiFileServerImplementation()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
testGetMsg
public void testGetMsg()
throws java.rmi.RemoteException
- Specified by:
testGetMsg
in interface RMIFileServerInterface
- Throws:
java.rmi.RemoteException
getMsg
public java.lang.String getMsg()
throws java.rmi.RemoteException
- Specified by:
getMsg
in interface RMIFileServerInterface
- Throws:
java.rmi.RemoteException
putFile
public void putFile(java.lang.String fileName,
byte[] data)
throws java.rmi.RemoteException
- Specified by:
putFile
in interface RMIFileServerInterface
- Throws:
java.rmi.RemoteException
getFile
public byte[] getFile(java.lang.String fileName)
throws java.rmi.RemoteException
- Specified by:
getFile
in interface RMIFileServerInterface
- Throws:
java.rmi.RemoteException