|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.remote.RPObject org.gudy.azureus2.pluginsimpl.remote.RPPluginInterface
public class RPPluginInterface
Field Summary | |
---|---|
long |
_connection_id
|
String |
azureus_name
|
String |
azureus_version
|
protected static long |
connection_id_next
|
protected PluginInterface |
delegate
|
protected long |
request_id_next
|
Fields inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject |
---|
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse |
Constructor Summary | |
---|---|
protected |
RPPluginInterface(PluginInterface _delegate)
|
Method Summary | |
---|---|
protected long |
_getConectionId()
|
protected long |
_getNextRequestId()
|
RPReply |
_process(RPRequest request)
|
protected void |
_setDelegate(Object _delegate)
|
Object |
_setLocal()
|
void |
addConfigSection(ConfigSection tab)
adds a ConfigSection to the config view. |
void |
addConfigUIParameters(Parameter[] parameters,
String displayName)
adds a tab under the 'plugins' tab in the config view. Use PluginInterface.getPluginConfigUIFactory() to get the
PluginConfigUIFactory class, from which you can create different
types of parameters. |
void |
addEventListener(PluginEventListener l)
|
void |
addListener(PluginListener l)
|
static RPPluginInterface |
create(PluginInterface _delegate)
|
void |
firePluginEvent(PluginEvent event)
Fire a plugin-specific event. |
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. |
String |
getAzureusName()
Retrieve the name of the application. |
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(Class plugin,
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. |
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 |
ClassLoader |
getPluginClassLoader()
gives access to the ClassLoader used to load the plugin |
PluginConfig |
getPluginconfig()
gives access to the plugin config interface |
PluginConfigUIFactory |
getPluginConfigUIFactory()
gives access to the plugin Config UI Factory |
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. |
String |
getPluginID()
Returns an identifier used to identify this particular plugin |
PluginManager |
getPluginManager()
gives access to the plugin manager |
String |
getPluginName()
Returns the value of "plugin.name" if it exists in the properties file, otherwise the directory name is returned. |
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. |
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()
Built-in plugins are those used internally by Azureus, for example the UPnP plugin |
boolean |
isDisabled()
Returns true if the plugin has been marked as disabled, and prevented from initialising. |
boolean |
isInitialisationThread()
Indicates whether or not the current thread is the one responsible for running plugin initialisation |
boolean |
isMandatory()
Whether or not this is a mandatory plugin. |
boolean |
isOperational()
Returns true if the plugin is running, returns false if the plugin isn't running for some reason. |
boolean |
isShared()
|
boolean |
isSigned()
|
boolean |
isUnloadable()
|
void |
openTorrentFile(String fileName)
Deprecated. |
void |
openTorrentURL(String url)
Deprecated. |
void |
reload()
|
void |
removeConfigSection(ConfigSection tab)
|
void |
removeEventListener(PluginEventListener l)
|
void |
removeListener(PluginListener l)
|
void |
setDisabled(boolean disabled)
Sets whether the plugin can be loaded or not. |
void |
uninstall()
Uninstall this plugin if it has been loaded from a plugin directory. |
void |
unload()
|
Methods inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject |
---|
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, _setRemote, getDispatcher, notSupported, notSupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static transient long connection_id_next
protected transient PluginInterface delegate
protected transient long request_id_next
public String azureus_name
public String azureus_version
public long _connection_id
Constructor Detail |
---|
protected RPPluginInterface(PluginInterface _delegate)
Method Detail |
---|
public static RPPluginInterface create(PluginInterface _delegate)
protected long _getConectionId()
protected long _getNextRequestId()
protected void _setDelegate(Object _delegate)
_setDelegate
in class RPObject
public Object _setLocal() throws RPException
_setLocal
in class RPObject
RPException
public RPReply _process(RPRequest request)
_process
in class RPObject
public PluginManager getPluginManager()
PluginInterface
getPluginManager
in interface PluginInterface
public Plugin getPlugin()
PluginInterface
getPlugin
in interface PluginInterface
public String getAzureusName()
PluginInterface
getAzureusName
in interface PluginInterface
public String getAzureusVersion()
PluginInterface
getAzureusVersion
in interface PluginInterface
public String getApplicationName()
PluginInterface
getApplicationName
in interface PluginInterface
public void addConfigUIParameters(Parameter[] parameters, String displayName)
PluginInterface
PluginInterface.getPluginConfigUIFactory()
to get the
PluginConfigUIFactory
class, from which you can create different
types of parameters.
addConfigUIParameters
in interface PluginInterface
parameters
- the Parameter(s) to be editeddisplayName
- the under which it should display.public void addConfigSection(ConfigSection tab)
PluginInterface
In contrast to addConfigUIParameters, this gives you total control over
a tab. Please be kind and use localizable text.
addConfigSection
in interface PluginInterface
tab
- ConfigSection to be added to the Config viewpublic void removeConfigSection(ConfigSection tab)
removeConfigSection
in interface PluginInterface
public Tracker getTracker()
PluginInterface
getTracker
in interface PluginInterface
public Logger getLogger()
PluginInterface
getLogger
in interface PluginInterface
public IPFilter getIPFilter()
PluginInterface
getIPFilter
in interface PluginInterface
public DownloadManager getDownloadManager()
PluginInterface
getDownloadManager
in interface PluginInterface
public ShareManager getShareManager() throws ShareException
PluginInterface
getShareManager
in interface PluginInterface
ShareException
public Utilities getUtilities()
PluginInterface
getUtilities
in interface PluginInterface
public ShortCuts getShortCuts()
PluginInterface
getShortCuts
in interface PluginInterface
public UIManager getUIManager()
PluginInterface
getUIManager
in interface PluginInterface
public TorrentManager getTorrentManager()
PluginInterface
getTorrentManager
in interface PluginInterface
public void openTorrentFile(String fileName)
PluginInterface
openTorrentFile
in interface PluginInterface
fileName
- The Name of the file that azureus must openpublic void openTorrentURL(String url)
PluginInterface
openTorrentURL
in interface PluginInterface
url
- The String representation of the url pointing to a torrent filepublic Properties getPluginProperties()
PluginInterface
getPluginProperties
in interface PluginInterface
public String getPluginDirectoryName()
PluginInterface
PluginConfig.getPluginUserFile(String)
instead.
getPluginDirectoryName
in interface PluginInterface
public String getPerUserPluginDirectoryName()
PluginInterface
getPerUserPluginDirectoryName
in interface PluginInterface
public boolean isShared()
isShared
in interface PluginInterface
public String getPluginName()
PluginInterface
getPluginName
in interface PluginInterface
public String getPluginID()
PluginInterface
getPluginID
in interface PluginInterface
public boolean isMandatory()
PluginInterface
isMandatory
in interface PluginInterface
public boolean isBuiltIn()
PluginInterface
isBuiltIn
in interface PluginInterface
public boolean isSigned()
public boolean isOperational()
PluginInterface
isOperational
in interface PluginInterface
public void setDisabled(boolean disabled)
PluginInterface
#setLoadedAtStartup(boolean)
instead. This needs
to be called prior to a plugin's initialisation to take effect.
setDisabled
in interface PluginInterface
public boolean isDisabled()
PluginInterface
isDisabled
in interface PluginInterface
public String getPluginVersion()
PluginInterface
getPluginVersion
in interface PluginInterface
public PluginConfig getPluginconfig()
PluginInterface
getPluginconfig
in interface PluginInterface
public PluginConfigUIFactory getPluginConfigUIFactory()
PluginInterface
getPluginConfigUIFactory
in interface PluginInterface
public ClassLoader getPluginClassLoader()
PluginInterface
getPluginClassLoader
in interface PluginInterface
public PluginInterface getLocalPluginInterface(Class plugin, String id)
PluginInterface
getLocalPluginInterface
in interface PluginInterface
plugin
- must implement Pluginid
- the unique id of this plugin (used to scope config params etc)
public IPCInterface getIPC()
PluginInterface
getIPC
in interface PluginInterface
public UpdateManager getUpdateManager()
PluginInterface
getUpdateManager
in interface PluginInterface
public boolean isUnloadable()
isUnloadable
in interface PluginInterface
public void unload() throws PluginException
unload
in interface PluginInterface
PluginException
public void reload() throws PluginException
reload
in interface PluginInterface
PluginException
public void uninstall() throws PluginException
PluginInterface
uninstall
in interface PluginInterface
PluginException
public boolean isInitialisationThread()
PluginInterface
isInitialisationThread
in interface PluginInterface
public ClientIDManager getClientIDManager()
getClientIDManager
in interface PluginInterface
public ConnectionManager getConnectionManager()
PluginInterface
getConnectionManager
in interface PluginInterface
public MessageManager getMessageManager()
PluginInterface
getMessageManager
in interface PluginInterface
public DistributedDatabase getDistributedDatabase()
PluginInterface
getDistributedDatabase
in interface PluginInterface
public PlatformManager getPlatformManager()
PluginInterface
getPlatformManager
in interface PluginInterface
public void addListener(PluginListener l)
addListener
in interface PluginInterface
public void removeListener(PluginListener l)
removeListener
in interface PluginInterface
public void firePluginEvent(PluginEvent event)
PluginInterface
firePluginEvent
in interface PluginInterface
public void addEventListener(PluginEventListener l)
addEventListener
in interface PluginInterface
public void removeEventListener(PluginEventListener l)
removeEventListener
in interface PluginInterface
public ConfigSection[] getConfigSections()
getConfigSections
in interface PluginInterface
public MainlineDHTManager getMainlineDHTManager()
PluginInterface
getMainlineDHTManager
in interface PluginInterface
public PluginState getPluginState()
PluginInterface
getPluginState
in interface PluginInterface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |