public interface DBus extends DBusInterface
| Modifier and Type | Interface and Description |
|---|---|
static class |
DBus.NameAcquired
Signal sent to a connection when it aquires a name
|
static class |
DBus.NameLost
Signal sent to a connection when it loses a name
|
static class |
DBus.NameOwnerChanged
Signal sent when the owner of a name changes
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DBUS_NAME_FLAG_ALLOW_REPLACEMENT |
static int |
DBUS_NAME_FLAG_DO_NOT_QUEUE |
static int |
DBUS_NAME_FLAG_REPLACE_EXISTING |
static int |
DBUS_RELEASE_NAME_REPLY_NON_EXISTANT |
static int |
DBUS_RELEASE_NAME_REPLY_NOT_OWNER |
static int |
DBUS_RELEASE_NAME_REPLY_RELEASED |
static int |
DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER |
static int |
DBUS_REQUEST_NAME_REPLY_EXISTS |
static int |
DBUS_REQUEST_NAME_REPLY_IN_QUEUE |
static int |
DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER |
static int |
DBUS_START_REPLY_ALREADY_RUNNING |
static int |
DBUS_START_REPLY_SUCCESS |
| 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 busName)
|
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 |
GetNameOwner(String name)
Get the connection unique name that owns the given name.
|
String |
Hello()
Initial message to register ourselves on the Bus.
|
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.
|
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.
|
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. |
getObjectPath, isRemotestatic final int DBUS_NAME_FLAG_ALLOW_REPLACEMENT
static final int DBUS_NAME_FLAG_REPLACE_EXISTING
static final int DBUS_NAME_FLAG_DO_NOT_QUEUE
static final int DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER
static final int DBUS_REQUEST_NAME_REPLY_IN_QUEUE
static final int DBUS_REQUEST_NAME_REPLY_EXISTS
static final int DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER
static final int DBUS_RELEASE_NAME_REPLY_RELEASED
static final int DBUS_RELEASE_NAME_REPLY_NON_EXISTANT
static final int DBUS_RELEASE_NAME_REPLY_NOT_OWNER
static final int DBUS_START_REPLY_SUCCESS
static final int DBUS_START_REPLY_ALREADY_RUNNING
String Hello()
UInt32 RequestName(String name, UInt32 flags)
name - The name to request.flags - DBUS_NAME flags.UInt32 ReleaseName(String name)
name - The name to release.String[] ListQueuedOwners(String name)
name - The name to queryString[] ListNames()
String[] ListActivatableNames()
boolean NameHasOwner(String name)
name - The name to query.UInt32 StartServiceByName(String name, UInt32 flags)
name - The service name to start.flags - Unused.void UpdateActivationEnvironment(Map<String,String>[] environment)
environment - Environment to add or updateString GetNameOwner(String name)
name - The name to query.UInt32 GetConnectionUnixUser(String connection_name)
connection_name - The connection name.UInt32 GetConnectionUnixProcessID(String connection_name)
connection_name - The name of the connectionMap<String,Variant<?>> GetConnectionCredentials(String busName)
Keys 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.
busName - Unique or well-known bus name of the connection to query, such as :12.34 or com.example.teaByte[] GetAdtAuditSessionData(String busName)
org.freedesktop.DBus.GetConnectionCredentials"busName - Unique or well-known bus name of the connection to query, such as :12.34 or com.example.teaByte[] GetConnectionSELinuxSecurityContext(String busName)
org.freedesktop.DBus.GetConnectionCredentials”busName - Unique or well-known bus name of the connection to query, such as :12.34 or com.example.teavoid AddMatch(String matchrule) throws MatchRuleInvalid
matchrule - The Match rule as a string. Format Undocumented.MatchRuleInvalidvoid RemoveMatch(String matchrule) throws MatchRuleInvalid
matchrule - The Match rule as a string. Format Undocumented.MatchRuleInvalidString GetId()
org.freedesktop.DBus.Peer” and returned
by org.freedesktop.DBus.Peer.GetMachineId().Copyright © 2020. All rights reserved.