Package com.biglybt.core.tag.impl
Class TagDownloadWithState
- java.lang.Object
-
- com.biglybt.core.tag.impl.TagBase
-
- com.biglybt.core.tag.impl.TagWithState
-
- com.biglybt.core.tag.impl.TagDownloadWithState
-
- All Implemented Interfaces:
Tag
,TagDownload
,TagFeature
,TagFeatureExecOnAssign
,TagFeatureFileLocation
,TagFeatureLimits
,TagFeatureNotifications
,TagFeatureProperties
,TagFeatureRateLimit
,TagFeatureRSSFeed
,TagFeatureRunState
,TagFeatureTranscode
,TaggableResolver.LifecycleControlListener
,DataSourceResolver.ExportableDataSource
,SimpleTimer.TimerTickReceiver
,Tag
- Direct Known Subclasses:
GlobalManagerImpl.DownloadStateTagger.MyTag
public class TagDownloadWithState extends TagWithState implements TagDownload, TaggableResolver.LifecycleControlListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
TagDownloadWithState.NPCState
-
Nested classes/interfaces inherited from class com.biglybt.core.tag.impl.TagWithState
TagWithState.ActivityCallback
-
Nested classes/interfaces inherited from interface com.biglybt.core.tag.TagFeatureExecOnAssign
TagFeatureExecOnAssign.OptionsTemplateHandler
-
Nested classes/interfaces inherited from interface com.biglybt.core.tag.TagFeatureProperties
TagFeatureProperties.TagProperty, TagFeatureProperties.TagPropertyListener
-
-
Field Summary
-
Fields inherited from class com.biglybt.core.tag.impl.TagBase
AT_BYTES_DOWN, AT_BYTES_UP, AT_CAN_BE_PUBLIC, AT_COLOR_ID, AT_COLORS_ID, AT_DESCRIPTION, AT_EOS_ASSIGN_TAGS, AT_EOS_OPTIONS_TEMPLATE, AT_EOS_PM, AT_EOS_SCRIPT, AT_FL_COPY_COMP, AT_FL_COPY_COMP_OPT, AT_FL_INIT_LOC, AT_FL_INIT_LOC_OPT, AT_FL_MOVE_ASSIGN, AT_FL_MOVE_ASSIGN_OPT, AT_FL_MOVE_COMP, AT_FL_MOVE_COMP_OPT, AT_FL_MOVE_REM, AT_FL_MOVE_REM_OPT, AT_FL_PREVENT_DELETE, AT_FLAGS, AT_GROUP, AT_IMAGE_FILE, AT_IMAGE_ID, AT_IMAGE_SORT_ORDER, AT_LIMIT_ORDERING, AT_MAX_TAGGABLES, AT_NOTIFICATION_POST, AT_NOTIFICATION_PUBLISH, AT_ORIGINAL_NAME, AT_PROPERTY_PREFIX, AT_PUBLIC, AT_RATELIMIT_BOOST, AT_RATELIMIT_DOWN, AT_RATELIMIT_FP_SEEDING, AT_RATELIMIT_MAX_ACTIVE_DL, AT_RATELIMIT_MAX_AGGREGATE_SR, AT_RATELIMIT_MAX_AGGREGATE_SR_ACTION, AT_RATELIMIT_MAX_AGGREGATE_SR_PRIORITY, AT_RATELIMIT_MAX_SR, AT_RATELIMIT_MAX_SR_ACTION, AT_RATELIMIT_MIN_SR, AT_RATELIMIT_UP, AT_RATELIMIT_UP_PRI, AT_REMOVAL_STRATEGY, AT_RSS_ENABLE, AT_VISIBLE, AT_XCODE_TARGET, tag_type
-
Fields inherited from interface com.biglybt.core.tag.Tag
FL_IS_FILTER, FL_NONE, TP_CONSTRAINT_ERROR, TP_SETTINGS_REQUESTED
-
Fields inherited from interface com.biglybt.core.tag.TagDownload
FEATURES
-
Fields inherited from interface com.biglybt.core.tag.TagFeature
TF_EXEC_ON_ASSIGN, TF_FILE_LOCATION, TF_LIMITS, TF_NONE, TF_NOTIFICATIONS, TF_PROPERTIES, TF_RATE_LIMIT, TF_RSS_FEED, TF_RUN_STATE, TF_XCODE
-
Fields inherited from interface com.biglybt.core.tag.TagFeatureExecOnAssign
ACTION_APPLY_OPTIONS_TEMPLATE, ACTION_ASSIGN_TAGS, ACTION_DESTROY, ACTION_FORCE_START, ACTION_HOST, ACTION_MOVE_INIT_SAVE_LOC, ACTION_NONE, ACTION_NOT_FORCE_START, ACTION_PAUSE, ACTION_POST_MAGNET_URI, ACTION_PUBLISH, ACTION_RESUME, ACTION_SCRIPT, ACTION_START, ACTION_STOP, ACTIONS
-
Fields inherited from interface com.biglybt.core.tag.TagFeatureFileLocation
FL_BOTH, FL_DATA, FL_DEFAULT, FL_NONE, FL_TORRENT
-
Fields inherited from interface com.biglybt.core.tag.TagFeatureLimits
OP_ADDED_TO_VUZE, OP_ADED_TO_TAG, OP_DEFAULT, RS_ARCHIVE, RS_DEFAULT, RS_DELETE_FROM_COMPUTER, RS_MOVE_TO_OLD_TAG, RS_NONE, RS_REMOVE_FROM_LIBRARY
-
Fields inherited from interface com.biglybt.core.tag.TagFeatureNotifications
NOTIFY_NONE, NOTIFY_ON_ADD, NOTIFY_ON_REMOVE
-
Fields inherited from interface com.biglybt.core.tag.TagFeatureProperties
PR_CONSTRAINT, PR_TRACKER_TEMPLATES, PR_TRACKERS, PR_UNTAGGED, PT_BOOLEAN, PT_LONG, PT_STRING_LIST
-
Fields inherited from interface com.biglybt.core.tag.TagFeatureRateLimit
AT_RATELIMIT_MAX_AGGREGATE_SR_PRIORITY_DEFAULT, SR_ACTION_ARCHIVE, SR_ACTION_PAUSE, SR_ACTION_QUEUE, SR_ACTION_REMOVE_FROM_COMPUTER, SR_ACTION_REMOVE_FROM_LIBRARY, SR_ACTION_STOP, SR_AGGREGATE_ACTION_DEFAULT, SR_INDIVIDUAL_ACTION_DEFAULT
-
Fields inherited from interface com.biglybt.core.tag.TagFeatureRunState
RSC_ALL, RSC_ARCHIVE, RSC_NONE, RSC_PAUSE, RSC_REMOVE_FROM_COMPUTER, RSC_REMOVE_FROM_LIBRARY, RSC_RESUME, RSC_START, RSC_START_STOP_PAUSE, RSC_STOP, RSC_STOP_PAUSE
-
-
Constructor Summary
Constructors Modifier Constructor Description TagDownloadWithState(TagTypeBase tt, int tag_id, java.lang.String name, boolean do_rates, boolean do_up, boolean do_down, boolean do_bytes, int run_states)
protected
TagDownloadWithState(TagTypeBase tt, int tag_id, java.util.Map details, boolean do_rates, boolean do_up, boolean do_down, boolean do_bytes, int run_states)
-
Method Summary
-
Methods inherited from class com.biglybt.core.tag.impl.TagWithState
checkNotifications, exportDetails, exportDetails, getTaggableAddedTime, getTagged, getTaggedCount, hasTaggable, isRemoved, removeTaggable, setTagName
-
Methods inherited from class com.biglybt.core.tag.impl.TagBase
addListener, addTag, addTagListener, canBePublic, closing, createTagProperty, destroy, exportDataSource, generate, getActionScript, getCanBePublicDefault, getColor, getColors, getDescription, getFlag, getGroup, getGroupContainer, getImageFile, getImageID, getImageSortOrder, getManager, getMaxActiveDownloads, getNotifyMessageChannel, getOptionsTemplateHandler, getOrdering, getPostingNotifications, getPostMessageChannel, getPreventDelete, getProperty, getPublicDefault, getRecentHistory, getRemovalStrategy, getTag, getTagAssigns, getTagBoost, getTagCopyOnCompleteFolder, getTagCopyOnCompleteOptions, getTagDownloadTotal, getTaggables, getTagID, getTagInitialSaveFolder, getTagInitialSaveOptions, getTagMoveOnAssignFolder, getTagMoveOnAssignOptions, getTagMoveOnCompleteFolder, getTagMoveOnCompleteOptions, getTagMoveOnRemoveFolder, getTagMoveOnRemoveOptions, getTagName, getTagName, getTagNameRaw, getTagSessionDownloadTotal, getTagSessionUploadTotal, getTagType, getTagUID, getTagUploadTotal, getTransientProperty, getVisibleDefault, getVuzeFile, initialized, isActionEnabled, isAnyActionEnabled, isColorDefault, isPublic, isTagRSSFeedEnabled, isVisible, readBooleanAttribute, readLongAttribute, readLongListAttribute, readMapAttribute, readStringAttribute, readStringListAttribute, removeListener, removeTagListener, requestAttention, resetTagSessionDownloadTotal, resetTagSessionUploadTotal, setActionEnabled, setActionScript, setCanBePublic, setColor, setColors, setDescription, setFlag, setGroup, setImageFile, setImageID, setImageSortOrder, setMaxActiveDownloads, setMaximumTaggables, setOrdering, setPostingNotifications, setPostMessageChannel, setPublic, setRecentHistoryRetention, setRemovalStrategy, setTagAssigns, setTagBoost, setTagCopyOnCompleteFolder, setTagCopyOnCompleteOptions, setTagInitialSaveFolder, setTagInitialSaveOptions, setTagMoveOnAssignFolder, setTagMoveOnAssignOptions, setTagMoveOnCompleteFolder, setTagMoveOnCompleteOptions, setTagMoveOnRemoveFolder, setTagMoveOnRemoveOptions, setTagRSSFeedEnabled, setTransientProperty, setVisible, supportsAction, tick, writeBooleanAttribute, writeLongAttribute, writeLongListAttribute, writeMapAttribute, writeStringAttribute, writeStringListAttribute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.core.tag.Tag
addTagListener, canBePublic, getColor, getColors, getDescription, getFlag, getGroup, getGroupContainer, getImageFile, getImageID, getImageSortOrder, getTaggableAddedTime, getTagged, getTaggedCount, getTagID, getTagName, getTagType, getTagUID, getTransientProperty, getVuzeFile, hasTaggable, isColorDefault, isPublic, isVisible, removeTaggable, removeTagListener, requestAttention, setCanBePublic, setColor, setColors, setDescription, setFlag, setGroup, setImageFile, setImageID, setImageSortOrder, setPublic, setTagName, setTransientProperty, setVisible
-
Methods inherited from interface com.biglybt.pif.tag.Tag
addListener, getTaggables, getTagName, removeListener
-
Methods inherited from interface com.biglybt.core.tag.TagFeature
getTag
-
Methods inherited from interface com.biglybt.core.tag.TagFeatureExecOnAssign
getActionScript, getOptionsTemplateHandler, getPostMessageChannel, getTagAssigns, isActionEnabled, isAnyActionEnabled, setActionEnabled, setActionScript, setPostMessageChannel, setTagAssigns, supportsAction
-
Methods inherited from interface com.biglybt.core.tag.TagFeatureFileLocation
getPreventDelete, getTagCopyOnCompleteFolder, getTagCopyOnCompleteOptions, getTagInitialSaveFolder, getTagInitialSaveOptions, getTagMoveOnAssignFolder, getTagMoveOnAssignOptions, getTagMoveOnCompleteFolder, getTagMoveOnCompleteOptions, getTagMoveOnRemoveFolder, getTagMoveOnRemoveOptions, setTagCopyOnCompleteFolder, setTagCopyOnCompleteOptions, setTagInitialSaveFolder, setTagInitialSaveOptions, setTagMoveOnAssignFolder, setTagMoveOnAssignOptions, setTagMoveOnCompleteFolder, setTagMoveOnCompleteOptions, setTagMoveOnRemoveFolder, setTagMoveOnRemoveOptions
-
Methods inherited from interface com.biglybt.core.tag.TagFeatureLimits
getOrdering, getRemovalStrategy, setMaximumTaggables, setOrdering, setRemovalStrategy
-
Methods inherited from interface com.biglybt.core.tag.TagFeatureNotifications
getNotifyMessageChannel, getPostingNotifications, setPostingNotifications
-
Methods inherited from interface com.biglybt.core.tag.TagFeatureProperties
getProperty
-
Methods inherited from interface com.biglybt.core.tag.TagFeatureRateLimit
getMaxActiveDownloads, getRecentHistory, getTagBoost, getTagDownloadTotal, getTagSessionDownloadTotal, getTagSessionUploadTotal, getTagUploadTotal, resetTagSessionDownloadTotal, resetTagSessionUploadTotal, setMaxActiveDownloads, setRecentHistoryRetention, setTagBoost
-
Methods inherited from interface com.biglybt.core.tag.TagFeatureRSSFeed
isTagRSSFeedEnabled, setTagRSSFeedEnabled
-
-
-
-
Field Detail
-
FP_DL_KEY
private static java.lang.Object FP_DL_KEY
-
upload_rate_limit
private int upload_rate_limit
-
download_rate_limit
private int download_rate_limit
-
upload_rate
private int upload_rate
-
download_rate
private int download_rate
-
aggregate_sr
private int aggregate_sr
-
session_up
private long session_up
-
session_down
private long session_down
-
last_rate_update
private long last_rate_update
-
UPLOAD_PRIORITY_ADDED_KEY
final java.lang.Object UPLOAD_PRIORITY_ADDED_KEY
-
upload_priority
private int upload_priority
-
min_share_ratio
private int min_share_ratio
-
max_share_ratio
private int max_share_ratio
-
max_share_ratio_action
private int max_share_ratio_action
-
max_aggregate_share_ratio
private int max_aggregate_share_ratio
-
max_aggregate_share_ratio_action
private int max_aggregate_share_ratio_action
-
max_aggregate_share_ratio_priority
private boolean max_aggregate_share_ratio_priority
-
fp_seeding
private boolean fp_seeding
-
fp_seeding_ever
private boolean fp_seeding_ever
-
supports_xcode
private boolean supports_xcode
-
supports_file_location
private boolean supports_file_location
-
prevent_delete
private boolean prevent_delete
-
notification_pub
private java.lang.String notification_pub
-
rate_lock
final java.lang.Object rate_lock
-
upload_limiter
private final LimitedRateGroup upload_limiter
-
download_limiter
private final LimitedRateGroup download_limiter
-
do_rates
private boolean do_rates
-
do_up
private boolean do_up
-
do_down
private boolean do_down
-
do_bytes
private boolean do_bytes
-
run_states
private int run_states
-
rs_async
private static final AsyncDispatcher rs_async
-
tag_properties
private final TagFeatureProperties.TagProperty[] tag_properties
-
move_dispatcher
private static final AsyncDispatcher move_dispatcher
-
peer_listener
private final DownloadManagerPeerListener peer_listener
-
notification_pub_channel
private BuddyPluginBeta.ChatInstance notification_pub_channel
-
notification_pub_channel_key
private java.lang.String notification_pub_channel_key
-
npc_initialised_time
private long npc_initialised_time
-
npc_chat_ready
private boolean npc_chat_ready
-
ncp_pub_list_mutate_index
private java.util.concurrent.atomic.AtomicLong ncp_pub_list_mutate_index
-
ncp_pub_list
private java.util.LinkedList<TagDownloadWithState.NPCState> ncp_pub_list
-
ncp_pub_list_mut
private long ncp_pub_list_mut
-
NPC_ATTRIBUTE_NAME
private static final java.lang.String NPC_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
AUTO_BOTH
private static final boolean[] AUTO_BOTH
-
AUTO_NONE
private static final boolean[] AUTO_NONE
-
-
Constructor Detail
-
TagDownloadWithState
public TagDownloadWithState(TagTypeBase tt, int tag_id, java.lang.String name, boolean do_rates, boolean do_up, boolean do_down, boolean do_bytes, int run_states)
-
TagDownloadWithState
protected TagDownloadWithState(TagTypeBase tt, int tag_id, java.util.Map details, boolean do_rates, boolean do_up, boolean do_down, boolean do_bytes, int run_states)
-
-
Method Detail
-
init
private void init(boolean _do_rates, boolean _do_up, boolean _do_down, boolean _do_bytes, int _run_states)
-
removeTag
public void removeTag()
- Specified by:
removeTag
in interfaceTag
- Overrides:
removeTag
in classTagWithState
-
moveDownload
private static void moveDownload(DownloadManager dm, TagFeatureFileLocation fl)
-
addTaggable
public void addTaggable(Taggable t)
- Specified by:
addTaggable
in interfaceTag
- Overrides:
addTaggable
in classTagWithState
-
getTaggableTypes
public int getTaggableTypes()
- Specified by:
getTaggableTypes
in interfaceTag
-
getTaggedDownloads
public java.util.Set<DownloadManager> getTaggedDownloads()
- Specified by:
getTaggedDownloads
in interfaceTagDownload
-
setRateLimit
private void setRateLimit(DownloadManager manager, boolean added)
-
setRateLimit
private void setRateLimit(int limit, boolean is_up)
-
supportsTagRates
public boolean supportsTagRates()
- Specified by:
supportsTagRates
in interfaceTagFeatureRateLimit
-
supportsTagUploadLimit
public boolean supportsTagUploadLimit()
- Specified by:
supportsTagUploadLimit
in interfaceTagFeatureRateLimit
-
supportsTagDownloadLimit
public boolean supportsTagDownloadLimit()
- Specified by:
supportsTagDownloadLimit
in interfaceTagFeatureRateLimit
-
getTagUploadLimit
public int getTagUploadLimit()
- Specified by:
getTagUploadLimit
in interfaceTagFeatureRateLimit
- Returns:
- Max Upload Speed in bytes/sec
-
setTagUploadLimit
public void setTagUploadLimit(int bps)
- Specified by:
setTagUploadLimit
in interfaceTagFeatureRateLimit
-
getTagCurrentUploadRate
public int getTagCurrentUploadRate()
- Specified by:
getTagCurrentUploadRate
in interfaceTagFeatureRateLimit
-
getTagDownloadLimit
public int getTagDownloadLimit()
- Specified by:
getTagDownloadLimit
in interfaceTagFeatureRateLimit
- Returns:
- Max Download Speed in bytes/sec
-
setTagDownloadLimit
public void setTagDownloadLimit(int bps)
- Specified by:
setTagDownloadLimit
in interfaceTagFeatureRateLimit
-
getTagCurrentDownloadRate
public int getTagCurrentDownloadRate()
- Specified by:
getTagCurrentDownloadRate
in interfaceTagFeatureRateLimit
-
getTagUploadPriority
public int getTagUploadPriority()
- Specified by:
getTagUploadPriority
in interfaceTagFeatureRateLimit
-
getTagSessionUploadTotalCurrent
protected long[] getTagSessionUploadTotalCurrent()
- Overrides:
getTagSessionUploadTotalCurrent
in classTagBase
-
getTagSessionDownloadTotalCurrent
protected long[] getTagSessionDownloadTotalCurrent()
- Overrides:
getTagSessionDownloadTotalCurrent
in classTagBase
-
setTagUploadPriority
public void setTagUploadPriority(int priority)
- Specified by:
setTagUploadPriority
in interfaceTagFeatureRateLimit
-
getTagMinShareRatio
public int getTagMinShareRatio()
- Specified by:
getTagMinShareRatio
in interfaceTagFeatureRateLimit
- Overrides:
getTagMinShareRatio
in classTagBase
-
setTagMinShareRatio
public void setTagMinShareRatio(int sr)
- Specified by:
setTagMinShareRatio
in interfaceTagFeatureRateLimit
- Overrides:
setTagMinShareRatio
in classTagBase
-
getTagMaxShareRatio
public int getTagMaxShareRatio()
- Specified by:
getTagMaxShareRatio
in interfaceTagFeatureRateLimit
- Overrides:
getTagMaxShareRatio
in classTagBase
-
setTagMaxShareRatio
public void setTagMaxShareRatio(int sr)
- Specified by:
setTagMaxShareRatio
in interfaceTagFeatureRateLimit
- Overrides:
setTagMaxShareRatio
in classTagBase
-
getTagMaxShareRatioAction
public int getTagMaxShareRatioAction()
- Specified by:
getTagMaxShareRatioAction
in interfaceTagFeatureRateLimit
- Overrides:
getTagMaxShareRatioAction
in classTagBase
-
setTagMaxShareRatioAction
public void setTagMaxShareRatioAction(int action)
- Specified by:
setTagMaxShareRatioAction
in interfaceTagFeatureRateLimit
- Overrides:
setTagMaxShareRatioAction
in classTagBase
-
getTagAggregateShareRatio
public int getTagAggregateShareRatio()
- Specified by:
getTagAggregateShareRatio
in interfaceTagFeatureRateLimit
- Overrides:
getTagAggregateShareRatio
in classTagBase
-
getTagMaxAggregateShareRatio
public int getTagMaxAggregateShareRatio()
- Specified by:
getTagMaxAggregateShareRatio
in interfaceTagFeatureRateLimit
- Overrides:
getTagMaxAggregateShareRatio
in classTagBase
-
setTagMaxAggregateShareRatio
public void setTagMaxAggregateShareRatio(int sr)
- Specified by:
setTagMaxAggregateShareRatio
in interfaceTagFeatureRateLimit
- Overrides:
setTagMaxAggregateShareRatio
in classTagBase
-
getTagMaxAggregateShareRatioAction
public int getTagMaxAggregateShareRatioAction()
- Specified by:
getTagMaxAggregateShareRatioAction
in interfaceTagFeatureRateLimit
- Overrides:
getTagMaxAggregateShareRatioAction
in classTagBase
-
setTagMaxAggregateShareRatioAction
public void setTagMaxAggregateShareRatioAction(int action)
- Specified by:
setTagMaxAggregateShareRatioAction
in interfaceTagFeatureRateLimit
- Overrides:
setTagMaxAggregateShareRatioAction
in classTagBase
-
getTagMaxAggregateShareRatioHasPriority
public boolean getTagMaxAggregateShareRatioHasPriority()
- Specified by:
getTagMaxAggregateShareRatioHasPriority
in interfaceTagFeatureRateLimit
- Overrides:
getTagMaxAggregateShareRatioHasPriority
in classTagBase
-
setTagMaxAggregateShareRatioHasPriority
public void setTagMaxAggregateShareRatioHasPriority(boolean priority)
- Specified by:
setTagMaxAggregateShareRatioHasPriority
in interfaceTagFeatureRateLimit
- Overrides:
setTagMaxAggregateShareRatioHasPriority
in classTagBase
-
getFirstPrioritySeeding
public boolean getFirstPrioritySeeding()
- Specified by:
getFirstPrioritySeeding
in interfaceTagFeatureRateLimit
- Overrides:
getFirstPrioritySeeding
in classTagBase
-
setFirstPrioritySeeding
public void setFirstPrioritySeeding(boolean b)
- Specified by:
setFirstPrioritySeeding
in interfaceTagFeatureRateLimit
- Overrides:
setFirstPrioritySeeding
in classTagBase
-
setPreventDelete
public void setPreventDelete(boolean b)
- Specified by:
setPreventDelete
in interfaceTagFeatureFileLocation
- Overrides:
setPreventDelete
in classTagBase
-
canTaggableBeRemoved
public void canTaggableBeRemoved(Taggable taggable) throws java.lang.Exception
- Specified by:
canTaggableBeRemoved
in interfaceTaggableResolver.LifecycleControlListener
- Throws:
java.lang.Exception
-
setNotifyMessageChannel
public void setNotifyMessageChannel(java.lang.String channel)
- Specified by:
setNotifyMessageChannel
in interfaceTagFeatureNotifications
- Overrides:
setNotifyMessageChannel
in classTagBase
-
updateStuff
private void updateStuff()
-
checkIndividualShareRatio
private void checkIndividualShareRatio()
-
isAggregateShareRatioMet
private boolean isAggregateShareRatioMet()
-
checkAggregateShareRatio
private void checkAggregateShareRatio()
-
checkFPSeeding
private void checkFPSeeding()
-
updateFPSeeding
private void updateFPSeeding(DownloadManager dm, boolean fp_seed)
-
checkNotifyPublish
private void checkNotifyPublish()
-
getRunStateCapabilities
public int getRunStateCapabilities()
- Specified by:
getRunStateCapabilities
in interfaceTagFeatureRunState
-
hasRunStateCapability
public boolean hasRunStateCapability(int capability)
- Specified by:
hasRunStateCapability
in interfaceTagFeatureRunState
-
getPerformableOperations
public boolean[] getPerformableOperations(int[] ops)
- Specified by:
getPerformableOperations
in interfaceTagFeatureRunState
-
performOperation
public void performOperation(int op)
- Specified by:
performOperation
in interfaceTagFeatureRunState
-
performOperation
private void performOperation(int op, java.util.Set<DownloadManager> dms)
-
getSupportedActions
public int getSupportedActions()
- Specified by:
getSupportedActions
in interfaceTagFeatureExecOnAssign
- Overrides:
getSupportedActions
in classTagBase
-
setSupportsTagTranscode
protected void setSupportsTagTranscode(boolean sup)
-
supportsTagTranscode
public boolean supportsTagTranscode()
- Specified by:
supportsTagTranscode
in interfaceTagFeatureTranscode
-
getTagTranscodeTarget
public java.lang.String[] getTagTranscodeTarget()
- Specified by:
getTagTranscodeTarget
in interfaceTagFeatureTranscode
-
setTagTranscodeTarget
public void setTagTranscodeTarget(java.lang.String uid, java.lang.String name)
- Specified by:
setTagTranscodeTarget
in interfaceTagFeatureTranscode
-
setSupportsFileLocation
protected void setSupportsFileLocation(boolean sup)
-
supportsTagInitialSaveFolder
public boolean supportsTagInitialSaveFolder()
- Specified by:
supportsTagInitialSaveFolder
in interfaceTagFeatureFileLocation
- Overrides:
supportsTagInitialSaveFolder
in classTagBase
-
supportsTagMoveOnComplete
public boolean supportsTagMoveOnComplete()
- Specified by:
supportsTagMoveOnComplete
in interfaceTagFeatureFileLocation
- Overrides:
supportsTagMoveOnComplete
in classTagBase
-
supportsTagCopyOnComplete
public boolean supportsTagCopyOnComplete()
- Specified by:
supportsTagCopyOnComplete
in interfaceTagFeatureFileLocation
- Overrides:
supportsTagCopyOnComplete
in classTagBase
-
supportsTagMoveOnRemove
public boolean supportsTagMoveOnRemove()
- Specified by:
supportsTagMoveOnRemove
in interfaceTagFeatureFileLocation
- Overrides:
supportsTagMoveOnRemove
in classTagBase
-
supportsTagMoveOnAssign
public boolean supportsTagMoveOnAssign()
- Specified by:
supportsTagMoveOnAssign
in interfaceTagFeatureFileLocation
- Overrides:
supportsTagMoveOnAssign
in classTagBase
-
getSupportedProperties
public TagFeatureProperties.TagProperty[] getSupportedProperties()
- Specified by:
getSupportedProperties
in interfaceTagFeatureProperties
- Overrides:
getSupportedProperties
in classTagBase
-
isTagAuto
public boolean[] isTagAuto()
-
getMaximumTaggables
public int getMaximumTaggables()
- Specified by:
getMaximumTaggables
in interfaceTagFeatureLimits
- Overrides:
getMaximumTaggables
in classTagBase
-
checkMaximumTaggables
protected void checkMaximumTaggables()
- Overrides:
checkMaximumTaggables
in classTagBase
-
dependsOnTags
public java.util.List<Tag> dependsOnTags()
- Specified by:
dependsOnTags
in interfaceTag
-
-