|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl
org.smartfrog.sfcore.prim.PrimImpl
org.smartfrog.services.filesystem.FileUsingComponentImpl
org.smartfrog.services.os.download.DownloadImpl
public class DownloadImpl
Defines the Downloader class. It downloads the data from a given url.
| Field Summary | |
|---|---|
static java.lang.String |
ERROR_IN_DOWNLOAD
|
| Fields inherited from class org.smartfrog.services.filesystem.FileUsingComponentImpl |
|---|
file |
| Fields inherited from class org.smartfrog.sfcore.prim.PrimImpl |
|---|
refLivenessDelay, refLivenessFactor, sfCompleteName, sfContext, sfDeployHooks, sfDeployWithHooks, sfExportRef, sfIsDeployed, sfIsStarted, sfIsTerminated, sfIsTerminating, sfLivenessCount, sfLivenessDelay, sfLivenessFactor, sfLivenessSender, sfParent, sfStartHooks, sfTerminateWithHooks, termLock |
| Fields inherited from interface org.smartfrog.services.os.download.Download |
|---|
ATTR_BLOCKSIZE, ATTR_LOCALFILE, ATTR_TERMINATE, ATTR_URL |
| Fields inherited from interface org.smartfrog.services.filesystem.FileIntf |
|---|
ATTR_DELETE_ON_EXIT, ATTR_DIR, ATTR_EXISTS, ATTR_IS_DIRECTORY, ATTR_IS_EMPTY, ATTR_IS_FILE, ATTR_IS_HIDDEN, ATTR_LENGTH, ATTR_MUST_BE_DIR, ATTR_MUST_BE_FILE, ATTR_MUST_EXIST, ATTR_MUST_READ, ATTR_MUST_WRITE, ATTR_SHORTNAME, ATTR_TEST_ON_LIVENESS, ATTR_TEST_ON_STARTUP, ATTR_TIMESTAMP |
| Constructor Summary | |
|---|---|
DownloadImpl()
Constructor. |
|
| Method Summary | |
|---|---|
static void |
download(java.lang.String url,
java.io.File localFile,
int blocksize)
Simple Download |
void |
sfStart()
Starts the download component. |
void |
sfTerminateWith(TerminationRecord status)
delete the file if needed |
| Methods inherited from class org.smartfrog.services.filesystem.FileUsingComponentImpl |
|---|
bind, bind, bind, bind, deleteFileIfNeeded, getAbsolutePath, getFile, getURI, setAbsolutePath, toString |
| Methods inherited from class org.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl |
|---|
sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolveWithParser |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.smartfrog.sfcore.reference.RemoteReferenceResolverHelper |
|---|
sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolveWithParser |
| Field Detail |
|---|
public static final java.lang.String ERROR_IN_DOWNLOAD
| Constructor Detail |
|---|
public DownloadImpl()
throws java.rmi.RemoteException
java.rmi.RemoteException - in case of network/rmi error| Method Detail |
|---|
public void sfStart()
throws SmartFrogException,
java.rmi.RemoteException
sfStart in interface PrimsfStart in class PrimImplSmartFrogException - in case of error in starting
java.rmi.RemoteException - in case of network/emi errorpublic void sfTerminateWith(TerminationRecord status)
sfTerminateWith in class PrimImplstatus - termination status
public static void download(java.lang.String url,
java.io.File localFile,
int blocksize)
throws java.io.IOException
url - url to download fromlocalFile - local file nameblocksize - block size to download
java.io.IOException - for IO error
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||