Ontimize Document Management 0.035EN

com.ontimize.dms.warehouse.remote
Class UploadServer

java.lang.Object
  extended by com.ontimize.dms.warehouse.remote.ServerTransfer
      extended by com.ontimize.dms.warehouse.remote.UploadServer
All Implemented Interfaces:
TransferModelEventListener

public abstract class UploadServer
extends ServerTransfer


Field Summary
 
Fields inherited from class com.ontimize.dms.warehouse.remote.ServerTransfer
DEFAULT_OPEN_MAX, it, list, modelAdapter, MSG_INACTIVE_1, MSG_INACTIVE_2, MSG_INACTIVE_3
 
Constructor Summary
UploadServer(java.lang.String pathBase, java.lang.String pathTemp, int inactInterval, int inactGap)
           
 
Method Summary
 void fireModelEvent(TransferInfo event)
           
 boolean isActive(Document document, int sessionId)
           
 TransferResponse startUpload(Document document, int action, long filesize, java.util.Map fields, int sessionId)
           
 long uploadData(IDataBlock db, int sessionId)
           
 
Methods inherited from class com.ontimize.dms.warehouse.remote.ServerTransfer
addModelListener, getBasePath, getTempPath, haveToUpdate, inactivityVerification, isOverload, removeModelListener, setOpenMax, setTransferTrace, stop, transferFinish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadServer

public UploadServer(java.lang.String pathBase,
                    java.lang.String pathTemp,
                    int inactInterval,
                    int inactGap)
Method Detail

startUpload

public TransferResponse startUpload(Document document,
                                    int action,
                                    long filesize,
                                    java.util.Map fields,
                                    int sessionId)
                             throws java.lang.Exception
Throws:
java.lang.Exception

uploadData

public long uploadData(IDataBlock db,
                       int sessionId)
                throws java.lang.Exception
Throws:
java.lang.Exception

isActive

public boolean isActive(Document document,
                        int sessionId)
                 throws java.lang.Exception
Specified by:
isActive in class ServerTransfer
Throws:
java.lang.Exception

fireModelEvent

public void fireModelEvent(TransferInfo event)
Specified by:
fireModelEvent in interface TransferModelEventListener
Overrides:
fireModelEvent in class ServerTransfer

Ontimize Document Management