keycloak-federation
|
クラス | |
class | _sighandler |
class | PeerSet |
公開メンバ関数 | |
void | releaseBusName (String busname) throws DBusException |
void | requestBusName (String busname) throws DBusException |
String | getUniqueName () |
String [] | getNames () |
DBusInterface | getPeerRemoteObject (String busname, String objectpath) throws DBusException |
DBusInterface | getRemoteObject (String busname, String objectpath) throws DBusException |
void | disconnect () |
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 | finalize () |
DBusExecutionException | getError () |
DBusAsyncReply | callMethodAsync (DBusInterface object, String m, Object... parameters) |
BusAddress | getAddress () throws ParseException |
静的公開メンバ関数 | |
static DBusConnection | getConnection (String address) throws DBusException |
static DBusConnection | getConnection (int bustype) throws DBusException |
static DBusCallInfo | getCallInfo () |
静的公開変数類 | |
static final int | SYSTEM = 0 |
static final int | SESSION = 1 |
static final String | DEFAULT_SYSTEM_BUS_ADDRESS = "unix:path=/var/run/dbus/system_bus_socket" |
static final boolean | EXCEPTION_DEBUG |
限定公開メンバ関数 | |
void | listen () |
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 |
関数 | |
DBusInterface | dynamicProxy (String source, String path) throws DBusException |
DBusInterface | getExportedObject (String source, String path) throws DBusException |
public< I extends DBusInterface > I | getPeerRemoteObject (String busname, String objectpath, Class< I > type) throws DBusException |
public< I extends DBusInterface > I | getPeerRemoteObject (String busname, String objectpath, Class< I > type, boolean autostart) throws DBusException |
public< I extends DBusInterface > I | getRemoteObject (String busname, String objectpath, Class< I > type) throws DBusException |
public< I extends DBusInterface > I | getRemoteObject (String busname, String objectpath, Class< I > type, boolean autostart) throws DBusException |
public< T extends DBusSignal > void | removeSigHandler (Class< T > type, String source, DBusSigHandler< T > handler) throws DBusException |
public< T extends DBusSignal > void | removeSigHandler (Class< T > type, String source, DBusInterface object, DBusSigHandler< T > handler) throws DBusException |
protected< T extends DBusSignal > void | removeSigHandler (DBusMatchRule rule, DBusSigHandler< T > handler) throws DBusException |
public< T extends DBusSignal > void | addSigHandler (Class< T > type, String source, DBusSigHandler< T > handler) throws DBusException |
public< T extends DBusSignal > void | addSigHandler (Class< T > type, String source, DBusInterface object, DBusSigHandler< T > handler) throws DBusException |
protected< T extends DBusSignal > void | addSigHandler (DBusMatchRule rule, DBusSigHandler< T > handler) throws DBusException |
String | getExportedObject (DBusInterface i) 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 |
非公開メンバ関数 | |
DBusConnection (String address) throws DBusException | |
非公開変数類 | |
List< String > | busnames |
int | _refcount = 0 |
Object | _reflock = new Object() |
DBus | _dbus |
静的非公開変数類 | |
static final Map< Object, DBusConnection > | conn = new HashMap<Object, DBusConnection>() |
Handles a connection to DBus.
This is a Singleton class, only 1 connection to the SYSTEM or SESSION busses can be made. Repeated calls to getConnection will return the same reference.
Signal Handlers and method calls from remote objects are run in their own threads, you MUST handle the concurrency issues.
|
inlineprivate |
|
inlinestaticpackageinherited |
|
inlineinherited |
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, |
|
inlinepackageinherited |
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. |
|
inlinepackageinherited |
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. |
|
inlinepackage |
Add a Signal Handler. Adds a signal handler to call when a signal is received which matches the specified type, name and source.
type | The signal to watch for. |
source | The process which will send the signal. This MUST be a unique bus name and not a well known name. |
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, source and object.
type | The signal to watch for. |
source | The process which will send the signal. This MUST be a unique bus name and not a well known name. |
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. |
|
inlinepackage |
|
inlinepackageinherited |
|
inlineinherited |
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. |
|
inlinepackageinherited |
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. |
|
inlineinherited |
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. This only disconnects when the last reference to the bus has disconnect called on it or has been destroyed.
|
inlinepackage |
|
inlineinherited |
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, |
|
inlineinherited |
|
inlineinherited |
Returns the address this connection is connected to.
|
inlinestaticinherited |
Returns a structure with information on the current method call.
|
inlinestatic |
Connect to the BUS. If a connection already exists to the specified Bus, a reference to it is returned.
address | The address of the bus to connect to |
DBusException | If there is a problem connecting to the Bus. |
|
inlinestatic |
Connect to the BUS. If a connection already exists to the specified Bus, a reference to it is returned.
bustype | The Bus to connect to. |
DBusException | If there is a problem connecting to the Bus. |
|
inlineinherited |
Return any DBus error which has been received.
|
inlinepackageinherited |
|
inlinepackage |
|
inline |
Returns all the names owned by this connection.
|
inlinepackage |
|
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.
This method will use bus introspection to determine the interfaces on a remote object and so may block and may fail. The resulting proxy object will, however, be castable to any interface it implements. It will also autostart the process if applicable. Also note that the resulting proxy may fail to execute the correct method with overloaded methods and that complex types may fail in interesting ways. Basically, if something odd happens, try specifying the interface explicitly.
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.$ |
ClassCastException | If type is not a sub-type of DBusInterface |
DBusException | If busname or objectpath are incorrectly formatted. |
|
inlinepackage |
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. |
autostart | Disable/Enable auto-starting of services in response to calls on this object. Default is enabled; when calling a method with auto-start enabled, if the destination is a well-known name and is not owned the bus will attempt to start a process to take the name. When disabled an error is returned immediately. |
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. |
|
inline |
Return a reference to a remote object. This method will always refer to the well known name (if given) rather than resolving it to a unique bus name. In particular this means that if a process providing the well known name disappears and is taken over by another process proxy objects gained by this method will make calls on the new proccess.
This method will use bus introspection to determine the interfaces on a remote object and so may block and may fail. The resulting proxy object will, however, be castable to any interface it implements. It will also autostart the process if applicable. Also note that the resulting proxy may fail to execute the correct method with overloaded methods and that complex types may fail in interesting ways. Basically, if something odd happens, try specifying the interface explicitly.
busname | The bus name to connect to. Usually a well known bus name 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. |
ClassCastException | If type is not a sub-type of DBusInterface |
DBusException | If busname or objectpath are incorrectly formatted. |
|
inlinepackage |
Return a reference to a remote object. This method will always refer to the well known name (if given) rather than resolving it to a unique bus name. In particular this means that if a process providing the well known name disappears and is taken over by another process proxy objects gained by this method will make calls on the new proccess.
busname | The bus name to connect to. Usually a well known bus name 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. |
|
inlinepackage |
Return a reference to a remote object. This method will always refer to the well known name (if given) rather than resolving it to a unique bus name. In particular this means that if a process providing the well known name disappears and is taken over by another process proxy objects gained by this method will make calls on the new proccess.
busname | The bus name to connect to. Usually a well known bus name 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. |
autostart | Disable/Enable auto-starting of services in response to calls on this object. Default is enabled; when calling a method with auto-start enabled, if the destination is a well-known name and is not owned the bus will attempt to start a process to take the name. When disabled an error is returned immediately. |
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. |
|
inline |
Returns the unique name of this connection.
|
inlineprotectedinherited |
|
inlinepackageinherited |
|
inline |
Release a bus name. Releases the name so that other people can use it
busname | The name to release. MUST be in dot-notation like "org.freedesktop.local" |
DBusException | If the busname is incorrectly formatted. |
|
inlineinherited |
Remove a fallback
objectprefix | The prefix to remove the fallback for. |
|
inlinepackageinherited |
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. |
|
inlinepackageinherited |
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. |
|
inlinepackage |
Remove a Signal Handler. Stops listening for this signal.
type | The signal to watch for. |
source | The source of the signal. |
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. |
source | The source of the signal. |
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. |
|
inlinepackage |
|
inline |
Request a bus name. Request the well known name that this should respond to on the Bus.
busname | The name to respond to. MUST be in dot-notation like "org.freedesktop.local" |
DBusException | If the register name failed, or our name already exists on the bus. or if busname is incorrectly formatted. |
|
inlineprotectedinherited |
|
inlineinherited |
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. |
|
inlineinherited |
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.
|
inlineinherited |
Stop Exporting an object
objectpath | The objectpath to stop exporting. |
|
private |
|
private |
|
private |
|
protectedinherited |
|
protectedinherited |
|
staticpackageinherited |
|
private |
|
staticprivate |
|
protectedinherited |
|
staticpackageinherited |
|
static |
|
staticpackageinherited |
|
staticinherited |
|
protectedinherited |
|
protectedinherited |
|
staticpackageinherited |
|
protectedinherited |
|
protectedinherited |
|
staticpackageinherited |
|
staticpackageinherited |
|
staticpackageinherited |
|
packageinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
packageinherited |
|
protectedinherited |
|
protectedinherited |
|
static |
Session Bus
|
static |
System Bus
|
protectedinherited |
|
staticpackageinherited |
|
staticprotectedinherited |
Timeout in us on checking the BUS for incoming messages and sending outgoing messages
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |