Class ComponentId
- java.lang.Object
-
- org.apache.jena.dboe.transaction.txn.ComponentId
-
public class ComponentId extends java.lang.ObjectAComponentIdconsists of two parts: a globally unique context (roughly - the domain where theComponentIdis valid) and an id within the context. Context is often a single coordinator but can be, for example, a distributed transaction coordinator.
-
-
Field Summary
Fields Modifier and Type Field Description static intSIZE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentIdalloc(java.lang.String label, java.util.UUID coordinatorBase, int index)Given a base componentId, create a derived (different) one.static ComponentIdallocLocal()Return a fresh ComponentId (not preserved across JVM runs)static ComponentIdcreate(java.util.UUID coordinatorBase, byte[] bytes)Create a ComponentId from the given bytesbooleanequals(java.lang.Object obj)java.util.UUIDgetBaseId()byte[]getBytes()inthashCode()java.lang.Stringlabel()java.lang.StringtoString()
-
-
-
Field Detail
-
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBytes
public byte[] getBytes()
-
getBaseId
public java.util.UUID getBaseId()
-
label
public java.lang.String label()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
create
public static ComponentId create(java.util.UUID coordinatorBase, byte[] bytes)
Create a ComponentId from the given bytes
-
alloc
public static ComponentId alloc(java.lang.String label, java.util.UUID coordinatorBase, int index)
Given a base componentId, create a derived (different) one. This is deterministically done based on baseComponentId and index. The label is just for display purposes.
-
allocLocal
public static ComponentId allocLocal()
Return a fresh ComponentId (not preserved across JVM runs)
-
-