| Modifier and Type | Field and Description |
|---|---|
| private final BusAddress | |
| private Consumer | |
| private final AtomicBoolean | |
| private Consumer | |
| private DBusDaemon | |
| private static final Logger | |
| private TransportBuilder. | |
| private ClassLoader | |
| private ModuleLayer | |
| private CountDownLatch | |
| private String | |
| private String | |
| private PosixFilePermission[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public Consumer | |
| public Consumer | |
| public TransportBuilder. | |
| public synchronized boolean | |
| public void | setBindCallback(Consumer<AbstractTransport> _callback)
Callback which will be called by transport right after the server socket was bound. |
| public void | setConnectCallback(Consumer<AbstractTransport>
callback or null to disable _connectCallback)Callback which will be called by transport right before the socket is bound and connections will be accepted. |
| private synchronized void | |
| public void | setSaslAuthMode(TransportBuilder.
auth mode, null to use default _saslAuthModeUse this to override the default authentication mode which would
be used by the transport based on the |
| public void | setServiceLoaderClassLoader(ClassLoader
class loader _serviceLoaderClassLoader)ClassLoader to use for |
| public void | setServiceLoaderModuleLayer(ModuleLayer
module layer _serviceLoaderModuleLayer)Module Layer to use for |
| public void | |
| public void | |
| public void | setUnixSocketPermissions(PosixFilePermission...
permissions to set _permissions)The file permissions for the created unix socket. |
| public void | |
| public void | startInBackgroundAndWait(long
maximum wait time in milliseconds _maxWaitMillis)Starts the DBusDaemon in background. |
| public void | |
| public void | |
| private void |
| address | back to summary |
|---|---|
| private final BusAddress address | |
| bindCallback | back to summary |
|---|---|
| private Consumer<AbstractTransport> bindCallback | |
| closed | back to summary |
|---|---|
| private final AtomicBoolean closed | |
| connectCallback | back to summary |
|---|---|
| private Consumer<AbstractTransport> connectCallback | |
| daemon | back to summary |
|---|---|
| private DBusDaemon daemon | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| saslAuthMode | back to summary |
|---|---|
| private TransportBuilder. | |
| serviceLoaderClassLoader | back to summary |
|---|---|
| private ClassLoader serviceLoaderClassLoader | |
| serviceLoaderModuleLayer | back to summary |
|---|---|
| private ModuleLayer serviceLoaderModuleLayer | |
| startupLatch | back to summary |
|---|---|
| private CountDownLatch startupLatch | |
| unixSocketFileGroup | back to summary |
|---|---|
| private String unixSocketFileGroup | |
| unixSocketFileOwner | back to summary |
|---|---|
| private String unixSocketFileOwner | |
| unixSocketFilePermissions | back to summary |
|---|---|
| private PosixFilePermission[] unixSocketFilePermissions | |
| EmbeddedDBusDaemon | back to summary |
|---|---|
| public EmbeddedDBusDaemon(BusAddress _address) | |
| EmbeddedDBusDaemon | back to summary |
|---|---|
| public EmbeddedDBusDaemon(String _address) throws InvalidBusAddressException | |
| close | back to summary |
|---|---|
| public synchronized void close() throws IOException Implements java. Shutdown the running DBusDaemon instance.
| |
| getBindCallback | back to summary |
|---|---|
| public Consumer Configured bind callback.
| |
| getConnectCallback | back to summary |
|---|---|
| public Consumer Configured pre-connect callback.
| |
| getSaslAuthMode | back to summary |
|---|---|
| public TransportBuilder. The currently configured
| |
| isRunning | back to summary |
|---|---|
| public synchronized boolean isRunning() Whether the DBusDaemon is still running.
| |
| setBindCallback | back to summary |
|---|---|
| public void setBindCallback(Consumer<AbstractTransport> _callback) Callback which will be called by transport right after the server socket was bound. | |
| setConnectCallback | back to summary |
|---|---|
| public void setConnectCallback(Consumer<AbstractTransport> _connectCallback) Callback which will be called by transport right before the socket is bound and connections will be accepted.
| |
| setDaemonAndStart | back to summary |
|---|---|
| private synchronized void setDaemonAndStart(AbstractTransport _transport) | |
| setSaslAuthMode | back to summary |
|---|---|
| public void setSaslAuthMode(TransportBuilder. Use this to override the default authentication mode which would
be used by the transport based on the
| |
| setServiceLoaderClassLoader | back to summary |
|---|---|
| public void setServiceLoaderClassLoader(ClassLoader _serviceLoaderClassLoader) ClassLoader to use for
| |
| setServiceLoaderModuleLayer | back to summary |
|---|---|
| public void setServiceLoaderModuleLayer(ModuleLayer _serviceLoaderModuleLayer) Module Layer to use for
| |
| setUnixSocketGroup | back to summary |
|---|---|
| public void setUnixSocketGroup(String _group) The file group for the created unix socket.
| |
| setUnixSocketOwner | back to summary |
|---|---|
| public void setUnixSocketOwner(String _owner) The file owner for the created unix socket.
| |
| setUnixSocketPermissions | back to summary |
|---|---|
| public void setUnixSocketPermissions(PosixFilePermission... _permissions) The file permissions for the created unix socket.
| |
| startInBackground | back to summary |
|---|---|
| public void startInBackground() Start the DBusDaemon in background and returns immediately.
This method may return before the background thread is ready.
To ensure the the background thread is running on return use | |
| startInBackgroundAndWait | back to summary |
|---|---|
| public void startInBackgroundAndWait(long _maxWaitMillis) throws IllegalStateException Starts the DBusDaemon in background. Will wait up to the given period of milliseconds for the background thread to get ready.
| |
| startInBackgroundAndWait | back to summary |
|---|---|
| public void startInBackgroundAndWait() throws IllegalStateException Starts the DBusDaemon in background.
Waits until the daemon is ready before return indefinitely.
If given wait time exceeded, a
| |
| startInForeground | back to summary |
|---|---|
| public void startInForeground() Run the DBusDaemon in foreground. This is a blocking operation. | |
| startListening | back to summary |
|---|---|
| private void startListening() throws IOException, DBusException Start listening for incoming connections.
Will throw
| |