public class SliceImplHelper
extends java.lang.Object
Constructor and Description |
---|
SliceImplHelper() |
Modifier and Type | Method and Description |
---|---|
static SliceInfo |
getSliceInfo(OpenJPAStateManager sm)
Gets the assigned slice information, if any, from the given StateManager.
|
static SliceInfo |
getSlicesByPolicy(java.lang.Object pc,
DistributedConfiguration conf,
java.lang.Object ctx)
Gets the target slices by calling user-specified
DistributionPolicy or ReplicationPolicy
depending on whether the given instance is replicated . |
static SliceInfo |
getSlicesByPolicy(OpenJPAStateManager sm,
DistributedConfiguration conf,
java.lang.Object ctx)
Gets the target slices for the given StateManager.
|
static boolean |
isReplicated(java.lang.Object pc,
OpenJPAConfiguration conf)
Affirms if the given instance be replicated to multiple slices.
|
static boolean |
isReplicated(OpenJPAStateManager sm)
Affirms if the given instance be replicated to multiple slices.
|
static boolean |
isSliceAssigned(OpenJPAStateManager sm)
Affirms if the given StateManager has an assigned slice.
|
public static SliceInfo getSlicesByPolicy(java.lang.Object pc, DistributedConfiguration conf, java.lang.Object ctx)
DistributionPolicy
or ReplicationPolicy
depending on whether the given instance is replicated
.public static SliceInfo getSlicesByPolicy(OpenJPAStateManager sm, DistributedConfiguration conf, java.lang.Object ctx)
public static boolean isReplicated(java.lang.Object pc, OpenJPAConfiguration conf)
public static boolean isReplicated(OpenJPAStateManager sm)
public static boolean isSliceAssigned(OpenJPAStateManager sm)
public static SliceInfo getSliceInfo(OpenJPAStateManager sm)