net.rmi.rjs.pk.rmiFileTransfer
Class FileServerImplementation
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
net.rmi.rjs.pk.rmiFileTransfer.FileServerImplementation
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, FileTransInterface
public class FileServerImplementation
- extends java.rmi.server.UnicastRemoteObject
- implements FileTransInterface
Created by IntelliJ IDEA. User: pkrepszt Date: Mar 13, 2005 Time:
7:25:37 PM To change this template use File | Settings | File
Templates.
- See Also:
- Serialized Form
Method Summary |
BenchMarkBean |
getBenchMarkBean()
|
java.io.File |
getFile(java.lang.String fileName,
java.lang.String ip)
|
boolean |
getIsOnTheGrid()
|
boolean |
isAwake()
|
void |
putFile(java.lang.String fileName,
byte[] data)
Call this method to put data into the file system of
a remote server. |
void |
putJob(RemoteJob rj,
java.lang.String wsAnwserURL)
This is implements in the computer server in order
to obtain a job, executed and return the answer to the LUS
via the putFile. |
java.lang.String |
putURL(java.lang.String URL,
java.lang.String webServerIP,
java.lang.String lusIpAddress)
|
void |
runLusAnwserFactory(java.lang.String fileName,
byte[] data,
java.lang.String wsAnwserURL)
|
void |
setIsOnTheGrid(boolean b)
|
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
FileServerImplementation
public FileServerImplementation(JInfoFrame jif)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
isAwake
public boolean isAwake()
throws java.rmi.RemoteException
- Specified by:
isAwake
in interface FileTransInterface
- Throws:
java.rmi.RemoteException
setIsOnTheGrid
public void setIsOnTheGrid(boolean b)
throws java.rmi.RemoteException
- Specified by:
setIsOnTheGrid
in interface FileTransInterface
- Throws:
java.rmi.RemoteException
getIsOnTheGrid
public boolean getIsOnTheGrid()
throws java.rmi.RemoteException
- Specified by:
getIsOnTheGrid
in interface FileTransInterface
- Throws:
java.rmi.RemoteException
putJob
public void putJob(RemoteJob rj,
java.lang.String wsAnwserURL)
throws java.rmi.RemoteException
- This is implements in the computer server in order
to obtain a job, executed and return the answer to the LUS
via the putFile.
- Specified by:
putJob
in interface FileTransInterface
- Parameters:
rj
-
- Throws:
java.rmi.RemoteException
putFile
public void putFile(java.lang.String fileName,
byte[] data)
throws java.rmi.RemoteException
- Call this method to put data into the file system of
a remote server.
Use this to put an answer into the LUS from the CS.
- Specified by:
putFile
in interface FileTransInterface
- Parameters:
fileName
- data
-
- Throws:
java.rmi.RemoteException
putURL
public java.lang.String putURL(java.lang.String URL,
java.lang.String webServerIP,
java.lang.String lusIpAddress)
throws java.rmi.RemoteException
- Specified by:
putURL
in interface FileTransInterface
- Throws:
java.rmi.RemoteException
getBenchMarkBean
public BenchMarkBean getBenchMarkBean()
throws java.rmi.RemoteException
- Specified by:
getBenchMarkBean
in interface FileTransInterface
- Throws:
java.rmi.RemoteException
getFile
public java.io.File getFile(java.lang.String fileName,
java.lang.String ip)
throws java.rmi.RemoteException
- Specified by:
getFile
in interface FileTransInterface
- Throws:
java.rmi.RemoteException
runLusAnwserFactory
public void runLusAnwserFactory(java.lang.String fileName,
byte[] data,
java.lang.String wsAnwserURL)
- Specified by:
runLusAnwserFactory
in interface FileTransInterface