com.aelitis.azureus.core.metasearch
Interface Engine
- All Known Implementing Classes:
- EngineImpl, JSONEngine, PluginEngine, RegexEngine, RSSEngine, WebEngine
public interface Engine
AZ_VERSION
static final int AZ_VERSION
- AZ_VERSION:
1: Original
2: field value substitution in JSON engine type using ${FIELD_ID}
3: field value substitution in REGEX engine type using ${FIELD_NO}
- See Also:
- Constant Field Values
VUZE_FILE_COMPONENT_ENGINE_KEY
static final Object VUZE_FILE_COMPONENT_ENGINE_KEY
FIELD_NAME
static final int FIELD_NAME
- See Also:
- Constant Field Values
FIELD_DATE
static final int FIELD_DATE
- See Also:
- Constant Field Values
FIELD_SIZE
static final int FIELD_SIZE
- See Also:
- Constant Field Values
FIELD_PEERS
static final int FIELD_PEERS
- See Also:
- Constant Field Values
FIELD_SEEDS
static final int FIELD_SEEDS
- See Also:
- Constant Field Values
FIELD_CATEGORY
static final int FIELD_CATEGORY
- See Also:
- Constant Field Values
FIELD_COMMENTS
static final int FIELD_COMMENTS
- See Also:
- Constant Field Values
FIELD_CONTENT_TYPE
static final int FIELD_CONTENT_TYPE
- See Also:
- Constant Field Values
FIELD_DISCARD
static final int FIELD_DISCARD
- See Also:
- Constant Field Values
FIELD_VOTES
static final int FIELD_VOTES
- See Also:
- Constant Field Values
FIELD_SUPERSEEDS
static final int FIELD_SUPERSEEDS
- See Also:
- Constant Field Values
FIELD_PRIVATE
static final int FIELD_PRIVATE
- See Also:
- Constant Field Values
FIELD_DRMKEY
static final int FIELD_DRMKEY
- See Also:
- Constant Field Values
FIELD_VOTES_DOWN
static final int FIELD_VOTES_DOWN
- See Also:
- Constant Field Values
FIELD_TORRENTLINK
static final int FIELD_TORRENTLINK
- See Also:
- Constant Field Values
FIELD_CDPLINK
static final int FIELD_CDPLINK
- See Also:
- Constant Field Values
FIELD_PLAYLINK
static final int FIELD_PLAYLINK
- See Also:
- Constant Field Values
FIELD_DOWNLOADBTNLINK
static final int FIELD_DOWNLOADBTNLINK
- See Also:
- Constant Field Values
FIELD_HASH
static final int FIELD_HASH
- See Also:
- Constant Field Values
FIELD_RANK
static final int FIELD_RANK
- See Also:
- Constant Field Values
FIELD_IDS
static final int[] FIELD_IDS
FIELD_NAMES
static final String[] FIELD_NAMES
ENGINE_TYPE_REGEX
static final int ENGINE_TYPE_REGEX
- See Also:
- Constant Field Values
ENGINE_TYPE_JSON
static final int ENGINE_TYPE_JSON
- See Also:
- Constant Field Values
ENGINE_TYPE_PLUGIN
static final int ENGINE_TYPE_PLUGIN
- See Also:
- Constant Field Values
ENGINE_TYPE_RSS
static final int ENGINE_TYPE_RSS
- See Also:
- Constant Field Values
ENGINE_SOURCE_UNKNOWN
static final int ENGINE_SOURCE_UNKNOWN
- See Also:
- Constant Field Values
ENGINE_SOURCE_VUZE
static final int ENGINE_SOURCE_VUZE
- See Also:
- Constant Field Values
ENGINE_SOURCE_LOCAL
static final int ENGINE_SOURCE_LOCAL
- See Also:
- Constant Field Values
ENGINE_SOURCE_RSS
static final int ENGINE_SOURCE_RSS
- See Also:
- Constant Field Values
SEL_STATE_DESELECTED
static final int SEL_STATE_DESELECTED
- See Also:
- Constant Field Values
SEL_STATE_AUTO_SELECTED
static final int SEL_STATE_AUTO_SELECTED
- See Also:
- Constant Field Values
SEL_STATE_MANUAL_SELECTED
static final int SEL_STATE_MANUAL_SELECTED
- See Also:
- Constant Field Values
AUTO_DL_SUPPORTED_UNKNOWN
static final int AUTO_DL_SUPPORTED_UNKNOWN
- See Also:
- Constant Field Values
AUTO_DL_SUPPORTED_YES
static final int AUTO_DL_SUPPORTED_YES
- See Also:
- Constant Field Values
AUTO_DL_SUPPORTED_NO
static final int AUTO_DL_SUPPORTED_NO
- See Also:
- Constant Field Values
ENGINE_SOURCE_STRS
static final String[] ENGINE_SOURCE_STRS
- don't change these as they are externalised
SEL_STATE_STRINGS
static final String[] SEL_STATE_STRINGS
ENGINE_TYPE_STRS
static final String[] ENGINE_TYPE_STRS
SC_SOURCE
static final String SC_SOURCE
- See Also:
- Constant Field Values
SC_AZID
static final String SC_AZID
- See Also:
- Constant Field Values
SC_FORCE_FULL
static final String SC_FORCE_FULL
- See Also:
- Constant Field Values
SC_BATCH_PERIOD
static final String SC_BATCH_PERIOD
- See Also:
- Constant Field Values
SC_REMOVE_DUP_HASH
static final String SC_REMOVE_DUP_HASH
- See Also:
- Constant Field Values
CT_VIDEO
static final String CT_VIDEO
- See Also:
- Constant Field Values
CT_AUDIO
static final String CT_AUDIO
- See Also:
- Constant Field Values
CT_GAME
static final String CT_GAME
- See Also:
- Constant Field Values
getType
int getType()
search
Result[] search(SearchParameter[] searchParameters,
Map context,
int desired_max_matches,
int absolute_max_matches,
String headers,
ResultListener listener)
throws SearchException
- Throws:
SearchException
getName
String getName()
getNameEx
String getNameEx()
getId
long getId()
getUID
String getUID()
getVersion
int getVersion()
getLastUpdated
long getLastUpdated()
getIcon
String getIcon()
getDownloadLinkCSS
String getDownloadLinkCSS()
isActive
boolean isActive()
isMine
boolean isMine()
isPublic
boolean isPublic()
setMine
void setMine(boolean mine)
getSelectionState
int getSelectionState()
setSelectionState
void setSelectionState(int state)
recordSelectionState
void recordSelectionState()
checkSelectionStateRecorded
void checkSelectionStateRecorded()
getSource
int getSource()
setSource
void setSource(int source)
getReferer
String getReferer()
getRankBias
float getRankBias()
setRankBias
void setRankBias(float bias)
setPreferredDelta
void setPreferredDelta(float delta)
getPreferredWeighting
float getPreferredWeighting()
applyRankBias
float applyRankBias(float rank)
supportsField
boolean supportsField(int field_id)
supportsContext
boolean supportsContext(String context_key)
isShareable
boolean isShareable()
isAuthenticated
boolean isAuthenticated()
getAutoDownloadSupported
int getAutoDownloadSupported()
- Returns:
- one of AUTO_DL constants above
getAZVersion
int getAZVersion()
addPotentialAssociation
void addPotentialAssociation(String key)
exportToBencodedMap
Map<String,Object> exportToBencodedMap()
throws IOException
- Throws:
IOException
exportToBencodedMap
Map<String,Object> exportToBencodedMap(boolean generic)
throws IOException
- Throws:
IOException
exportToJSONString
String exportToJSONString()
throws IOException
- Throws:
IOException
exportToVuzeFile
void exportToVuzeFile(File target)
throws IOException
- Throws:
IOException
exportToVuzeFile
VuzeFile exportToVuzeFile()
throws IOException
- Throws:
IOException
sameLogicAs
boolean sameLogicAs(Engine other)
- Tests for sameness in terms of function (ignores id, selection state etc)
- Parameters:
other
-
- Returns:
reset
void reset()
- resets to initial state (e.g. if the engine has state pertaining to what has/hasn't been downloaded
such as etags then this will be cleared)
delete
void delete()
getString
String getString()