java.lang.Object
java.lang.Thread
org.freedesktop.dbus.bin.DBusDaemon
- All Implemented Interfaces:
Closeable,AutoCloseable,Runnable
A replacement DBusDaemon
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclassclassclass(package private) static classNested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<DBusDaemon.ConnectionStruct, DBusDaemon.DBusDaemonReaderThread> private static final Stringprivate static final Stringprivate final DBusDaemon.DBusServerprivate static final String[]private final BlockingDeque<DBusDaemon.Pair<Message, WeakReference<DBusDaemon.ConnectionStruct>>> private static final org.slf4j.Loggerprivate final Map<String, DBusDaemon.ConnectionStruct> private final AtomicIntegerprivate final BlockingDeque<DBusDaemon.Pair<Message, WeakReference<DBusDaemon.ConnectionStruct>>> static final intprivate final AtomicBooleanprivate final DBusDaemon.DBusDaemonSenderThreadprivate final List<DBusDaemon.ConnectionStruct> private final AbstractTransportFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidvoidclose()private voidhandleMatchRules(Message _msg, DBusDaemon.ConnectionStruct _currentConnection) booleanprivate static voidlogMessage(String _logStr, Message _m, String _connUniqueId) static voidprivate voidvoidrun()static voidprivate voidsend(DBusDaemon.ConnectionStruct _connStruct, Message _msg) private voidsend(DBusDaemon.ConnectionStruct _connStruct, Message _msg, boolean _head) static voidsyntax()static voidversion()Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
QUEUE_POLL_WAIT
public static final int QUEUE_POLL_WAIT- See Also:
-
DBUS_BUSPATH
- See Also:
-
DBUS_BUSNAME
- See Also:
-
EMPTY_STRING_ARRAY
-
LOGGER
private static final org.slf4j.Logger LOGGER -
conns
-
names
-
outqueue
private final BlockingDeque<DBusDaemon.Pair<Message,WeakReference<DBusDaemon.ConnectionStruct>>> outqueue -
inqueue
private final BlockingDeque<DBusDaemon.Pair<Message,WeakReference<DBusDaemon.ConnectionStruct>>> inqueue -
sigrecips
-
dbusServer
-
sender
-
run
-
nextUnique
-
transport
-
-
Constructor Details
-
DBusDaemon
-
-
Method Details
-
send
-
send
-
run
public void run() -
handleMatchRules
-
logMessage
-
isRunning
public boolean isRunning() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
removeConnection
-
addSock
-
syntax
public static void syntax() -
version
public static void version() -
saveFile
- Throws:
IOException
-
main
- Throws:
Exception
-