FRS
Class defaultRepository

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

public class defaultRepository
extends java.rmi.server.UnicastRemoteObject
implements IRepository

Author:
Dario Agostinone Implementazione del Repository
See Also:
Serialized Form

Constructor Summary
defaultRepository(java.lang.String home)
          Costruttore
 
Method Summary
 void createFile(java.lang.String path)
          Crea un file nel repository
 ISessioneLettura createProxyLettura(java.lang.String path, ITerminazioneSessione termList, IClientCallBack client, IExecutionMonitor monitor)
          crea un proxy di lettura
 ISessioneScrittura createProxyScrittura(java.lang.String path, boolean append, ITerminazioneSessione termList, IClientCallBack client, IExecutionMonitor monitor)
          crea un proxy di scrittura
 void deleteFile(java.lang.String path)
          cancella un file presente nel repository
static void main(java.lang.String[] args)
          creazione del repository
 
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

defaultRepository

public defaultRepository(java.lang.String home)
                  throws java.rmi.RemoteException
Costruttore

Method Detail

createFile

public void createFile(java.lang.String path)
                throws java.rmi.RemoteException
Crea un file nel repository

Specified by:
createFile in interface IRepository
Throws:
java.rmi.RemoteException

deleteFile

public void deleteFile(java.lang.String path)
                throws java.rmi.RemoteException
cancella un file presente nel repository

Specified by:
deleteFile in interface IRepository
Throws:
java.rmi.RemoteException

createProxyScrittura

public ISessioneScrittura createProxyScrittura(java.lang.String path,
                                               boolean append,
                                               ITerminazioneSessione termList,
                                               IClientCallBack client,
                                               IExecutionMonitor monitor)
                                        throws java.rmi.RemoteException
crea un proxy di scrittura

Specified by:
createProxyScrittura in interface IRepository
Throws:
java.rmi.RemoteException

createProxyLettura

public ISessioneLettura createProxyLettura(java.lang.String path,
                                           ITerminazioneSessione termList,
                                           IClientCallBack client,
                                           IExecutionMonitor monitor)
                                    throws java.rmi.RemoteException
crea un proxy di lettura

Specified by:
createProxyLettura in interface IRepository
Throws:
java.rmi.RemoteException

main

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