AgentBase Class

Relativity Agents
Describes basic properties, methods and events related to agent instances.
Inheritance Hierarchy

System.Object
  kCura.Agent.AgentBase

Namespace:  kCura.Agent
Assembly:  kCura.Agent (in kCura.Agent.dll) Version: 640db774aa42dfbe1785add27fbb41844ec5c7d4
Syntax

public abstract class AgentBase

The AgentBase type exposes the following members.

Constructors

  NameDescription
Public methodAgentBase
Instantiates an object of AgentBase type.
Top
Properties

  NameDescription
Public propertyAgentID
Read-only property returning unique ID of an agent.
Public propertyAssemblyPath
Read-only property returning assembly path.
Public propertyClassName
Read-only property returning class name.
Public propertyEnabled
Gets and sets the flag to mark an agent instance as enabled or disabled.
Public propertyExecuting
Read-only property returning Boolean flag indicating whether agent is currently executing.
Public propertyHelper
Gets the Relativity.API.IAgentHelper object
Public propertyInterval
Read-only property returning double number indicating the interval at which the agent instance runs.
Public propertyIsHealthy
Get whether the agent is healthy to do work
Public propertyLastExecutionTime
Read-only property returning time when agent instance last checked its execution.
Public propertyLastMessage
Read-only property returning last message logged by agent instance.
Public propertyLoggingLevel
Gets and sets logging level of an agent instance.
Public propertyName
Read-only property which is overridden in a derived class.
Public propertyServicesAPIUri Obsolete.
Gets or sets the URL to the nearest Services API endpoint
Public propertyServiceType
Public propertyStartTime
Records the current time of the agent execution.
Public propertyToBeRemoved
When true, this means the agent is marked for removal, and will not take any new jobs. Note that this value should never be set to false.
Public propertyUseFixedInterval
Sets an agent instance to check in on a fixed time interval.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecute
Sub which is overridden in a derived class.
Public methodGetDatabaseConnection Obsolete.
Returns database connection based on the workspace ID passed in as a parameter.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetResourceGroupIDs
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsBetweenTimes
Returns whether the current time is between two specified DateTime times.
Public methodIsOffHours
Indicates whether the current time is during the off hours for an agent.
Public methodKillTimer
Calls Dispose() on timer object and releases its resources.
Public methodRaiseError
Raises an error during agent execution.
Public methodRaiseMessage
Raises a message during agent execution.
Public methodRaiseMessageNoLogging
Raises a message during agent execution but does not log to Relativity.Logging framework.
Public methodRaiseWarning(String)
Raises a warning during agent execution.
Public methodRaiseWarning(String, String)
Raises a warning during agent execution.
Public methodSetInterval
Sets the run interval of an agent instance.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events

  NameDescription
Public eventOnAgentDisabled
Raised when agent instance changes its status to Disabled.
Public eventOnAgentEnable
Raised when agent instance changes its status to Enabled.
Public eventOnAgentException
Raised when agent instance experiences an exception while executing.
Public eventOnAgentExecuteBegin
Raised when agent instance starts executing.
Public eventOnAgentExecuteFinish
Raised when agent instance stops executing.
Public eventOnMessage
Raised when agent instance attempts to log message.
Top
See Also

Reference