DOFOperationControl ClassOpenDOF Object Access Library
The Control class is used with DOFRequestors for controlling the behavior of request operations.
Inheritance Hierarchy

SystemObject
  org.opendof.core.oalDOFOperationControl

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

C#
[SerializableAttribute]
public sealed class Control

The DOFOperationControl type exposes the following members.

Constructors

  NameDescription
Public methodDOFOperationControl
Create a default instance not for unmarshalling.
Public methodDOFOperationControl(DOFOperationControl)
Copy constructor.
Public methodDOFOperationControl(DOFMarshalContext, Object, DOFPacket)
Create an instance from serial form.
Top
Methods

  NameDescription
Public methodaddProviderExclusion
Add a variable number of providers to the list of providers who should not respond to requests made using this Control.
Public methodaddProviderExclusions
Add to the list of providers (DOFObjectID's) who should not respond to requests made using this Control.
Public methodclearProviderExclusions
Clear the list of provider exclusions.
Public methodEquals (Overrides ObjectEquals(Object).)
Public methodgetAckTimeout
Get the maximum time allowed for this operation to be acknowledged.
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodgetHeuristic
Get the value indicating randomized acceptance of the operation.
Public methodgetMaxCacheAge
Return the maximum acceptable age of a cached value.
Public methodgetMaxResponderCount
Get the maximum number of desired responders.
Public methodgetProviderExclusions
Get provider exclusions.
Public methodgetResponseLevel
Get the operation's level of verbosity for responses.
Public methodgetRetryPeriod
Get the retry period.
Public methodgetRetryTime
Get the RetryTime.
Public methodgetTargetConnection
Get the target connection.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodisAutoExclude
Is the operation auto exclude?

NOTE: This is ignored for OAP Unicast operations (see DOFObjectID.isUnicast() , and DOFOperation.Session, DOFOperation.Register and DOFOperation.Subscribe.

Public methodisDefault
Check whether this Control is equal to the default Control.
Public methodisDelay
Return whether or not receiving nodes should cause responses to be randomly distributed across the operation's lifetime.
Public methodisFloodAllowed
Get whether the operation allows broadcast.
Public methodmarshal
Public methodsetAckTimeout
Set the maximum time to allow for the operation to be acknowledged.
Public methodsetAutoExclude
Set whether or not providers, who have previously responded, are automatically excluded when a request made using this Control is retried.
Public methodsetDelay
Set whether or not receiving nodes should cause responses to be randomly distributed across the operation's lifetime.
Public methodsetFloodAllowed
Set whether or not unicast requests (requests made on an object with a specific object ID, not
DOFObjectID.BROADCAST
) can be broadcast when there is no known route to a provider.
Public methodsetHeuristic
Set randomized acceptance of the operation.
Public methodsetMaxCacheAge
Set the maximum acceptable age of a cached value.
Public methodsetMaxResponderCount
Sets the maximum number of desired responders.
Public methodsetResponseLevel
Set the level of verbosity for responses for requests made using this Control.
Public methodsetRetryPeriod
Set a periodic retry period for requests made using this Control.
Public methodsetRetryTime
Set a retry retryTime to dynamically determine each retry period.
Public methodsetTargetConnection
Set the connection that the request must use.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberDEFAULT_RETRY_PERIOD
The default retry period for an operation.
Public fieldStatic memberHEURISTIC_ALL
A value indicating randomized acceptance of the operation.
Public fieldStatic memberRESPONDERS_ALL
A number that captures *all* responses.
Top
Remarks

The Control class is used with DOFRequestors for controlling the behavior of request operations.
See Also

Reference

DOFObject.get(Property, int)
DOFObject.beginGet(Property, int)
DOFObject.set(Property, DOFValue, int)
DOFObject.beginSet(Property, DOFValue, int)
DOFObject.invoke(Method, System.Collections.Generic.IList<E>, int)
DOFObject.beginInvoke(Method, int, DOFValue[])
DOFSystem.createSubscription(DOFObjectID, Property, int, Listener)
DOFSystem.createRegistration(DOFObjectID, Event, Listener)