public class SSLImageSpool
extends java.lang.Object
implements java.lang.Runnable
SSLPipe
Constructor and Description |
---|
SSLImageSpool(int iListenPort,
java.lang.String sDir) |
Modifier and Type | Method and Description |
---|---|
protected long |
mapID(long lID)
Spooler-specific implementation of ID mapping
|
protected void |
postPull(long lID,
long lSize,
java.lang.String sFile)
Post-pull spooler behavior
|
protected void |
postPush(long lID,
long lSize,
java.lang.String sFile)
Post-push spooler behavior
|
protected java.lang.String |
prePull(long lID,
java.lang.String sExt,
long lSize)
Spooler-specific implementation of pull setup
|
protected java.lang.String |
prePush(long lID,
java.lang.String sExt,
long lSize)
Spooler-specific implementation of push setup
|
void |
run() |
void |
setExtension(java.lang.String sNewExtension)
Set the extension that destination files will get
|
void |
setLockExtension(java.lang.String sNewExtension)
Set the extension that lock files will get
If the extension is null, no lock files will be produced
|
public SSLImageSpool(int iListenPort, java.lang.String sDir)
iListenPort
- number spooler should listen onsDir
- spool directorypublic void setExtension(java.lang.String sNewExtension)
sNewExtension
- the new extensionpublic void setLockExtension(java.lang.String sNewExtension)
sNewExtension
- the new extensionpublic void run()
run
in interface java.lang.Runnable
Runnable.run()
protected long mapID(long lID)
lID
- the ID relevant to the current transferprotected java.lang.String prePull(long lID, java.lang.String sExt, long lSize)
lID
- the ID relevant to the current transfersExt
- the transferred file's extensionlSize
- the size of the current transferprotected void postPull(long lID, long lSize, java.lang.String sFile)
lID
- the ID relevant to the current transferlSize
- the size of the current transfersFile
- the path to file for the current transferprotected java.lang.String prePush(long lID, java.lang.String sExt, long lSize)
lID
- the ID relevant to the current transfersExt
- the transferred file's extensionlSize
- the size of the current transferprotected void postPush(long lID, long lSize, java.lang.String sFile)
lID
- the ID relevant to the current transferlSize
- the size of the current transfersFile
- the file for the current transfer