HostnameInstanceIdGenerator Class

Quartz.NET 3.0 API Documentation
IInstanceIdGenerator that names the scheduler instance using just the machine hostname.
Inheritance Hierarchy

SystemObject
  Quartz.SimplHostNameBasedIdGenerator
    Quartz.SimplHostnameInstanceIdGenerator

Namespace:  Quartz.Simpl
Assembly:  Quartz (in Quartz.dll) Version: 3.0.0
Syntax

C#
public class HostnameInstanceIdGenerator : HostNameBasedIdGenerator

The HostnameInstanceIdGenerator type exposes the following members.

Constructors

  NameDescription
Public methodHostnameInstanceIdGenerator
Initializes a new instance of the HostnameInstanceIdGenerator class
Top
Methods

  NameDescription
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 methodGenerateInstanceId
Generate the instance id for a IScheduler
(Overrides HostNameBasedIdGeneratorGenerateInstanceId(CancellationToken).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetHostAddress (Inherited from HostNameBasedIdGenerator.)
Protected methodGetHostName (Inherited from HostNameBasedIdGenerator.)
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 methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

This class is useful when you know that your scheduler instance will be the only one running on a particular machine. Each time the scheduler is restarted, it will get the same instance id as long as the machine is not renamed.
See Also

Reference