org.apache.openjpa.slice
Class SliceImplHelper

java.lang.Object
  extended by org.apache.openjpa.slice.SliceImplHelper

public class SliceImplHelper
extends Object

Utility methods to determine the target slices for a persistence capable instance by calling back to user-specified distribution policy.

Author:
Pinaki Poddar

Constructor Summary
SliceImplHelper()
           
 
Method Summary
static String[] getSlicesByPolicy(Object pc, DistributedConfiguration conf, Object ctx)
          Gets the target slices by calling user-specified DistributionPolicy or ReplicationPolicy depending on whether the given instance is replicated.
static boolean isReplicated(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliceImplHelper

public SliceImplHelper()
Method Detail

getSlicesByPolicy

public static String[] getSlicesByPolicy(Object pc,
                                         DistributedConfiguration conf,
                                         Object ctx)
Gets the target slices by calling user-specified DistributionPolicy or ReplicationPolicy depending on whether the given instance is replicated.


isReplicated

public static boolean isReplicated(Object pc,
                                   OpenJPAConfiguration conf)
Affirms if the given instance be replicated to multiple slices.


isReplicated

public static boolean isReplicated(OpenJPAStateManager sm)
Affirms if the given instance be replicated to multiple slices.



Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.