Package org.freedesktop.dbus.bin
Class DBusDaemon
- java.lang.Object
-
- java.lang.Thread
-
- org.freedesktop.dbus.bin.DBusDaemon
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Runnable
public class DBusDaemon extends Thread implements Closeable
A replacement DBusDaemon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDBusDaemon.DBusServerclassDBusDaemon.ReaderclassDBusDaemon.Sender-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static intQUEUE_POLL_WAIT-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description DBusDaemon()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSock(Socket s)voidclose()booleanisRunning()static voidmain(String[] args)voidrun()static voidsaveFile(String data, String file)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 Detail
-
QUEUE_POLL_WAIT
public static final int QUEUE_POLL_WAIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
addSock
public void addSock(Socket s) throws IOException
- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
isRunning
public boolean isRunning()
-
syntax
public static void syntax()
-
version
public static void version()
-
saveFile
public static void saveFile(String data, String file) throws IOException
- Throws:
IOException
-
-