Signal Handlers and method calls from remote objects are run in their own threads, you MUST handle the concurrency issues.
| Modifier and Type | Field and Description |
|---|---|
| private static final Class | |
| private final Logger | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | DirectConnection(ConnectionConfig _conCfg, TransportConfig _transportCfg, ReceivingServiceConfig _rsCfg)
|
| Modifier and Type | Method and Description |
|---|---|
| protected AutoCloseable | addGenericSigHandler(DBusMatchRule
rule to add _rule, DBusSigHandler<DBusSignal> handler to use _handler)Implements abstract org. Adds a |
| protected <T extends DBusSignal> AutoCloseable | addSigHandler(DBusMatchRule
rule to add _rule, DBusSigHandler<T> handler to use _handler)Implements abstract org. Add a signal handler with the given |
| pack-priv <T extends DBusInterface> T | |
| pack-priv <T extends DBusInterface> T | |
| public <T extends DBusInterface> T | getExportedObject(String
source _source, String path _path, Class<T> class of remote object _type)Implements abstract org. Retrieves an remote object using source and path. |
| public DBusInterface | getExportedObject(String
source _source, String path _path)Implements abstract org. Retrieves an remote object using source and path. |
| public String | getMachineId()
Implements abstract org. The generated UUID of this machine. |
| public DBusInterface | Returns: A reference to a remote object.The path on which the process is exporting the object. _objectPath)Return a reference to a remote object. |
| public < class which extends DBusInterface T extends DBusInterface> T | Returns: A reference to a remote object.The path on which the process is exporting the object. _objectPath, Class<T> 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. _type)Return a reference to a remote object. |
| public void | listen()
Overrides org. Use this method when running on server side. |
| protected void | removeGenericSigHandler(DBusMatchRule
rule to remove _rule, DBusSigHandler<DBusSignal> handler to remove _handler)Implements abstract org. Remove a generic signal handler with the given |
| protected <T extends DBusSignal> void | removeSigHandler(DBusMatchRule
rule to remove _rule, DBusSigHandler<T> handler to remove _handler)Implements abstract org. Remove a match rule with the given |
| EMPTY_CLASS_ARRAY | back to summary |
|---|---|
| private static final Class<T>[] EMPTY_CLASS_ARRAY | |
| logger | back to summary |
|---|---|
| private final Logger logger Hides org. | |
| machineId | back to summary |
|---|---|
| private final String machineId | |
| DirectConnection | back to summary |
|---|---|
| pack-priv DirectConnection(ConnectionConfig _conCfg, TransportConfig _transportCfg, ReceivingServiceConfig _rsCfg) throws DBusException | |
| addGenericSigHandler | back to summary |
|---|---|
| protected AutoCloseable addGenericSigHandler(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) throws DBusException Implements abstract org. Doc from org. Adds a
| |
| addSigHandler | back to summary |
|---|---|
| protected <T extends DBusSignal> AutoCloseable addSigHandler(DBusMatchRule _rule, DBusSigHandler<T> _handler) throws DBusException Implements abstract org. Doc from org. Add a signal handler with the given
| |
| dynamicProxy | back to summary |
|---|---|
pack-priv <T extends DBusInterface> T dynamicProxy(String _path, Class<T> _type) throws DBusException
| |
| getExportedObject | back to summary |
|---|---|
pack-priv <T extends DBusInterface> T getExportedObject(String _path, Class<T> _type) throws DBusException
| |
| getExportedObject | back to summary |
|---|---|
| public <T extends DBusInterface> T getExportedObject(String _source, String _path, Class<T> _type) throws DBusException Implements abstract org. Doc from org. Retrieves an remote object using source and path. Will use the given type as object class.
| |
| getExportedObject | back to summary |
|---|---|
| public DBusInterface getExportedObject(String _source, String _path) throws DBusException Implements abstract org. Doc from org. Retrieves an remote object using source and path. Will try to find suitable exported DBusInterface automatically.
| |
| getMachineId | back to summary |
|---|---|
| public String getMachineId() Implements abstract org. Doc from org. The generated UUID of this machine. | |
| getRemoteObject | back to summary |
|---|---|
| public DBusInterface getRemoteObject(String _objectPath) throws DBusException 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.
| |
| getRemoteObject | back to summary |
|---|---|
| public <T extends DBusInterface> T getRemoteObject(String _objectPath, Class<T> _type) throws DBusException 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.
| |
| listen | back to summary |
|---|---|
| public void listen() throws IOException Overrides org. Use this method when running on server side. Call will block.
| |
| removeGenericSigHandler | back to summary |
|---|---|
| protected void removeGenericSigHandler(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) throws DBusException Implements abstract org. Doc from org. Remove a generic signal handler with the given
| |
| removeSigHandler | back to summary |
|---|---|
| protected <T extends DBusSignal> void removeSigHandler(DBusMatchRule _rule, DBusSigHandler<T> _handler) throws DBusException Implements abstract org. Doc from org. Remove a match rule with the given
| |