com.aelitis.azureus.core.devices.impl
Class DeviceOfflineDownloaderImpl
java.lang.Object
com.aelitis.azureus.core.devices.impl.DeviceImpl
com.aelitis.azureus.core.devices.impl.DeviceUPnPImpl
com.aelitis.azureus.core.devices.impl.DeviceOfflineDownloaderImpl
- All Implemented Interfaces:
- Device, DeviceOfflineDownloader, DeviceUPnP, TranscodeTargetListener, DownloadManagerListener
public class DeviceOfflineDownloaderImpl
- extends DeviceUPnPImpl
- implements DeviceOfflineDownloader
Fields inherited from class com.aelitis.azureus.core.devices.impl.DeviceImpl |
PP_AUTO_COPY, PP_AUTO_COPY_DEFAULT, PP_AUTO_START, PP_COPY_OUTSTANDING, PP_COPY_TO_FOLDER, PP_DONT_AUTO_HIDE, PP_EXPORTABLE, PP_FILTER_FILES, PP_IP_ADDRESS, PP_LIVENESS_DETECTABLE, PP_OD_ENABLED, PP_OD_MANUFACTURER, PP_OD_SHOWN_FTUX, PP_OD_STATE_CACHE, PP_OD_UPNP_DISC_CACHE, PP_OD_XFER_CACHE, PP_REND_CLASSIFICATION, PP_REND_SHOW_CAT, PP_RESTRICT_ACCESS, PP_TIVO_MACHINE, PR_AUTO_START_DEFAULT, TP_IP_ADDRESS |
Methods inherited from class com.aelitis.azureus.core.devices.impl.DeviceUPnPImpl |
addDynamicXCode, associate, browseReceived, canAssociate, canFilterFilesView, canRestrictAccess, destroy, downloadAdded, downloadRemoved, fileAdded, fileAdded, fileChanged, fileRemoved, generate, getAccessRestriction, getACFKey, getAddress, getBrowseLocations, getDisplayName, getFilterFilesView, getImageID, getLocation, getMimeType, getPresentationURL, getStreamURL, getStreamURL, getUPnPDevice, getUPnPDeviceManager, initialise, isBrowsable, isLivenessDetectable, isVisible, isVisible, removeDynamicXCode, resetUPNPAV, setAccessRestriction, setAddress, setCategories, setFilterFilesView, setTags, setUPnPDevice, setupStreamXCode, syncCategoriesAndTags |
Methods inherited from class com.aelitis.azureus.core.devices.impl.DeviceImpl |
addDP, addDP, addDP, addDP, addDP, addDP, addListener, addListener, alive, allocateFile, allocateUniqueFileName, canRemove, dead, deleteFile, exportToBEncodedMap, fileDirty, fireChanged, generateTT, getAlwaysCacheFiles, getAutoShareToTagID, getBlankProfile, getClassification, getDefaultTranscodeProfile, getDevice, getDeviceClassification, getDeviceFile, getDevicesDir, getDirectTranscodeProfiles, getDisplayProperties, getError, getFileCount, getFiles, getID, getInfo, getLastSeen, getManager, getName, getPersistentBooleanProperty, getPersistentIntProperty, getPersistentLongProperty, getPersistentMapProperty, getPersistentStringListProperty, getPersistentStringProperty, getPersistentStringProperty, getRendererSpecies, getSecondaryID, getShortDescription, getStatus, getString, getTranscodeFile, getTranscodeProfiles, getTranscodeProfiles, getTranscodeRequirement, getTransientProperty, getTransientProperty, getTTDisplayProperties, getType, getVuzeFile, getWikiURL, getWorkingDirectory, getWorkingDirectory, importFromBEncodedMapStatic, isAudioCompatible, isAutoHidden, isBusy, isExportable, isGenericUSB, isHidden, isManual, isNameAutomatic, isNonSimple, isRSSPublishEnabled, isTagged, isTranscoding, loadDeviceFile, lookupFile, remove, removeListener, removeListener, removePersistentProperty, requestAttention, resetWorkingDirectory, revertFileName, saveDeviceFile, setAlwaysCacheFiles, setAutoHidden, setAutoShareToTagID, setBusy, setCanRemove, setDefaultTranscodeProfile, setDirty, setDirty, setError, setExportable, setGenericUSB, setHidden, setImageID, setInfo, setName, setPersistentBooleanProperty, setPersistentIntProperty, setPersistentLongProperty, setPersistentMapProperty, setPersistentStringListProperty, setPersistentStringProperty, setRSSPublishEnabled, setSecondaryID, setTagged, setTranscodeRequirement, setTranscoding, setTransientProperty, setTransientProperty, setWorkingDirectory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.aelitis.azureus.core.devices.Device |
addListener, alive, canRemove, getAddress, getBrowseLocations, getClassification, getDirectTranscodeProfiles, getDisplayProperties, getError, getID, getImageID, getInfo, getName, getShortDescription, getStatus, getString, getTransientProperty, getType, getVuzeFile, getWikiURL, isBrowsable, isBusy, isExportable, isGenericUSB, isHidden, isLivenessDetectable, isManual, isNameAutomatic, isTagged, remove, removeListener, requestAttention, setAddress, setCanRemove, setExportable, setGenericUSB, setHidden, setImageID, setName, setTagged, setTransientProperty |
UPDATE_MILLIS
public static final int UPDATE_MILLIS
- See Also:
- Constant Field Values
UPDATE_TICKS
public static final int UPDATE_TICKS
- See Also:
- Constant Field Values
UPDATE_SPACE_MILLIS
public static final int UPDATE_SPACE_MILLIS
- See Also:
- Constant Field Values
UPDATE_SPACE_TICKS
public static final int UPDATE_SPACE_TICKS
- See Also:
- Constant Field Values
client_id
public static final String client_id
DeviceOfflineDownloaderImpl
protected DeviceOfflineDownloaderImpl(DeviceManagerImpl _manager,
UPnPDevice _device,
UPnPOfflineDownloader _service)
DeviceOfflineDownloaderImpl
protected DeviceOfflineDownloaderImpl(DeviceManagerImpl _manager,
Map _map)
throws IOException
- Throws:
IOException
updateFrom
protected boolean updateFrom(DeviceImpl _other,
boolean _is_alive)
- Overrides:
updateFrom
in class DeviceUPnPImpl
setService
protected void setService(UPnPOfflineDownloader _service)
UPnPInitialised
protected void UPnPInitialised()
- Overrides:
UPnPInitialised
in class DeviceUPnPImpl
updateStatus
protected void updateStatus(int tick_count)
- Overrides:
updateStatus
in class DeviceImpl
checkConfig
protected void checkConfig()
updateDownloads
protected void updateDownloads()
updateDownloadsSupport
protected void updateDownloadsSupport()
updateError
protected void updateError(String str,
boolean force)
appendToURL
protected URL appendToURL(URL url,
String ext)
throws MalformedURLException
- Throws:
MalformedURLException
updateTransferable
protected void updateTransferable(Map<String,DeviceOfflineDownloaderImpl.TransferableDownload> map)
close
protected void close()
- Overrides:
close
in class DeviceImpl
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface DeviceOfflineDownloader
setEnabled
public void setEnabled(boolean b)
- Specified by:
setEnabled
in interface DeviceOfflineDownloader
isAlive
public boolean isAlive()
- Specified by:
isAlive
in interface Device
- Overrides:
isAlive
in class DeviceImpl
hasShownFTUX
public boolean hasShownFTUX()
- Specified by:
hasShownFTUX
in interface DeviceOfflineDownloader
setShownFTUX
public void setShownFTUX()
- Specified by:
setShownFTUX
in interface DeviceOfflineDownloader
getManufacturer
public String getManufacturer()
- Specified by:
getManufacturer
in interface DeviceOfflineDownloader
getSpaceAvailable
public long getSpaceAvailable(boolean force)
throws DeviceManagerException
- Specified by:
getSpaceAvailable
in interface DeviceOfflineDownloader
- Throws:
DeviceManagerException
getTransferingCount
public int getTransferingCount()
- Specified by:
getTransferingCount
in interface DeviceOfflineDownloader
getDownloads
public DeviceOfflineDownload[] getDownloads()
- Specified by:
getDownloads
in interface DeviceOfflineDownloader
addListener
public void addListener(DeviceOfflineDownloaderListener listener)
- Specified by:
addListener
in interface DeviceOfflineDownloader
removeListener
public void removeListener(DeviceOfflineDownloaderListener listener)
- Specified by:
removeListener
in interface DeviceOfflineDownloader
getDisplayProperties
protected void getDisplayProperties(List<String[]> dp)
- Overrides:
getDisplayProperties
in class DeviceUPnPImpl
log
protected void log(DownloadManager download,
String str)
log
protected void log(DownloadManager download,
String str,
Throwable e)
log
protected void log(String str)
- Overrides:
log
in class DeviceImpl
log
protected void log(String str,
Throwable e)
- Overrides:
log
in class DeviceImpl