| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public DBusConnection | Returns: DBusConnectionImplements abstract org. Create the new |
| public static DBusConnectionBuilder | Returns: thisaddress to use _address)Use the given address to create the connection (e.g. used for remote TCP connected DBus daemons). |
| public static DBusConnectionBuilder | Returns: thisaddress to use _address)Use the given address to create the connection (e.g. used for remote TCP connected DBus daemons). |
| public static DBusConnectionBuilder | Returns: DBusConnectionBuilderfile with machine ID _machineIdFileLocation)Create a new default connection connecting to DBus session bus but use an alternative input for the machineID. |
| public static DBusConnectionBuilder | Returns: DBusConnectionBuilderCreate a new default connection connecting to the DBus session bus. |
| public static DBusConnectionBuilder | |
| public static DBusConnectionBuilder | Returns: thisbus type _typeCreate a default connection to DBus using the given bus type. |
| public static DBusConnectionBuilder | Returns: thisbus type _type,machineId file _machineIdFile)Create a default connection to DBus using the given bus type and machineIdFile. |
| private DBusConnection | Returns: connection if a valid shared connection found or null if no connection found or found connection was invalidbus address _busAddr)Retrieve a existing shared connection. |
| private static BusAddress | Returns: address, maybe fallback addressaddress to check _address)Checks if the given address can be used with the available transports. |
| public DBusConnectionBuilder |
| machineId | back to summary |
|---|---|
| private final String machineId | |
| shared | back to summary |
|---|---|
| private boolean shared | |
| DBusConnectionBuilder | back to summary |
|---|---|
| private DBusConnectionBuilder(BusAddress _address, String _machineId) | |
| build | back to summary |
|---|---|
| public DBusConnection build() throws DBusException Implements abstract org. Create the new
| |
| forAddress | back to summary |
|---|---|
| public static DBusConnectionBuilder forAddress(String _address) Use the given address to create the connection (e.g. used for remote TCP connected DBus daemons).
| |
| forAddress | back to summary |
|---|---|
| public static DBusConnectionBuilder forAddress(BusAddress _address) Use the given address to create the connection (e.g. used for remote TCP connected DBus daemons).
| |
| forSessionBus | back to summary |
|---|---|
| public static DBusConnectionBuilder forSessionBus(String _machineIdFileLocation) Create a new default connection connecting to DBus session bus but use an alternative input for the machineID.
| |
| forSessionBus | back to summary |
|---|---|
| public static DBusConnectionBuilder forSessionBus() Create a new default connection connecting to the DBus session bus. | |
| forSystemBus | back to summary |
|---|---|
| public static DBusConnectionBuilder forSystemBus() Create new default connection to the DBus system bus. | |
| forType | back to summary |
|---|---|
| public static DBusConnectionBuilder forType(DBusConnection. Create a default connection to DBus using the given bus type.
| |
| forType | back to summary |
|---|---|
| public static DBusConnectionBuilder forType(DBusConnection. Create a default connection to DBus using the given bus type and machineIdFile.
| |
| getSharedConnection | back to summary |
|---|---|
| private DBusConnection getSharedConnection(String _busAddr) Retrieve a existing shared connection. Will remove existing shared connections when underlying transport is disconnected.
| |
| validateTransportAddress | back to summary |
|---|---|
| private static BusAddress validateTransportAddress(BusAddress _address) Checks if the given address can be used with the available transports. Will fallback to TCP if no address given and TCP transport is available.
| |
| withShared | back to summary |
|---|---|
| public DBusConnectionBuilder withShared(boolean _shared) Use this connection as shared connection. Shared connection means that the same connection is used multiple times if the connection parameter did not change. Default is true.
| |