FileDocCategorySizeDatePackage
RPPluginInterface.javaAPI DocAzureus 3.0.3.411346Fri Sep 07 09:14:10 BST 2007org.gudy.azureus2.pluginsimpl.remote

RPPluginInterface

public class RPPluginInterface extends RPObject implements PluginInterface
author
parg

Fields Summary
protected static 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
Constructors Summary
protected RPPluginInterface(PluginInterface _delegate)

		super( _delegate );
		
		synchronized( RPPluginInterface.class ){
			
			_connection_id = connection_id_next++;
			
				// avoid 0 as it has special meaning (-> no connection for singleton calls);
			
			if ( _connection_id == 0 ){
				
				_connection_id = connection_id_next++;
			}
		}
	
Methods Summary
protected long_getConectionId()

		return( _connection_id );
	
protected long_getNextRequestId()

		synchronized( this ){
		
			return( request_id_next++ );
		}
	
public RPReply_process(RPRequest request)

		String	method = request.getMethod();
		
		if ( method.equals( "getPluginProperties")){
				
				// must copy properties as actual return is subtype + non serialisable
			
			Properties p = new Properties();
			
			Properties x = delegate.getPluginProperties();
			
			Iterator	it = x.keySet().iterator();
			
			while(it.hasNext()){
				
				Object	key = it.next();
				
				p.put( key, x.get(key));
			}
			
			return( new RPReply( p ));
			
		}else if ( method.equals( "getDownloadManager")){
			
			return( new RPReply( RPDownloadManager.create(delegate.getDownloadManager())));
		
		}else if ( method.equals( "getTorrentManager")){
			
			return( new RPReply( RPTorrentManager.create(delegate.getTorrentManager())));
		
		}else if ( method.equals( "getPluginconfig")){
			
			return( new RPReply( RPPluginConfig.create(delegate.getPluginconfig())));
			
		}else if ( method.equals( "getIPFilter")){
			
			return( new RPReply( RPIPFilter.create(delegate.getIPFilter())));
			
		}else if ( method.equals( "getShortCuts")){
			
			return( new RPReply( RPShortCuts.create(delegate.getShortCuts())));
			
		}else if ( method.equals( "getTracker")){
			
			return( new RPReply( RPTracker.create(delegate.getTracker())));
		}
			
		throw( new RPException( "Unknown method: " + method ));
	
protected void_setDelegate(java.lang.Object _delegate)

		delegate = (PluginInterface)_delegate;
	
public java.lang.Object_setLocal()

		return( _fixupLocal());
	
public voidaddColumnToMyTorrentsTable(java.lang.String columnName, org.gudy.azureus2.plugins.ui.tables.mytorrents.PluginMyTorrentsItemFactory factory)

    	notSupported();
    
public voidaddColumnToPeersTable(java.lang.String columnName, org.gudy.azureus2.plugins.ui.tables.peers.PluginPeerItemFactory factory)

		notSupported();
	
public voidaddConfigSection(org.gudy.azureus2.plugins.ui.config.ConfigSection tab)

		notSupported();
	
public voidaddConfigUIParameters(org.gudy.azureus2.plugins.ui.config.Parameter[] parameters, java.lang.String displayName)

		notSupported();
	
public voidaddEventListener(PluginEventListener l)

		notSupported();
	
public voidaddListener(PluginListener l)

		notSupported();
	
public voidaddView(PluginView view)

		notSupported();
	
public static org.gudy.azureus2.pluginsimpl.remote.RPPluginInterfacecreate(PluginInterface _delegate)


	// **** Don't try using AEMOnitor for synchronisations here as this object is serialised
	
	  
	
				 
	
		RPPluginInterface	res =(RPPluginInterface)_lookupLocal( _delegate );
		
		if ( res == null ){
			
			res = new RPPluginInterface( _delegate );
		}
		
		return( res );
	
public voidfirePluginEvent(PluginEvent event)

	  notSupported();
	
public java.lang.StringgetAzureusName()

		return( azureus_name );
	
public java.lang.StringgetAzureusVersion()

		return( azureus_version );
	
public org.gudy.azureus2.plugins.clientid.ClientIDManagergetClientIDManager()

	 	notSupported();
	 	
	 	return( null );
	 
public org.gudy.azureus2.plugins.ui.config.ConfigSection[]getConfigSections()

		// TODO Auto-generated method stub
		return null;
	
public org.gudy.azureus2.plugins.network.ConnectionManagergetConnectionManager()

     notSupported();
     return null; 
   
public org.gudy.azureus2.plugins.ddb.DistributedDatabasegetDistributedDatabase()

    notSupported();
    return null; 
   
public org.gudy.azureus2.plugins.download.DownloadManagergetDownloadManager()

		RPDownloadManager	res = (RPDownloadManager)_dispatcher.dispatch( new RPRequest( this, "getDownloadManager", null )).getResponse();
	
		res._setRemote( _dispatcher );
		
		return( res );
	
