org.freedesktop.dbus.bin
Class DBusDaemon.DBusServer

java.lang.Object
  extended by java.lang.Thread
      extended by org.freedesktop.dbus.bin.DBusDaemon.DBusServer
All Implemented Interfaces:
java.lang.Runnable, DBus, DBusInterface, DBus.Introspectable, DBus.Peer
Enclosing class:
DBusDaemon

public class DBusDaemon.DBusServer
extends java.lang.Thread
implements DBus, DBus.Introspectable, DBus.Peer


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Nested classes/interfaces inherited from interface org.freedesktop.DBus
DBus.Binding, DBus.Deprecated, DBus.Description, DBus.Error, DBus.GLib, DBus.Introspectable, DBus.Local, DBus.Method, DBus.NameAcquired, DBus.NameLost, DBus.NameOwnerChanged, DBus.Peer, DBus.Properties
 
Field Summary
 org.freedesktop.dbus.bin.DBusDaemon.Connstruct c
           
 Message m
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface org.freedesktop.DBus
DBUS_NAME_FLAG_ALLOW_REPLACEMENT, DBUS_NAME_FLAG_DO_NOT_QUEUE, DBUS_NAME_FLAG_REPLACE_EXISTING, DBUS_RELEASE_NAME_REPLY_NON_EXISTANT, DBUS_RELEASE_NAME_REPLY_NOT_OWNER, DBUS_RELEASE_NAME_REPLY_RELEASED, DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER, DBUS_REQUEST_NAME_REPLY_EXISTS, DBUS_REQUEST_NAME_REPLY_IN_QUEUE, DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER, DBUS_START_REPLY_ALREADY_RUNNING, DBUS_START_REPLY_SUCCESS
 
Constructor Summary
DBusDaemon.DBusServer()
           
 
Method Summary
 void AddMatch(java.lang.String matchrule)
          Add a match rule.
 java.lang.Byte[] GetConnectionSELinuxSecurityContext(java.lang.String a)
          Does something undocumented.
 UInt32 GetConnectionUnixProcessID(java.lang.String connection_name)
          Returns the proccess ID associated with a connection.
 UInt32 GetConnectionUnixUser(java.lang.String connection_name)
          Get the Unix UID that owns a connection name.
 java.lang.String GetNameOwner(java.lang.String name)
          Get the connection unique name that owns the given name.
 java.lang.String Hello()
          Initial message to register ourselves on the Bus.
 java.lang.String Introspect()
           
 boolean isRemote()
          Returns true on remote objects.
 java.lang.String[] ListNames()
          Lists all connected names on the Bus.
 java.lang.String[] ListQueuedOwners(java.lang.String name)
          List the connections currently queued for a name.
 boolean NameHasOwner(java.lang.String name)
          Determine if a name has an owner.
 void Ping()
           
 UInt32 ReleaseName(java.lang.String name)
          Release a name on the bus.
 void ReloadConfig()
          Does something undocumented.
 void RemoveMatch(java.lang.String matchrule)
          Remove a match rule.
 UInt32 RequestName(java.lang.String name, UInt32 flags)
          Request a name on the bus.
 void run()
           
 UInt32 StartServiceByName(java.lang.String name, UInt32 flags)
          Start a service.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

c

public org.freedesktop.dbus.bin.DBusDaemon.Connstruct c

m

public Message m
Constructor Detail

DBusDaemon.DBusServer

public DBusDaemon.DBusServer()
Method Detail

isRemote

public boolean isRemote()
Description copied from interface: DBusInterface
Returns true on remote objects. Local objects implementing this interface MUST return false.

Specified by:
isRemote in interface DBusInterface

Hello

public java.lang.String Hello()
Description copied from interface: DBus
Initial message to register ourselves on the Bus.

Specified by:
Hello in interface DBus
Returns:
The unique name of this connection to the Bus.

ListNames

public java.lang.String[] ListNames()
Description copied from interface: DBus
Lists all connected names on the Bus.

