@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) |
static JobID |
generate()
Creates a new (statistically) random JobID.
|
compareTo, equals, getBytes, getLowerPart, getUpperPart, hashCode, read, toString, writepublic 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)
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.