keycloak-federation
|
クラス | |
class | _globalhandler |
class | _sender |
class | _thread |
class | _workerthread |
class | FallbackContainer |
公開メンバ関数 | |
void | changeThreadCount (byte newcount) |
void | setWeakReferences (boolean weakreferences) |
void | exportObject (String objectpath, DBusInterface object) throws DBusException |
void | addFallback (String objectprefix, DBusInterface object) throws DBusException |
void | removeFallback (String objectprefix) |
void | unExportObject (String objectpath) |
void | sendSignal (DBusSignal signal) |
void | disconnect () |
void | finalize () |
DBusExecutionException | getError () |
DBusAsyncReply | callMethodAsync (DBusInterface object, String m, Object... parameters) |
BusAddress | getAddress () throws ParseException |
静的公開メンバ関数 | |
static DBusCallInfo | getCallInfo () |
静的公開変数類 | |
static final boolean | EXCEPTION_DEBUG |
限定公開メンバ関数 | |
AbstractConnection (String address) throws DBusException | |
void | listen () |
abstract< T extends DBusSignal > void | removeSigHandler (DBusMatchRule rule, DBusSigHandler< T > handler) throws DBusException |
abstract< T extends DBusSignal > void | addSigHandler (DBusMatchRule rule, DBusSigHandler< T > handler) throws DBusException |
void | sendMessage (Message m) |
限定公開変数類 | |
Map< String, ExportedObject > | exportedObjects |
Map< DBusInterface, RemoteObject > | importedObjects |
Map< SignalTuple, Vector< DBusSigHandler<? extends DBusSignal > > > | handledSignals |
EfficientMap | pendingCalls |
Map< MethodCall, CallbackHandler<? extends Object > > | pendingCallbacks |
Map< MethodCall, DBusAsyncReply<? extends Object > > | pendingCallbackReplys |
LinkedList< Runnable > | runnables |
LinkedList< _workerthread > | workers |
FallbackContainer | fallbackcontainer |
boolean | _run |
_thread | thread |
_sender | sender |
Transport | transport |
String | addr |
boolean | weakreferences = false |
boolean | connected = false |
静的限定公開変数類 | |
static final int | TIMEOUT = 100000 |
関数 | |
String | getExportedObject (DBusInterface i) throws DBusException |
abstract DBusInterface | getExportedObject (String source, String path) throws DBusException |
void | queueOutgoing (Message m) |
public< T extends DBusSignal > void | removeSigHandler (Class< T > type, DBusSigHandler< T > handler) throws DBusException |
public< T extends DBusSignal > void | removeSigHandler (Class< T > type, DBusInterface object, DBusSigHandler< T > handler) throws DBusException |
public< T extends DBusSignal > void | addSigHandler (Class< T > type, DBusSigHandler< T > handler) throws DBusException |
public< T extends DBusSignal > void | addSigHandler (Class< T > type, DBusInterface object, DBusSigHandler< T > handler) throws DBusException |
protected< T extends DBusSignal > void | addSigHandlerWithoutMatch (Class<? extends DBusSignal > signal, DBusSigHandler< T > handler) throws DBusException |
public< A > void | callWithCallback (DBusInterface object, String m, CallbackHandler< A > callback, Object... parameters) |
静的関数 | |
[static initializer] | |
変数 | |
EfficientQueue | outgoing |
LinkedList< Error > | pendingErrors |
静的変数 | |
static final String | BUSNAME_REGEX = "^[-_a-zA-Z][-_a-zA-Z0-9]*(\\.[-_a-zA-Z][-_a-zA-Z0-9]*)*$" |
static final String | CONNID_REGEX = "^:[0-9]*\\.[0-9]*$" |
static final String | OBJECT_REGEX = "^/([-_a-zA-Z0-9]+(/[-_a-zA-Z0-9]+)*)?$" |
static final byte | THREADCOUNT = 4 |
static final int | MAX_ARRAY_LENGTH = 67108864 |
static final int | MAX_NAME_LENGTH = 255 |
static final Pattern | dollar_pattern = Pattern.compile("[$]") |
static final boolean | FLOAT_SUPPORT |
非公開メンバ関数 | |
void | addRunnable (Runnable r) |
void | handleMessage (final MethodCall m) throws DBusException |
void | handleMessage (final DBusSignal s) |
void | handleMessage (final Error err) |
void | handleMessage (final MethodReturn mr) |
Message | readIncoming () throws DBusException |
非公開変数類 | |
ObjectTree | objectTree |
_globalhandler | _globalhandlerreference |
静的非公開変数類 | |
static final int | PENDING_MAP_INITIAL_SIZE = 10 |
static final Map< Thread, DBusCallInfo > | infomap = new HashMap<Thread, DBusCallInfo>() |
Handles a connection to DBus.
|
inlineprotected |
|
inlinestaticpackage |
|
inline |
Export an object as a fallback object. This object will have it's methods invoked for all paths starting with this object path.
objectprefix | The path below which the fallback handles calls. MUST be in slash-notation, like "/org/freedesktop/Local", |
object | The object to export. |
DBusException | If the objectpath is incorrectly formatted, |
|
inlineprivate |
|
inlinepackage |
Add a Signal Handler. Adds a signal handler to call when a signal is received which matches the specified type and name.
type | The signal to watch for. |
handler | The handler to call when a signal is received. |
DBusException | If listening for the signal on the bus failed. |
ClassCastException | If type is not a sub-type of DBusSignal. |
|
inlinepackage |
Add a Signal Handler. Adds a signal handler to call when a signal is received which matches the specified type, name and object.
type | The signal to watch for. |
object | The object from which the signal will be emitted |
handler | The handler to call when a signal is received. |
DBusException | If listening for the signal on the bus failed. |
ClassCastException | If type is not a sub-type of DBusSignal. |
|
abstractprotected |
|
inlinepackage |
|
inline |
Call a method asynchronously and get a handle with which to get the reply.
object | The remote object on which to call the method. |
m | The name of the method on the interface to call. |
parameters | The parameters to call the method with. |
|
inlinepackage |
Call a method asynchronously and set a callback. This handler will be called in a separate thread.
object | The remote object on which to call the method. |
m | The name of the method on the interface to call. |
callback | The callback handler. |
parameters | The parameters to call the method with. |
|
inline |
Change the number of worker threads to receive method calls and handle signals. Default is 4 threads
newcount | The new number of worker Threads to use. |
|
inline |
Disconnect from the Bus.
|
inline |
Export an object so that its methods can be called on DBus.
objectpath | The path to the object we are exposing. MUST be in slash-notation, like "/org/freedesktop/Local", and SHOULD end with a capitalised term. Only one object may be exposed on each path at any one time, but an object may be exposed on several paths at once. |
object | The object to export. |
DBusException | If the objectpath is already exporting an object. or if objectpath is incorrectly formatted, |
|
inline |
|
inline |
Returns the address this connection is connected to.
|
inlinestatic |
Returns a structure with information on the current method call.
|
inline |
Return any DBus error which has been received.
|
inlinepackage |
|
abstractpackage |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprotected |
|
inlinepackage |
|
inlineprivate |
|
inline |
Remove a fallback
objectprefix | The prefix to remove the fallback for. |
|
inlinepackage |
Remove a Signal Handler. Stops listening for this signal.
type | The signal to watch for. |
DBusException | If listening for the signal on the bus failed. |
ClassCastException | If type is not a sub-type of DBusSignal. |
|
inlinepackage |
Remove a Signal Handler. Stops listening for this signal.
type | The signal to watch for. |
object | The object emitting the signal. |
DBusException | If listening for the signal on the bus failed. |
ClassCastException | If type is not a sub-type of DBusSignal. |
|
abstractprotected |
|
inlineprotected |
|
inline |
Return a reference to a remote object. This method will resolve the well known name (if given) to a unique bus name when you call it. This means that if a well known name is released by one process and acquired by another calls to objects gained from this method will continue to operate on the original process.
busname | The bus name to connect to. Usually a well known bus name in dot-notation (such as "org.freedesktop.local") or may be a DBus address such as ":1-16". |
objectpath | The path on which the process is exporting the object.$ |
type | The interface they are exporting it on. This type must have the same full class name and exposed method signatures as the interface the remote object is exporting. |
ClassCastException | If type is not a sub-type of DBusInterface |
DBusException | If busname or objectpath are incorrectly formatted or type is not in a package. Send a signal. |
signal | The signal to send. |
|
inline |
If set to true the bus will not hold a strong reference to exported objects. If they go out of scope they will automatically be unexported from the bus. The default is to hold a strong reference, which means objects must be explicitly unexported before they will be garbage collected.
|
inline |
Stop Exporting an object
objectpath | The objectpath to stop exporting. |
|
private |
|
protected |
|
protected |
|
staticpackage |
|
protected |
|
staticpackage |
|
staticpackage |
|
static |
|
protected |
|
protected |
|
staticpackage |
|
protected |
|
protected |
|
staticprivate |
|
staticpackage |
|
staticpackage |
|
staticpackage |
|
private |
|
package |
|
staticprivate |
Initial size of the pending calls map
|
protected |
|
protected |
|
protected |
|
package |
|
protected |
|
protected |
|
protected |
|
staticpackage |
|
staticprotected |
Timeout in us on checking the BUS for incoming messages and sending outgoing messages
|
protected |
|
protected |
|
protected |