The ClusterJobScheduler type exposes the following members.

Constructors

  Name Description
Public method ClusterJobScheduler()()()()
Initializes a new instance of the ClusterJobScheduler class.
Public method ClusterJobScheduler(String)
Initializes a new instance of the ClusterJobScheduler class with the specified coordinator host name.
Public method ClusterJobScheduler(String, Int32)
Initializes a new instance of the ClusterJobScheduler class with the specified coordinator host name and coordinator port.

Methods

  Name Description
Public method CancelJob
Cancels the job with the specified id.
Public method CancelTask
Cancels the task with the specified id.
Public method CheckCapability(ICapabilityCheck)
Checks capability on all the agents.
Public method CheckCapability(ICapabilityCheck, IList<(Of <<'(TaskPrecondition>)>>))
Checks capability on agents which meets the specified precondition.
Public method Connect
Connects client to specified cluster scheduler.
Public method CreateJob
Returns a new job that can later be used to submit to the job scheduler.
Public method Disconnect
Disconnects client from specified job scheduler.
Public method Dispose
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetAgentInfo
Returns the list of agents and their current states.
Public method GetHashCode (Inherited from Object.)
Public method GetLicenseInfo
Gets the license info that matches the provided license parameters.
Public method GetMaximumHostCount
Returns the maximum number of hosts that is available to the job scheduler.
Public method GetType (Inherited from Object.)
Public method GetUserAuthorization
Determines whether the user is authorized for the job submission protocol.
Public method GetVersionInfo
Gets the version info of the job scheduler.
Protected method MemberwiseClone (Inherited from Object.)
Public method OnCoordinatorDisconnected
Called when the job scheduler connection with the coordinator is interrupted. Attempts to reestablish a connection with the coordinator until either a connection is obtained or the maximum number of attempts to reconnect has been reached.
Public method PostMessage(Object, Guid)
Posts a message to the specified target mailbox.
Public method PostMessage(Object, Guid, Boolean)
Posts a message to the specified target mailbox.
Public method ReceiveMessage()()()()
Receives a message from the participant's mailbox. Blocks the current thread until a message arrives.
Public method ReceiveMessage(Guid%)
Receives a message from the participant's mailbox. Blocks the current thread until a message arrives.
Public method ReceiveMessage(Int32)
Receives a message from the participant's mailbox. Blocks the current thread until a message arrives.
Public method ReceiveMessage(Int32, Guid%)
Receives a message from the participant's mailbox. Blocks the current thread until a message arrives.
Public method SubmitJob
Submits job to the job scheduler so the job scheduler can add the job to its queue.
Public method ToString (Overrides Object..::..ToString()()()().)
Public method WaitUntilDone
Blocks until all tasks in this job complete or the operation times out. The callback passed in for the heartbeat is called with the period specified by the millisecondsHeartbeat argument.

Properties

  Name Description
Public property CoordinatorMachineName
Gets or sets the name of the coordinator.
Public property CoordinatorPort
Gets or sets port number of the coordinator.
Public property CoordinatorReconnectionDelay
Gets or sets the amount of time, in milliseconds, the scheduler should wait before attempting to reconnect to the coordinator.
Public property CoordinatorReconnectionInterval
Gets or sets the amount of time, in milliseconds, the scheduler should wait in between each reconnection attempt.
Public property Id
Gets the id of this job scheduler.
Public property IsConnected
Gets a value indicating whether the job scheduler is connected.
Public property MaximumReconnectionAttempts
Gets or sets the maximum number of times the job scheduler should try to reconnect to the coordinator before aborting.

Events

  Name Description
Public event NewMessage
Occurs when a new message arrives.

See Also