DOFRuntime ClassOpenDOF Object Access Library
The Runtime class enables access to runtime information about the associated DOF, including traffic statistics and information about active connections and servers.
Inheritance Hierarchy

SystemObject
  org.opendof.core.oalDOFRuntime

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public abstract class Runtime

The DOFRuntime type exposes the following members.

Constructors

  NameDescription
Protected methodDOFRuntime
Initializes a new instance of the DOFRuntime class
Top
Methods

  NameDescription
Public methodaddConnectionListener
Adds a ConnectionStateListener that is notified when connections are established or go down.
Public methodaddServerListener
Adds a ServerStateListener that is notified when servers are started or stopped.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodgetConnectionCount
Gets the total number of connections, both inbound and outbound, that are currently open.
Public methodgetConnections
Gets a collection of all connections, both inbound and outbound, that are currently open.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodgetProvideCount
Gets the total number of provides currently active.
Public methodgetProvidingConnections
Gets a collection of connections ( DOFConnection ), both inbound and outbound, over which a provide operation has been received for a specified DOFInterface on a specified DOFObject . In addition to specifying exact bindings, you can do the following:

  • Pass DOFObjectID.BROADCAST to get connections that are providing a specific interface on any object.
  • Pass DOFInterfaceID.WILDCARD to get connections that are providing any interface on a specific object.
  • Pass both to get all connections that are providing any binding.
Only remote provide operations that have been received over a connection will cause the DOFConnection to appear in the collection. Local provide operations sent over a connection do not.

Public methodgetServerCount
Gets the total number of servers that are currently started.
Public methodgetServers
Gets a collection of all servers that are currently started.
Public methodgetTrafficStats
Returns a TrafficStats object from which you can get traffic-related statistics for all connections and servers.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodremoveConnectionListener
Removes a previously added ConnectionStateListener . When the listener is removed, this method causes ConnectionStateListener.removed(Runtime, DOFException) to be called.
Public methodremoveServerListener
Removes a previously added ServerStateListener . When the listener is removed, this method causes ServerStateListener.removed(Runtime, DOFException) to be called.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

The Runtime class enables access to runtime information about the associated DOF, including traffic statistics and information about active connections and servers.
See Also

Reference