Share via


ClientBase Class

 

Note

This version of the HDInsight .NET SDK is deprecated and will be removed by January 1, 2017. You are encouraged to use the newer ARM-based version of HDInsight .NET SDK going forward. For instructions on how to use the new HDInsight .NET SDK to create a cluster, see Create HDInsight Linux clusters using .NET SDK. For instructions on how to submit jobs using the new .NET SDK and other approaches, see Submit jobs to an HDInsight cluster. The HDInsight SDK reference for the newer version is available at HDInsight .NET SDK Reference.

Represents the base class of client objects.

Namespace:   Microsoft.Hadoop.Client
Assembly:  Microsoft.Hadoop.Client (in Microsoft.Hadoop.Client.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Management.HDInsight.Framework.Core.DisposableObject
    Microsoft.Hadoop.Client.ClientBase
      Microsoft.WindowsAzure.Management.HDInsight.HDInsightClient

Syntax

[SuppressMessageAttribute("Microsoft.Design", "CA1063:ImplementIDisposableCorrectly", 
    Justification = "DisposableObject implements IDisposable correctly, the implementation of IDisposable in the interfaces is necessary for the design.")]
public abstract class ClientBase : DisposableObject, IJobSubmissionClientBase, 
    IHadoopClientBase, IDisposable, ILogProvider
[SuppressMessageAttribute("Microsoft.Design", "CA1063:ImplementIDisposableCorrectly", 
    Justification = "DisposableObject implements IDisposable correctly, the implementation of IDisposable in the interfaces is necessary for the design.")]
public ref class ClientBase abstract : DisposableObject, IJobSubmissionClientBase, 
    IHadoopClientBase, IDisposable, ILogProvider
[<AbstractClass>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1063:ImplementIDisposableCorrectly",
    Justification = "DisposableObject implements IDisposable correctly, the implementation of IDisposable in the interfaces is necessary for the design.")>]
type ClientBase = 
    class
        inherit DisposableObject
        interface IJobSubmissionClientBase
        interface IHadoopClientBase
        interface IDisposable
        interface ILogProvider
    end
<SuppressMessageAttribute("Microsoft.Design", "CA1063:ImplementIDisposableCorrectly",
    Justification := "DisposableObject implements IDisposable correctly, the implementation of IDisposable in the interfaces is necessary for the design.")>
Public MustInherit Class ClientBase
    Inherits DisposableObject
    Implements IJobSubmissionClientBase, IHadoopClientBase, IDisposable,
    ILogProvider

Constructors

Name Description
System_CAPS_protmethod ClientBase()

Initializes a new instance of the ClientBase class.

System_CAPS_protmethod ClientBase(Nullable<TimeSpan>, IRetryPolicy)

Initializes a new instance of the ClientBase class.

Properties

Name Description
System_CAPS_pubproperty CancellationSource

Gets or sets the cancellation token source that is used to signal to a cancellation token that it should be canceled.

System_CAPS_pubproperty CancellationToken

Gets the cancellation token that propagates notification that operations should be canceled.

System_CAPS_protproperty Context

Gets the abstraction context to be used to control cancellation and log writing.

System_CAPS_pubproperty HttpOperationTimeout

Gets or sets the HTTP operation timeout.

System_CAPS_pubproperty IgnoreSslErrors

System_CAPS_pubproperty Logger

Gets the logger used to log messages.

System_CAPS_pubproperty RetryPolicy

Gets or sets the retry policy.

Methods

Name Description
System_CAPS_pubmethod AddLogWriter(ILogWriter)

Adds a log writer to the client.

System_CAPS_pubmethod Cancel()

Cancels a pending operation.

System_CAPS_protmethod CheckDisposed()

(Inherited from DisposableObject.)

System_CAPS_pubmethod Dispose()

(Inherited from DisposableObject.)

System_CAPS_protmethod Dispose(Boolean)

(Inherited from DisposableObject.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from DisposableObject.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IsDisposed()

(Inherited from DisposableObject.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod PrepareQueryJob<TJobType>(TJobType)

Prepares a query job for execution.

System_CAPS_protmethod ReleaseManagedResources()

(Inherited from DisposableObject.)

System_CAPS_protmethod ReleaseUnmanagedResources()

(Inherited from DisposableObject.)

System_CAPS_pubmethod RemoveLogWriter(ILogWriter)

System_CAPS_pubmethod SetCancellationSource(CancellationTokenSource)

Allows a user to set a custom cancellation source.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

Provides client cancellation and logging functionality.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Hadoop.Client Namespace

Return to top