Logo Search packages:      
Sourcecode: dbus-java version File versions  Download package

org::freedesktop::dbus::AbstractConnection Class Reference

Inheritance diagram for org::freedesktop::dbus::AbstractConnection:

org::freedesktop::dbus::DBusConnection org::freedesktop::dbus::DirectConnection

List of all members.


Detailed Description

Handles a connection to DBus.

Definition at line 46 of file AbstractConnection.java.


Public Member Functions

void addFallback (String objectprefix, DBusInterface object) throws DBusException
DBusAsyncReply callMethodAsync (DBusInterface object, String m, Object...parameters)
void changeThreadCount (byte newcount)
void disconnect ()
void exportObject (String objectpath, DBusInterface object) throws DBusException
void finalize ()
BusAddress getAddress () throws ParseException
DBusExecutionException getError ()
void removeFallback (String objectprefix)
void sendSignal (DBusSignal signal)
void setWeakReferences (boolean weakreferences)
void unExportObject (String objectpath)

Static Public Member Functions

static DBusCallInfo getCallInfo ()

Static Public Attributes

static final boolean EXCEPTION_DEBUG

Protected Member Functions

 AbstractConnection (String address) throws DBusException
abstract< TextendsDBusSignal > void addSigHandler (DBusMatchRule rule, DBusSigHandler< T > handler) throws DBusException
void listen ()
abstract< TextendsDBusSignal > void removeSigHandler (DBusMatchRule rule, DBusSigHandler< T > handler) throws DBusException
void sendMessage (Message m)

Protected Attributes

boolean _run
String addr
Map< String, ExportedObject > exportedObjects
FallbackContainer fallbackcontainer
Map< SignalTuple, Vector
< DBusSigHandler<?extends
DBusSignal > > > 
handledSignals
Map< DBusInterface, RemoteObject > importedObjects
Map< MethodCall,
DBusAsyncReply<?extends Object > > 
pendingCallbackReplys
Map< MethodCall,
CallbackHandler<?extends
Object > > 
pendingCallbacks
EfficientMap pendingCalls
LinkedList< Runnable > runnables
_sender sender
_thread thread
Transport transport
boolean weakreferences = false
LinkedList< _workerthread > workers

Static Protected Attributes

static final int TIMEOUT = 100000

Package Functions

public< T extends DBusSignal > void addSigHandler (Class< T > type, DBusInterface object, DBusSigHandler< T > handler) throws DBusException
public< T extends DBusSignal > void addSigHandler (Class< T > type, DBusSigHandler< T > handler) throws DBusException
protected< T extends
DBusSignal > void 
addSigHandlerWithoutMatch (Class<?extends DBusSignal > signal, DBusSigHandler< T > handler) throws DBusException
public< A > void callWithCallback (DBusInterface object, String m, CallbackHandler< A > callback, Object...parameters)
abstract DBusInterface getExportedObject (String source, String path) throws DBusException
String getExportedObject (DBusInterface i) throws DBusException
void queueOutgoing (Message m)
public< T extends DBusSignal > void removeSigHandler (Class< T > type, DBusInterface object, DBusSigHandler< T > handler) throws DBusException
public< T extends DBusSignal > void removeSigHandler (Class< T > type, DBusSigHandler< T > handler) throws DBusException

Static Package Functions

 [static initializer]

Package Attributes

EfficientQueue outgoing
LinkedList< ErrorpendingErrors

Static Package Attributes

static final String BUSNAME_REGEX = "^[-_a-zA-Z][-_a-zA-Z0-9]*(\\.[-_a-zA-Z][-_a-zA-Z0-9]*)*$"
static final String CONNID_REGEX = "^:[0-9]*\\.[0-9]*$"
static final Pattern dollar_pattern = Pattern.compile("[$]")
static final boolean FLOAT_SUPPORT
static final int MAX_ARRAY_LENGTH = 67108864
static final int MAX_NAME_LENGTH = 255
static final String OBJECT_REGEX = "^/([-_a-zA-Z0-9]+(/[-_a-zA-Z0-9]+)*)?$"
static final byte THREADCOUNT = 4

Private Member Functions

void addRunnable (Runnable r)
void handleMessage (final MethodReturn mr)
void handleMessage (final Error err)
void handleMessage (final DBusSignal s)
void handleMessage (final MethodCall m) throws DBusException
Message readIncoming () throws DBusException

Private Attributes

_globalhandler _globalhandlerreference
ObjectTree objectTree

Static Private Attributes

static final Map< Thread,
DBusCallInfo
infomap = new HashMap<Thread,DBusCallInfo>()
static final int PENDING_MAP_INITIAL_SIZE = 10

Classes

class  _globalhandler
class  _sender
class  _thread
class  _workerthread
class  FallbackContainer

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index