| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| private static File | Returns: File with machine-idalternative location of dbus machine id file _dbusMachineIdFile)Tries to find the DBus machine-id file in different locations. |
| public static String | Returns: machine-id string, never nullalternative location of dbus machine id file, null if not needed _dbusMachineIdFile)Extracts the machine-id usually found on Linux in various system directories, or generate a fake id for non-Linux platforms. |
| private static String | |
| public static BusAddress | Returns: addressalternative location of dbus machine id file, use null if not needed _dbusMachineIdFile)Retrieves the connection address to connect to the DBus session-bus. |
| public static BusAddress |
| AddressBuilder | back to summary |
|---|---|
| private AddressBuilder() | |
| createMachineId | back to summary |
|---|---|
| public static String 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.
| |
| determineMachineIdFile | back to summary |
|---|---|
| private static File determineMachineIdFile(String _dbusMachineIdFile) Tries to find the DBus machine-id file in different locations. | |
| getDbusMachineId | back to summary |
|---|---|
| public 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. | |
| getFakeDbusMachineId | back to summary |
|---|---|
| private static String getFakeDbusMachineId() Generates a fake machine-id when DBus is running on Windows.
| |
| getSessionConnection | back to summary |
|---|---|
| public static BusAddress getSessionConnection(String _dbusMachineIdFile) Retrieves the connection address to connect to the DBus session-bus.
| |
| getSystemConnection | back to summary |
|---|---|
| public static BusAddress getSystemConnection() Determine the address of the DBus system connection.
| |