Methods Summary |
---|
protected java.lang.Object | _fixupLocal()
Object res = object_registry_reverse.get( _object_id );
if ( res == null ){
throw new RPObjectNoLongerExistsException();
}
_setDelegate( res );
return( res );
|
public java.lang.Object | _getDelegate()
return( __delegate );
|
public java.lang.String | _getName()
String str = this.getClass().getName();
int dp = str.lastIndexOf('.");
if ( dp != -1 ){
str = str.substring(dp+1);
}
if ( str.startsWith("RP")){
str = str.substring(2);
}
return( str );
|
public long | _getOID()
return( _object_id.longValue());
|
public java.lang.Class | _getPluginClass()
if (plugin_class == null) {
plugin_class = RPUtils.getPluginAPIInterfaceForClass(this.__delegate.getClass());
if (plugin_class == null) {
/* Shouldn't happen */
throw new RuntimeException("no plugin class for " + RPUtils.describeObject(this.__delegate));
}
}
return plugin_class;
|
protected static org.gudy.azureus2.pluginsimpl.remote.RPObject | _lookupLocal(java.lang.Object key)
// **** Don't try using AEMOnitor for synchronisations here as this object is serialised
synchronized( object_registry ){
RPObject res = (RPObject)object_registry.get(key);
if ( res != null ){
res._setLocal();
}
return( res );
}
|
public static org.gudy.azureus2.pluginsimpl.remote.RPObject | _lookupLocal(long object_id)
synchronized( object_registry ){
Object res = object_registry_reverse.get( new Long(object_id ));
if ( res == null ){
throw new RPObjectNoLongerExistsException();
}
RPObject obj = (RPObject)object_registry.get( res );
if (obj == null){
throw new RPObjectNoLongerExistsException();
}
return( obj );
}
|
public RPReply | _process(RPRequest request)
throw( new RuntimeException( "you've got to implement this - " + request ));
|
public void | _refresh()
RPObject res = (RPObject)_dispatcher.dispatch( new RPRequest( this, "_refresh", null )).getResponse();
_setDelegate( res );
|
protected void | _setDelegate(java.lang.Object _delegate)
throw( new RuntimeException( "you've got to implement this - " + _delegate ));
|
public java.lang.Object | _setLocal()
throw( new RuntimeException( "you've got to implement this"));
|
public void | _setRemote(RPRequestDispatcher __dispatcher)
_dispatcher = __dispatcher;
|
protected RPRequestDispatcher | getDispatcher()
return( _dispatcher );
|
public void | notSupported()
throw( new RuntimeException( "RPObject:: method not supported"));
|
public void | notSupported(java.lang.Object o)
throw( new RuntimeException( "RPObject:: method not supported - " + o ));
|
public java.lang.String | toString()
return RPUtils.getName(this.getClass()) + "@" + Integer.toHexString(System.identityHashCode(this));
|