|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttecgraf.ftc_1_3.server.DefaultFileProvider
public class DefaultFileProvider
Classe que implementa um provedor de arquivos (FileChannel) para o servidor de arquivos.
| Constructor Summary | |
|---|---|
DefaultFileProvider()
|
|
| Method Summary | |
|---|---|
FileChannel |
createFileChannel(Object requester,
byte[] fileId,
boolean readOnly)
Cria um canal para um arquivo. |
void |
fileChannelClosed(Object requester,
byte[] fileId,
ChannelClosedReason reason)
Indica que um canal para um arquivo foi fechado. |
boolean |
isLocked(Object requester,
byte[] fileId)
Verifica se o arquivo possui um lock que impede a escrita. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFileProvider()
| Method Detail |
|---|
public FileChannel createFileChannel(Object requester,
byte[] fileId,
boolean readOnly)
throws PermissionException,
FailureException
createFileChannel in interface FileProviderrequester - O responsável pela requisição do canal.fileId - O identificador do arquivo.readOnly - Indica se o canal será somente para leitura ou não.
null, caso o arquivo não exista.
PermissionException - Caso o usuário não tenha permissão para obter o
arquivo solicitado.
FailureException - Caso ocorra alguma falha no procedimento.
public boolean isLocked(Object requester,
byte[] fileId)
isLocked in interface FileProviderrequester - O responsável pela requisição do canal.fileId - O identificador do arquivo.
true caso exista um lock associado ao arquivo, ou
false, caso contrário.
public void fileChannelClosed(Object requester,
byte[] fileId,
ChannelClosedReason reason)
fileChannelClosed in interface FileProviderrequester - O responsável pela requisição do canal.fileId - O identificador do arquivo.reason - A razão do fechamento do arquivo.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||