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

org::freedesktop::dbus::DirectConnection Class Reference

Inheritance diagram for org::freedesktop::dbus::DirectConnection:

org::freedesktop::dbus::AbstractConnection

List of all members.


Detailed Description

Handles a peer to peer connection between two applications withou a bus daemon.

Signal Handlers and method calls from remote objects are run in their own threads, you MUST handle the concurrency issues.

Definition at line 34 of file DirectConnection.java.


Public Member Functions

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

Static Public Member Functions

static String createDynamicSession ()
static String createDynamicTCPSession ()
static DBusCallInfo getCallInfo ()

Static Public Attributes

static final boolean EXCEPTION_DEBUG

Protected Member Functions

void listen ()
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 
addSigHandler (DBusMatchRule rule, 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)
DBusInterface dynamicProxy (String path) throws DBusException
String getExportedObject (DBusInterface i) throws DBusException
DBusInterface getExportedObject (String source, String path) throws DBusException
DBusInterface getExportedObject (String path) 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
protected< T extends
DBusSignal > void 
removeSigHandler (DBusMatchRule rule, 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

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

Generated by  Doxygen 1.6.0   Back to index