FRS
Class DefaultRepositoryServer

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byFRS.DefaultRepositoryServer
All Implemented Interfaces:
IFileRepositoryServer, java.rmi.Remote, java.io.Serializable

public class DefaultRepositoryServer
extends java.rmi.server.UnicastRemoteObject
implements IFileRepositoryServer

Author:
Dario Agostinone Repository Server
See Also:
Serialized Form

Constructor Summary
DefaultRepositoryServer(java.lang.String path)
          Costruttore
 
Method Summary
 void accediInLettura(java.lang.String path, IClientCallBack cl)
          Accede in lettura ad un file
 void accediInScrittura(java.lang.String path, boolean append, IClientCallBack cl)
          Accede in scrittura ad un file
 boolean creaFile(java.lang.String path)
          Crea un file
 void eliminaFile(java.lang.String path)
          Elimina il file caratterizzato dal path = path
 IExecutionMonitor getExecutionMonitor()
          Restituisce l'esxecution monitor
static void main(java.lang.String[] args)
           
 void registra(java.lang.String rep, java.lang.String ipAddress)
          Registra un repository
 IRepository resolve(java.lang.String nome)
          Restituisce il riferimento remoto di un repository a partire dal nome
 
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
 

Constructor Detail

DefaultRepositoryServer

public DefaultRepositoryServer(java.lang.String path)
                        throws java.rmi.RemoteException
Costruttore

Method Detail

getExecutionMonitor

public IExecutionMonitor getExecutionMonitor()
Restituisce l'esxecution monitor


resolve

public IRepository resolve(java.lang.String nome)
Restituisce il riferimento remoto di un repository a partire dal nome


registra

public void registra(java.lang.String rep,
                     java.lang.String ipAddress)
              throws java.rmi.RemoteException
Registra un repository

Specified by:
registra in interface IFileRepositoryServer
Throws:
java.rmi.RemoteException

creaFile

public boolean creaFile(java.lang.String path)
                 throws java.rmi.RemoteException
Crea un file

Specified by:
creaFile in interface IFileRepositoryServer
Throws:
java.rmi.RemoteException

eliminaFile

public void eliminaFile(java.lang.String path)
                 throws java.rmi.RemoteException
Elimina il file caratterizzato dal path = path

Specified by:
eliminaFile in interface IFileRepositoryServer
Throws:
java.rmi.RemoteException

accediInLettura

public void accediInLettura(java.lang.String path,
                            IClientCallBack cl)
                     throws java.rmi.RemoteException
Accede in lettura ad un file

Specified by:
accediInLettura in interface IFileRepositoryServer
Throws:
java.rmi.RemoteException

accediInScrittura

public void accediInScrittura(java.lang.String path,
                              boolean append,
                              IClientCallBack cl)
                       throws java.rmi.RemoteException
Accede in scrittura ad un file

Specified by:
accediInScrittura in interface IFileRepositoryServer
Throws:
java.rmi.RemoteException

main

public static void main(java.lang.String[] args)