public class DBusDaemon.DBusServer extends Thread implements DBus, Introspectable, Peer
Thread.State, Thread.UncaughtExceptionHandlerDBus.NameAcquired, DBus.NameLost, DBus.NameOwnerChanged| Modifier and Type | Field and Description |
|---|---|
org.freedesktop.dbus.bin.DBusDaemon.Connstruct |
c |
Message |
m |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITYDBUS_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 and Description |
|---|
DBusServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
AddMatch(String matchrule)
Add a match rule.
|
Byte[] |
GetAdtAuditSessionData(String _busName)
|
Map<String,Variant<?>> |
GetConnectionCredentials(String _busName)
DBUS Specification:
Returns as many credentials as possible for the process connected to the server. |
Byte[] |
GetConnectionSELinuxSecurityContext(String a)
|
UInt32 |
GetConnectionUnixProcessID(String connection_name)
Returns the proccess ID associated with a connection.
|
UInt32 |
GetConnectionUnixUser(String connection_name)
Get the Unix UID that owns a connection name.
|
String |
GetId()
DBUS Specification:
Gets the unique ID of the bus. |
String |
GetMachineId() |
String |
GetNameOwner(String name)
Get the connection unique name that owns the given name.
|
String |
getObjectPath()
Returns the path of this object.
|
String |
Hello()
Initial message to register ourselves on the Bus.
|
String |
Introspect() |
boolean |
isRemote()
Returns true on remote objects.
|
String[] |
ListActivatableNames()
Returns a list of all names that can be activated on the bus.
|
String[] |
ListNames()
Lists all connected names on the Bus.
|
String[] |
ListQueuedOwners(String name)
List the connections currently queued for a name.
|
boolean |
NameHasOwner(String name)
Determine if a name has an owner.
|
void |
Ping() |
UInt32 |
ReleaseName(String name)
Release a name on the bus.
|
void |
RemoveMatch(String matchrule)
Remove a match rule.
|
UInt32 |
RequestName(String name,
UInt32 flags)
Request a name on the bus.
|
void |
run() |
UInt32 |
StartServiceByName(String name,
UInt32 flags)
Start a service.
|
void |
UpdateActivationEnvironment(Map<String,String>[] _environment)
DBUS Specification:
Normally, session bus activated services inherit the environment of the bus daemon. |
activeCount, checkAccess, clone, 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, yieldpublic org.freedesktop.dbus.bin.DBusDaemon.Connstruct c
public Message m
public boolean isRemote()
DBusInterfaceisRemote in interface DBusInterfacepublic String Hello()
DBuspublic String[] ListNames()
DBuspublic boolean NameHasOwner(String name)
DBusNameHasOwner in interface DBusname - The name to query.public String GetNameOwner(String name)
DBusGetNameOwner in interface DBusname - The name to query.public UInt32 GetConnectionUnixUser(String connection_name)
DBusGetConnectionUnixUser in interface DBusconnection_name - The connection name.public UInt32 StartServiceByName(String name, UInt32 flags)
DBusStartServiceByName in interface DBusname - The service name to start.flags - Unused.public UInt32 RequestName(String name, UInt32 flags)
DBusRequestName in interface DBusname - The name to request.flags - DBUS_NAME flags.public UInt32 ReleaseName(String name)
DBusReleaseName in interface DBusname - The name to release.public void AddMatch(String matchrule) throws MatchRuleInvalid
DBusAddMatch in interface DBusmatchrule - The Match rule as a string. Format Undocumented.MatchRuleInvalidpublic void RemoveMatch(String matchrule) throws MatchRuleInvalid
DBusRemoveMatch in interface DBusmatchrule - The Match rule as a string. Format Undocumented.MatchRuleInvalidpublic String[] ListQueuedOwners(String name)
DBusListQueuedOwners in interface DBusname - The name to querypublic UInt32 GetConnectionUnixProcessID(String connection_name)
DBusGetConnectionUnixProcessID in interface DBusconnection_name - The name of the connectionpublic Byte[] GetConnectionSELinuxSecurityContext(String a)
DBusorg.freedesktop.DBus.GetConnectionCredentials”GetConnectionSELinuxSecurityContext in interface DBusa - Unique or well-known bus name of the connection to query, such as :12.34 or com.example.teapublic String getObjectPath()
DBusInterfacegetObjectPath in interface DBusInterfacepublic String Introspect()
Introspect in interface Introspectablepublic String[] ListActivatableNames()
DBusListActivatableNames in interface DBuspublic Map<String,Variant<?>> GetConnectionCredentials(String _busName)
DBusKeys in the returned dictionary not containing "." are defined by this specification. Bus daemon implementors supporting credentials frameworks not mentioned in this document should either contribute patches to this specification, or use keys containing "." and starting with a reversed domain name.
GetConnectionCredentials in interface DBus_busName - Unique or well-known bus name of the connection to query, such as :12.34 or com.example.teapublic Byte[] GetAdtAuditSessionData(String _busName)
DBusorg.freedesktop.DBus.GetConnectionCredentials"GetAdtAuditSessionData in interface DBus_busName - Unique or well-known bus name of the connection to query, such as :12.34 or com.example.teapublic void UpdateActivationEnvironment(Map<String,String>[] _environment)
DBusUpdateActivationEnvironment in interface DBus_environment - Environment to add or updatepublic String GetId()
DBusorg.freedesktop.DBus.Peer” and returned
by org.freedesktop.DBus.Peer.GetMachineId().public String GetMachineId()
GetMachineId in interface PeerCopyright © 2020. All rights reserved.