java.lang.Object
org.freedesktop.dbus.utils.AddressBuilder
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic String
Creates a machine identifier by using the MD5 sum of the hostname.static String
getDbusMachineId
(String _dbusMachineIdFile) Extracts the machine-id usually found on Linux in various system directories, or generate a fake id for non-Linux platforms.static BusAddress
getSessionConnection
(String _dbusMachineIdFile) Retrieves the connection address to connect to the DBus session-bus.
Will return TCP connection when no unix transport found and TCP is available.static BusAddress
Determine the address of the DBus system connection.
-
Methodendetails
-
getSystemConnection
Determine the address of the DBus system connection.- Gibt zurück:
- String
-
getSessionConnection
Retrieves the connection address to connect to the DBus session-bus.
Will return TCP connection when no unix transport found and TCP is available.- Parameter:
_dbusMachineIdFile
- alternative location of dbus machine id file, use null if not needed- Gibt zurück:
- address
- Löst aus:
AddressResolvingException
- when no suitable address can be found for any available transport
-
getDbusMachineId
Extracts the machine-id usually found on Linux in various system directories, or generate a fake id for non-Linux platforms.- Parameter:
_dbusMachineIdFile
- alternative location of dbus machine id file, null if not needed- Gibt zurück:
- machine-id string, never null
-
createMachineId
Creates a machine identifier by using the MD5 sum of the hostname. If hostname could not be determined, a random string will be used.- Gibt zurück:
- String
-