public final class FileTransferService extends Service implements csbase.remote.FileTransferServiceInterface
| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNK_SIZE
Tamanho dos chunks de transferências
|
| Modifier | Constructor and Description |
|---|---|
protected |
FileTransferService()
Construtor padrão do serviço.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkConnection(csbase.logic.filetransferservice.FileTransferConnection connection) |
static void |
createService()
Constrói a instância do serviço.
|
void |
download(csbase.logic.filetransferservice.FileTransferConnection connection,
String remoteFilePath,
String[] localFilePath,
long size) |
List<csbase.logic.filetransferservice.FileTransferRequest> |
getAllRequests(csbase.logic.User user) |
static FileTransferService |
getInstance()
Retorna a instância do serviço.
|
List<csbase.logic.filetransferservice.FileTransferPredefinedConnection> |
getPredefinedConnections() |
protected boolean |
has2Update(Object arg,
Object event) |
void |
initService()
Método abstrato de inicialização do serviço.
|
void |
interruptRequest(List<String> idList) |
List<csbase.logic.filetransferservice.FileTransferElement> |
listContent(csbase.logic.filetransferservice.FileTransferConnection connection,
String remoteDirPath) |
void |
removeRequest(List<String> idList) |
void |
shutdownService()
Método abstrato de término do serviço
|
void |
upload(csbase.logic.filetransferservice.FileTransferConnection connection,
String remoteFilePath,
String[] localFilePath,
long size) |
getBooleanProperty, getDefaultLocale, getDoubleProperty, getExternalPropertyFile, getFormattedString, getFormattedString, getInitializationDependencies, getInstance, getIntProperty, getKey, getLongProperty, getName, getOptionalString, getOptionalString, getOSPropertyPath, getSenderName, getServices, getString, getString, getStringListProperty, getStringProperty, getSystemId, getThreadLocale, getUser, getUserPermission, hasProperty, incrCounter, isActive, isEnabled, isInternalServerRequest, isLoggingNotifications, isPropertyNull, logNotification, setEnabled, setKey, setSystemId, setUserIdhandleException, handleFatalErroraddObserver, countObservers, deleteObserver, deleteObserver, deleteObservers, has2update, notifyObserverspublic static final int CHUNK_SIZE
protected FileTransferService()
throws ServerException
ServerException - em caso de falha no serviço.public boolean checkConnection(csbase.logic.filetransferservice.FileTransferConnection connection)
checkConnection in interface csbase.remote.FileTransferServiceInterfacepublic void download(csbase.logic.filetransferservice.FileTransferConnection connection,
String remoteFilePath,
String[] localFilePath,
long size)
throws csbase.exception.ServiceFailureException
download in interface csbase.remote.FileTransferServiceInterfacecsbase.exception.ServiceFailureExceptionpublic List<csbase.logic.filetransferservice.FileTransferRequest> getAllRequests(csbase.logic.User user) throws csbase.exception.ServiceFailureException
getAllRequests in interface csbase.remote.FileTransferServiceInterfacecsbase.exception.ServiceFailureExceptionprotected boolean has2Update(Object arg, Object event)
has2Update in class csbase.remote.RemoteObjectObservablepublic void initService()
throws ServerException
initService in class ServiceServerException - em caso de falhapublic void interruptRequest(List<String> idList) throws csbase.exception.ServiceFailureException
interruptRequest in interface csbase.remote.FileTransferServiceInterfacecsbase.exception.ServiceFailureExceptionpublic List<csbase.logic.filetransferservice.FileTransferElement> listContent(csbase.logic.filetransferservice.FileTransferConnection connection, String remoteDirPath) throws csbase.exception.ServiceFailureException
listContent in interface csbase.remote.FileTransferServiceInterfacecsbase.exception.ServiceFailureExceptionpublic void removeRequest(List<String> idList) throws RemoteException
removeRequest in interface csbase.remote.FileTransferServiceInterfaceRemoteExceptionpublic void shutdownService()
throws ServerException
shutdownService in class ServiceServerException - em caso de falha.public void upload(csbase.logic.filetransferservice.FileTransferConnection connection,
String remoteFilePath,
String[] localFilePath,
long size)
throws RemoteException
upload in interface csbase.remote.FileTransferServiceInterfaceRemoteExceptionpublic static void createService()
throws ServerException
ServerException - se houver falha.public static FileTransferService getInstance()
FileTransferServicepublic List<csbase.logic.filetransferservice.FileTransferPredefinedConnection> getPredefinedConnections() throws RemoteException
getPredefinedConnections in interface csbase.remote.FileTransferServiceInterfaceRemoteExceptionCopyright © 2020. All rights reserved.