|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PluginInterface
Defines the communication interface between Azureus and Plugins
Method Summary | |
---|---|
void |
addConfigSection(ConfigSection section)
Deprecated. Use UIManager.createBasicPluginConfigModel(String) instead. |
void |
addConfigUIParameters(Parameter[] parameters,
java.lang.String displayName)
Deprecated. Use of this is discouraged - use UIManager#getBasicPluginViewModel(String)
to get a BasicPluginViewModel instance, and then use the methods on that to add
parameters. |
void |
addEventListener(PluginEventListener l)
|
void |
addListener(PluginListener l)
|
void |
firePluginEvent(PluginEvent event)
Fire a plugin-specific event. |
java.lang.String |
getApplicationName()
Returns the name of the application that the user sees - if you need to display the name of the program, you should use this method. |
java.lang.String |
getAzureusName()
Retrieve the name of the application. |
java.lang.String |
getAzureusVersion()
Retrieve the Application's version as a string. |
ClientIDManager |
getClientIDManager()
|
ConfigSection[] |
getConfigSections()
|
ConnectionManager |
getConnectionManager()
Get the connection manager. |
DistributedDatabase |
getDistributedDatabase()
Get the distributed database |
DownloadManager |
getDownloadManager()
Gives access to the download manager |
IPCInterface |
getIPC()
get the inter-plugin-communcations interface for this plugin |
IPFilter |
getIPFilter()
Gives access to the IP filter |
PluginInterface |
getLocalPluginInterface(java.lang.Class plugin,
java.lang.String id)
Returns an initialised plugin instance with its own scope (e.g. |
Logger |
getLogger()
Gives access to the logger |
MainlineDHTManager |
getMainlineDHTManager()
Returns the manager object for registering plugins that connect to the Mainline DHT. |
MessageManager |
getMessageManager()
Get the peer messaging manager. |
java.lang.String |
getPerUserPluginDirectoryName()
gives access to the per-user plugin directory. |
PlatformManager |
getPlatformManager()
Gets the platform manager that gives access to native functionality |
Plugin |
getPlugin()
Gives access to the plugin itself |
java.lang.ClassLoader |
getPluginClassLoader()
gives access to the ClassLoader used to load the plugin |
PluginConfig |
getPluginconfig()
gives access to the plugin config interface |
PluginConfigUIFactory |
getPluginConfigUIFactory()
Deprecated. Use of this is discouraged - use UIManager#getBasicPluginViewModel(String)
to get a BasicPluginViewModel instance, and then use the methods on that to add
parameters. |
java.lang.String |
getPluginDirectoryName()
Gives access to the plugin installation path - note, if you want to use this path to store data files in, it would be better for you to use PluginConfig.getPluginUserFile(String) instead. |
java.lang.String |
getPluginID()
Returns an identifier used to identify this particular plugin |
PluginManager |
getPluginManager()
gives access to the plugin manager |
java.lang.String |
getPluginName()
Returns the value of "plugin.name" if it exists in the properties file, otherwise the directory name is returned. |
java.util.Properties |
getPluginProperties()
gives access to the plugin properties |
PluginState |
getPluginState()
Returns an object that provides information the current state of the plugin, and provides various mechanisms to query and control plugins and their integration with Azureus at a low-level. |
java.lang.String |
getPluginVersion()
Returns the version number of the plugin it if can be deduced from either the name of the jar file it is loaded from or the properties file. |
ShareManager |
getShareManager()
Gives access to the sharing functionality |
ShortCuts |
getShortCuts()
access to a set of convenience routines for doing things in a quicker, although less structured, fashion |
TorrentManager |
getTorrentManager()
Gives access to the torrent manager |
Tracker |
getTracker()
Gives access to the tracker functionality |
UIManager |
getUIManager()
access to UI extension features |
UpdateManager |
getUpdateManager()
access to the update manager used to update plugins. |
Utilities |
getUtilities()
access to various utility functions |
boolean |
isBuiltIn()
Deprecated. Use PluginState.isBuiltIn() . |
boolean |
isDisabled()
Deprecated. Use PluginState.isDisabled() . |
boolean |
isInitialisationThread()
Indicates whether or not the current thread is the one responsible for running plugin initialisation |
boolean |
isMandatory()
Deprecated. Use PluginState.isMandatory() . |
boolean |
isOperational()
Deprecated. Use PluginState.isOperational() . |
boolean |
isShared()
Deprecated. Use PluginState.isShared() . |
boolean |
isUnloadable()
Deprecated. Use PluginState.isUnloadable() . |
void |
openTorrentFile(java.lang.String fileName)
Deprecated. Use DownloadManager.addDownload(java.io.File) |
void |
openTorrentURL(java.lang.String url)
Deprecated. Use DownloadManager.addDownload(java.io.File) |
void |
reload()
Deprecated. Use PluginState.reload() . |
void |
removeConfigSection(ConfigSection section)
|
void |
removeEventListener(PluginEventListener l)
|
void |
removeListener(PluginListener l)
|
void |
setDisabled(boolean disabled)
Deprecated. Use PluginState.setDisabled(boolean) . |
void |
uninstall()
Deprecated. Use PluginState.uninstall() . |
void |
unload()
Deprecated. Use PluginState.unload() . |
Method Detail |
---|
java.lang.String getAzureusName()
java.lang.String getApplicationName()
java.lang.String getAzureusVersion()
void addConfigUIParameters(Parameter[] parameters, java.lang.String displayName)
UIManager#getBasicPluginViewModel(String)
to get a BasicPluginViewModel instance, and then use the methods on that to add
parameters.
getPluginConfigUIFactory()
to get the
PluginConfigUIFactory
class, from which you can create different
types of parameters.
parameters
- the Parameter(s) to be editeddisplayName
- the under which it should display.void addConfigSection(ConfigSection section)
UIManager.createBasicPluginConfigModel(String)
instead.
In contrast to addConfigUIParameters, this gives you total control over
a tab. Please be kind and use localizable text.
section
- ConfigSection to be added to the Config viewvoid removeConfigSection(ConfigSection section)
section
- ConfigSection[] getConfigSections()
Tracker getTracker()
Logger getLogger()
IPFilter getIPFilter()
DownloadManager getDownloadManager()
ShareManager getShareManager() throws ShareException
ShareException
TorrentManager getTorrentManager()
Utilities getUtilities()
ShortCuts getShortCuts()
UIManager getUIManager()
UpdateManager getUpdateManager()
void openTorrentFile(java.lang.String fileName)
DownloadManager.addDownload(java.io.File)
fileName
- The Name of the file that azureus must openvoid openTorrentURL(java.lang.String url)
DownloadManager.addDownload(java.io.File)
url
- The String representation of the url pointing to a torrent filejava.util.Properties getPluginProperties()
java.lang.String getPluginDirectoryName()
PluginConfig.getPluginUserFile(String)
instead.
java.lang.String getPerUserPluginDirectoryName()
java.lang.String getPluginName()
java.lang.String getPluginVersion()
java.lang.String getPluginID()
boolean isMandatory()
PluginState.isMandatory()
.
boolean isBuiltIn()
PluginState.isBuiltIn()
.
PluginConfig getPluginconfig()
PluginConfigUIFactory getPluginConfigUIFactory()
UIManager#getBasicPluginViewModel(String)
to get a BasicPluginViewModel instance, and then use the methods on that to add
parameters.
java.lang.ClassLoader getPluginClassLoader()
PluginInterface getLocalPluginInterface(java.lang.Class plugin, java.lang.String id) throws PluginException
plugin
- must implement Pluginid
- the unique id of this plugin (used to scope config params etc)
PluginException
IPCInterface getIPC()
Plugin getPlugin()
boolean isOperational()
PluginState.isOperational()
.
boolean isDisabled()
PluginState.isDisabled()
.
void setDisabled(boolean disabled)
PluginState.setDisabled(boolean)
.
#setLoadedAtStartup(boolean)
instead. This needs
to be called prior to a plugin's initialisation to take effect.
disabled
- boolean isUnloadable()
PluginState.isUnloadable()
.
boolean isShared()
PluginState.isShared()
.
void unload() throws PluginException
PluginState.unload()
.
PluginException
void reload() throws PluginException
PluginState.reload()
.
PluginException
void uninstall() throws PluginException
PluginState.uninstall()
.
PluginException
boolean isInitialisationThread()
PluginManager getPluginManager()
ClientIDManager getClientIDManager()
ConnectionManager getConnectionManager()
MessageManager getMessageManager()
DistributedDatabase getDistributedDatabase()
PlatformManager getPlatformManager()
void addListener(PluginListener l)
void removeListener(PluginListener l)
void firePluginEvent(PluginEvent event)
event
- void addEventListener(PluginEventListener l)
void removeEventListener(PluginEventListener l)
MainlineDHTManager getMainlineDHTManager()
PluginState getPluginState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |