FRS
Class ResourceManager

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

public class ResourceManager
extends java.rmi.server.UnicastRemoteObject
implements ITerminazioneSessione

Author:
Dario Agostinone ResourceManager : Incapsula le politiche di accesso alle risorse
See Also:
Serialized Form

Constructor Summary
ResourceManager(DefaultRepositoryServer def, java.io.File des)
          Costruttore
 
Method Summary
 boolean aggiungiFile(java.lang.String path, java.lang.String Host1, java.lang.String Host2)
          Aggiunge il file , crea il descrittore associato
 void eliminaFile(java.lang.String path)
          Elimina il file "path"
 void read(java.lang.String path, IClientCallBack client)
          Accede in lettura ad un file
 void rilasciaFile(java.lang.String path, int type)
          Rilascio di un file
 void write(java.lang.String path, boolean append, IClientCallBack client)
          accede in scrittura ad un file
 
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

ResourceManager

public ResourceManager(DefaultRepositoryServer def,
                       java.io.File des)
                throws java.rmi.RemoteException
Costruttore

Method Detail

read

public void read(java.lang.String path,
                 IClientCallBack client)
          throws java.lang.Exception
Accede in lettura ad un file

Throws:
java.lang.Exception

write

public void write(java.lang.String path,
                  boolean append,
                  IClientCallBack client)
           throws java.lang.Exception
accede in scrittura ad un file

Throws:
java.lang.Exception

rilasciaFile

public void rilasciaFile(java.lang.String path,
                         int type)
                  throws java.rmi.RemoteException
Rilascio di un file

Specified by:
rilasciaFile in interface ITerminazioneSessione
Throws:
java.rmi.RemoteException

aggiungiFile

public boolean aggiungiFile(java.lang.String path,
                            java.lang.String Host1,
                            java.lang.String Host2)
                     throws java.lang.Exception
Aggiunge il file , crea il descrittore associato

Throws:
java.lang.Exception

eliminaFile

public void eliminaFile(java.lang.String path)
                 throws java.lang.Exception
Elimina il file "path"

Throws:
java.lang.Exception