public org.gudy.azureus2.plugins.ipc.IPCInterfacegetIPC()

		notSupported();
		
		return( null );
	
public org.gudy.azureus2.plugins.ipfilter.IPFiltergetIPFilter()

		RPIPFilter	res = (RPIPFilter)_dispatcher.dispatch( new RPRequest( this, "getIPFilter", null )).getResponse();
		
		res._setRemote( _dispatcher );
			
		return( res );	
	
public PluginInterfacegetLocalPluginInterface(java.lang.Class plugin, java.lang.String id)

		notSupported();
		
		return( null );
	
public org.gudy.azureus2.plugins.logging.LoggergetLogger()

		notSupported();
		
		return( null );
	
public org.gudy.azureus2.plugins.messaging.MessageManagergetMessageManager()

     notSupported();
     return null; 
   
public org.gudy.azureus2.plugins.peers.protocol.PeerProtocolManagergetPeerProtocolManager()

		notSupported();
		
		return( null );
	
public org.gudy.azureus2.plugins.platform.PlatformManagergetPlatformManager()

    notSupported();
    return null; 
   
public PlugingetPlugin()

		notSupported();
		
		return( null );
	
public java.lang.ClassLoadergetPluginClassLoader()

		notSupported();
		
		return( null );
	
public org.gudy.azureus2.plugins.ui.config.PluginConfigUIFactorygetPluginConfigUIFactory()

		notSupported();
		
		return( null );
	
public java.lang.StringgetPluginDirectoryName()

		notSupported();
		
		return( null );
	
public java.lang.StringgetPluginID()

		notSupported();
		
		return( null );
	
public PluginManagergetPluginManager()

		notSupported();
		
		return( null );
	
public java.lang.StringgetPluginName()

		notSupported();
		
		return( null );
	
public java.util.PropertiesgetPluginProperties()

		return((Properties)_dispatcher.dispatch( new RPRequest( this, "getPluginProperties", null )).getResponse());
	
public java.lang.StringgetPluginVersion()

		notSupported();
		
		return( null );
	
public PluginConfiggetPluginconfig()

		RPPluginConfig	res = (RPPluginConfig)_dispatcher.dispatch( new RPRequest( this, "getPluginconfig", null )).getResponse();
		
		res._setRemote( _dispatcher );
			
		return( res );
	
public org.gudy.azureus2.plugins.sharing.ShareManagergetShareManager()

		notSupported();
		
		return( null );
	
public ShortCutsgetShortCuts()

		RPShortCuts	res = (RPShortCuts)_dispatcher.dispatch( new RPRequest( this, "getShortCuts", null )).getResponse();
		
		res._setRemote( _dispatcher );
			
		return( res );		
	
public org.gudy.azureus2.plugins.torrent.TorrentManagergetTorrentManager()

		RPTorrentManager	res = (RPTorrentManager)_dispatcher.dispatch( new RPRequest( this, "getTorrentManager", null )).getResponse();
		
		res._setRemote( _dispatcher );
			
		return( res );
	 
public org.gudy.azureus2.plugins.tracker.TrackergetTracker()

		RPTracker	res = (RPTracker)_dispatcher.dispatch( new RPRequest( this, "getTracker", null )).getResponse();
		
		res._setRemote( _dispatcher );
			
		return( res );	
	
public UIManagergetUIManager()

		notSupported();
		
		return( null );	 	
	 
public UpdateManagergetUpdateManager()

		notSupported();
		
		return( null );
	
public UtilitiesgetUtilities()

		notSupported();
		
		return( null );
	
public booleanisBuiltIn()

		notSupported();
		
		return( false );
	
public booleanisDisabled()

		notSupported();
		
		return( false );
	
public booleanisInitialisationThread()

		notSupported();
		
		return( false );
	
public booleanisMandatory()

		notSupported();
		
		return( false );
	
public booleanisOperational()

		notSupported();
		
		return( false );
	
public booleanisShared()

		notSupported();
		
		return( false );
	
public booleanisSigned()

		notSupported();
		
		return( false );
	
public booleanisUnloadable()

		notSupported();
		
		return( false );
	
public voidopenTorrentFile(java.lang.String fileName)

deprecated

		notSupported();
	
public voidopenTorrentURL(java.lang.String url)

deprecated

		notSupported();
	
public voidreload()

		notSupported();
	
public voidremoveConfigSection(org.gudy.azureus2.plugins.ui.config.ConfigSection tab)

		notSupported();
	
public voidremoveEventListener(PluginEventListener l)

		notSupported();
	
public voidremoveListener(PluginListener l)

		notSupported();
	
public voidsetDisabled(boolean disabled)

		notSupported();
	
public voiduninstall()

		notSupported();
	
public voidunload()

		notSupported();