@Public public final class JobID extends AbstractID
Jobs act simultaneously as sessions, because jobs can be created and submitted incrementally in different parts. Newer fragments of a graph can be attached to existing graphs, thereby extending the current data flow graphs.
lowerPart, SIZE, upperPart
Constructor and Description |
---|
JobID()
Creates a new (statistically) random JobID.
|
JobID(byte[] bytes)
Creates a new JobID from the given byte sequence.
|
JobID(long lowerPart,
long upperPart)
Creates a new JobID, using the given lower and upper parts.
|
Modifier and Type | Method and Description |
---|---|
static JobID |
fromByteArray(byte[] bytes)
Creates a new JobID from the given byte sequence.
|
static JobID |
fromByteBuffer(ByteBuffer buf) |
static JobID |
fromHexString(String hexString)
Parses a JobID from the given string.
|
static JobID |
generate()
Creates a new (statistically) random JobID.
|
compareTo, equals, getBytes, getLowerPart, getUpperPart, hashCode, toHexString, toString
public JobID()
public JobID(long lowerPart, long upperPart)
lowerPart
- The lower 8 bytes of the ID.upperPart
- The upper 8 bytes of the ID.public JobID(byte[] bytes)
bytes
- The byte sequence.public static JobID generate()
public static JobID fromByteArray(byte[] bytes)
bytes
- The byte sequence.public static JobID fromByteBuffer(ByteBuffer buf)
public static JobID fromHexString(String hexString)
hexString
- string representation of a JobIDIllegalArgumentException
- if the JobID could not be parsed from the given stringCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.