|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.pluginsimpl.remote.RPObject
org.gudy.azureus2.pluginsimpl.remote.RPPluginInterface
public class RPPluginInterface
| Field Summary | |
|---|---|
long |
_connection_id
|
java.lang.String |
azureus_name
|
java.lang.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(java.lang.Object _delegate)
|
java.lang.Object |
_setLocal()
|
void |
addConfigSection(ConfigSection tab)
adds a ConfigSection to the config view. |
void |
addConfigUIParameters(Parameter[] parameters,
java.lang.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. |
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()
gives access to the plugin Config UI Factory |
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()
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(java.lang.String fileName)
Deprecated. |
void |
openTorrentURL(java.lang.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 java.lang.String azureus_name
public java.lang.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(java.lang.Object _delegate)
_setDelegate in class RPObject
public java.lang.Object _setLocal()
throws RPException
_setLocal in class RPObjectRPExceptionpublic RPReply _process(RPRequest request)
_process in class RPObjectpublic PluginManager getPluginManager()
PluginInterface
getPluginManager in interface PluginInterfacepublic Plugin getPlugin()
PluginInterface
getPlugin in interface PluginInterfacepublic java.lang.String getAzureusName()
PluginInterface
getAzureusName in interface PluginInterfacepublic java.lang.String getAzureusVersion()
PluginInterface
getAzureusVersion in interface PluginInterfacepublic java.lang.String getApplicationName()
PluginInterface
getApplicationName in interface PluginInterface
public void addConfigUIParameters(Parameter[] parameters,
java.lang.String displayName)
PluginInterfacePluginInterface.getPluginConfigUIFactory() to get the
PluginConfigUIFactory class, from which you can create different
types of parameters.
addConfigUIParameters in interface PluginInterfaceparameters - 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 PluginInterfacetab - ConfigSection to be added to the Config viewpublic void removeConfigSection(ConfigSection tab)
removeConfigSection in interface PluginInterfacepublic Tracker getTracker()
PluginInterface
getTracker in interface PluginInterfacepublic Logger getLogger()
PluginInterface
getLogger in interface PluginInterfacepublic IPFilter getIPFilter()
PluginInterface
getIPFilter in interface PluginInterfacepublic DownloadManager getDownloadManager()
PluginInterface
getDownloadManager in interface PluginInterface
public ShareManager getShareManager()
throws ShareException
PluginInterface
getShareManager in interface PluginInterfaceShareExceptionpublic Utilities getUtilities()
PluginInterface
getUtilities in interface PluginInterfacepublic ShortCuts getShortCuts()
PluginInterface
getShortCuts in interface PluginInterfacepublic UIManager getUIManager()
PluginInterface
getUIManager in interface PluginInterfacepublic TorrentManager getTorrentManager()
PluginInterface
getTorrentManager in interface PluginInterfacepublic void openTorrentFile(java.lang.String fileName)
PluginInterface
openTorrentFile in interface PluginInterfacefileName - The Name of the file that azureus must openpublic void openTorrentURL(java.lang.String url)
PluginInterface
openTorrentURL in interface PluginInterfaceurl - The String representation of the url pointing to a torrent filepublic java.util.Properties getPluginProperties()
PluginInterface
getPluginProperties in interface PluginInterfacepublic java.lang.String getPluginDirectoryName()
PluginInterfacePluginConfig.getPluginUserFile(String) instead.
getPluginDirectoryName in interface PluginInterfacepublic java.lang.String getPerUserPluginDirectoryName()
PluginInterface
getPerUserPluginDirectoryName in interface PluginInterfacepublic boolean isShared()
isShared in interface PluginInterfacepublic java.lang.String getPluginName()
PluginInterface
getPluginName in interface PluginInterfacepublic java.lang.String getPluginID()
PluginInterface
getPluginID in interface PluginInterfacepublic boolean isMandatory()
PluginInterface
isMandatory in interface PluginInterfacepublic boolean isBuiltIn()
PluginInterface
isBuiltIn in interface PluginInterfacepublic boolean isSigned()
public boolean isOperational()
PluginInterface
isOperational in interface PluginInterfacepublic 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 PluginInterfacepublic boolean isDisabled()
PluginInterface
isDisabled in interface PluginInterfacepublic java.lang.String getPluginVersion()
PluginInterface
getPluginVersion in interface PluginInterfacepublic PluginConfig getPluginconfig()
PluginInterface
getPluginconfig in interface PluginInterfacepublic PluginConfigUIFactory getPluginConfigUIFactory()
PluginInterface
getPluginConfigUIFactory in interface PluginInterfacepublic java.lang.ClassLoader getPluginClassLoader()
PluginInterface
getPluginClassLoader in interface PluginInterface
public PluginInterface getLocalPluginInterface(java.lang.Class plugin,
java.lang.String id)
PluginInterface
getLocalPluginInterface in interface PluginInterfaceplugin - must implement Pluginid - the unique id of this plugin (used to scope config params etc)
public IPCInterface getIPC()
PluginInterface
getIPC in interface PluginInterfacepublic UpdateManager getUpdateManager()
PluginInterface
getUpdateManager in interface PluginInterfacepublic boolean isUnloadable()
isUnloadable in interface PluginInterface
public void unload()
throws PluginException
unload in interface PluginInterfacePluginException
public void reload()
throws PluginException
reload in interface PluginInterfacePluginException
public void uninstall()
throws PluginException
PluginInterface
uninstall in interface PluginInterfacePluginExceptionpublic boolean isInitialisationThread()
PluginInterface
isInitialisationThread in interface PluginInterfacepublic ClientIDManager getClientIDManager()
getClientIDManager in interface PluginInterfacepublic ConnectionManager getConnectionManager()
PluginInterface
getConnectionManager in interface PluginInterfacepublic MessageManager getMessageManager()
PluginInterface
getMessageManager in interface PluginInterfacepublic DistributedDatabase getDistributedDatabase()
PluginInterface
getDistributedDatabase in interface PluginInterfacepublic PlatformManager getPlatformManager()
PluginInterface
getPlatformManager in interface PluginInterfacepublic void addListener(PluginListener l)
addListener in interface PluginInterfacepublic void removeListener(PluginListener l)
removeListener in interface PluginInterfacepublic void firePluginEvent(PluginEvent event)
PluginInterface
firePluginEvent in interface PluginInterfacepublic void addEventListener(PluginEventListener l)
addEventListener in interface PluginInterfacepublic void removeEventListener(PluginEventListener l)
removeEventListener in interface PluginInterfacepublic ConfigSection[] getConfigSections()
getConfigSections in interface PluginInterfacepublic MainlineDHTManager getMainlineDHTManager()
PluginInterface
getMainlineDHTManager in interface PluginInterfacepublic PluginState getPluginState()
PluginInterface
getPluginState in interface PluginInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||