Class JobTarget
Compute job target.
public static class JobTarget
- Inheritance
-
JobTarget
- Inherited Members
Methods
AnyNode(params IClusterNode[])
Creates a job target for any node from the provided collection.
public static IJobTarget<IEnumerable<IClusterNode>> AnyNode(params IClusterNode[] nodes)
Parameters
nodes
IClusterNode[]Nodes.
Returns
- IJobTarget<IEnumerable<IClusterNode>>
Any node job target.
AnyNode(IEnumerable<IClusterNode>)
Creates a job target for any node from the provided collection.
public static IJobTarget<IEnumerable<IClusterNode>> AnyNode(IEnumerable<IClusterNode> nodes)
Parameters
nodes
IEnumerable<IClusterNode>Nodes.
Returns
- IJobTarget<IEnumerable<IClusterNode>>
Any node job target.
Colocated<TKey>(QualifiedName, TKey)
Creates a colocated job target for a specific table and key.
public static IJobTarget<TKey> Colocated<TKey>(QualifiedName tableName, TKey key) where TKey : notnull
Parameters
tableName
QualifiedNameTable name.
key
TKeyKey.
Returns
- IJobTarget<TKey>
Colocated job target.
Type Parameters
TKey
Key type.
Colocated<TKey>(string, TKey)
Creates a colocated job target for a specific table and key.
public static IJobTarget<TKey> Colocated<TKey>(string tableName, TKey key) where TKey : notnull
Parameters
tableName
stringTable name.
key
TKeyKey.
Returns
- IJobTarget<TKey>
Colocated job target.
Type Parameters
TKey
Key type.
Node(IClusterNode)
Creates a job target for a specific node.
public static IJobTarget<IClusterNode> Node(IClusterNode node)
Parameters
node
IClusterNodeNode.
Returns
- IJobTarget<IClusterNode>
Single node job target.