Specified by:
ListNames in interface DBus
Returns:
An array of all connected names.

NameHasOwner

public boolean NameHasOwner(java.lang.String name)
Description copied from interface: DBus
Determine if a name has an owner.

Specified by:
NameHasOwner in interface DBus
Parameters:
name - The name to query.
Returns:
true if the name has an owner.

GetNameOwner

public java.lang.String GetNameOwner(java.lang.String name)
Description copied from interface: DBus
Get the connection unique name that owns the given name.

Specified by:
GetNameOwner in interface DBus
Parameters:
name - The name to query.
Returns:
The connection which owns the name.

GetConnectionUnixUser

public UInt32 GetConnectionUnixUser(java.lang.String connection_name)
Description copied from interface: DBus
Get the Unix UID that owns a connection name.

Specified by:
GetConnectionUnixUser in interface DBus
Parameters:
connection_name - The connection name.
Returns:
The Unix UID that owns it.

StartServiceByName

public UInt32 StartServiceByName(java.lang.String name,
                                 UInt32 flags)
Description copied from interface: DBus
Start a service. If the given service is not provided by any application, it will be started according to the .service file for that service.

Specified by:
StartServiceByName in interface DBus
Parameters:
name - The service name to start.
flags - Unused.
Returns:
DBUS_START_REPLY constants.

RequestName

public UInt32 RequestName(java.lang.String name,
                          UInt32 flags)
Description copied from interface: DBus
Request a name on the bus.

Specified by:
RequestName in interface DBus
Parameters:
name - The name to request.
flags - DBUS_NAME flags.
Returns:
DBUS_REQUEST_NAME_REPLY constants.

ReleaseName

public UInt32 ReleaseName(java.lang.String name)
Description copied from interface: DBus
Release a name on the bus.

Specified by:
ReleaseName in interface DBus
Parameters:
name - The name to release.
Returns:
DBUS_RELEASE_NAME_REPLY constants.

AddMatch

public void AddMatch(java.lang.String matchrule)
              throws DBus.Error.MatchRuleInvalid
Description copied from interface: DBus
Add a match rule. Will cause you to receive messages that aren't directed to you which match this rule.

Specified by:
AddMatch in interface DBus
Parameters:
matchrule - The Match rule as a string. Format Undocumented.
Throws:
DBus.Error.MatchRuleInvalid

RemoveMatch

public void RemoveMatch(java.lang.String matchrule)
                 throws DBus.Error.MatchRuleInvalid
Description copied from interface: DBus
Remove a match rule. Will cause you to stop receiving messages that aren't directed to you which match this rule.

Specified by:
RemoveMatch in interface DBus
Parameters:
matchrule - The Match rule as a string. Format Undocumented.
Throws:
DBus.Error.MatchRuleInvalid

ListQueuedOwners

public java.lang.String[] ListQueuedOwners(java.lang.String name)
Description copied from interface: DBus
List the connections currently queued for a name.

Specified by:
ListQueuedOwners in interface DBus
Parameters:
name - The name to query
Returns:
A list of unique connection IDs.

GetConnectionUnixProcessID

public UInt32 GetConnectionUnixProcessID(java.lang.String connection_name)
Description copied from interface: DBus
Returns the proccess ID associated with a connection.

Specified by:
GetConnectionUnixProcessID in interface DBus
Parameters:
connection_name - The name of the connection
Returns:
The PID of the connection.

GetConnectionSELinuxSecurityContext

public java.lang.Byte[] GetConnectionSELinuxSecurityContext(java.lang.String a)
Description copied from interface: DBus
Does something undocumented.

Specified by:
GetConnectionSELinuxSecurityContext in interface DBus

ReloadConfig

public void ReloadConfig()
Description copied from interface: DBus
Does something undocumented.

Specified by:
ReloadConfig in interface DBus

Introspect

public java.lang.String Introspect()
Specified by:
Introspect in interface DBus.Introspectable
Returns:
The XML introspection data for this object

Ping

public void Ping()
Specified by:
Ping in interface DBus.Peer

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread