Return-Path: X-Original-To: apmail-geode-commits-archive@minotaur.apache.org Delivered-To: apmail-geode-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7EAD518D57 for ; Sat, 12 Mar 2016 00:30:01 +0000 (UTC) Received: (qmail 33824 invoked by uid 500); 12 Mar 2016 00:30:01 -0000 Delivered-To: apmail-geode-commits-archive@geode.apache.org Received: (qmail 33785 invoked by uid 500); 12 Mar 2016 00:30:01 -0000 Mailing-List: contact commits-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list commits@geode.incubator.apache.org Received: (qmail 33772 invoked by uid 99); 12 Mar 2016 00:30:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Mar 2016 00:30:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D7FFE1A077F for ; Sat, 12 Mar 2016 00:30:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.349 X-Spam-Level: X-Spam-Status: No, score=-2.349 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, KAM_MANYCOMMENTS=1.2, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.329] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id lJizJ01tASS7 for ; Sat, 12 Mar 2016 00:29:48 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 0C9865FB2B for ; Sat, 12 Mar 2016 00:29:41 +0000 (UTC) Received: (qmail 32197 invoked by uid 99); 12 Mar 2016 00:29:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Mar 2016 00:29:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0F376DFFB9; Sat, 12 Mar 2016 00:29:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sbawaskar@apache.org To: commits@geode.incubator.apache.org Date: Sat, 12 Mar 2016 00:29:43 -0000 Message-Id: <0e8a937c90b44109b44fe6d370f2d39e@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [03/51] [partial] incubator-geode git commit: GEODE-54: Missing javadocs http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/54a3e718/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/FixedPartitionAttributes.html ---------------------------------------------------------------------- diff --git a/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/FixedPartitionAttributes.html b/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/FixedPartitionAttributes.html new file mode 100644 index 0000000..1a1652c --- /dev/null +++ b/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/FixedPartitionAttributes.html @@ -0,0 +1,415 @@ + + + + + +FixedPartitionAttributes (Apache Geode 1.0.0-incubating.M2-SNAPSHOT) + + + + + + + + + + + + +
+
com.gemstone.gemfire.cache
+

Class FixedPartitionAttributes

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.gemstone.gemfire.cache.FixedPartitionAttributes
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FixedPartitionAttributes

        +
        public FixedPartitionAttributes()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createFixedPartition

        +
        public static final FixedPartitionAttributes createFixedPartition(java.lang.String name)
        +
        Creates an instance of FixedPartitionAttributes.
        +
        +
        Parameters:
        +
        name - Name of the fixed partition.
        +
        +
      • +
      + + + +
        +
      • +

        createFixedPartition

        +
        public static final FixedPartitionAttributes createFixedPartition(java.lang.String name,
        +                                                                  boolean isPrimary)
        +
        Creates an instance of FixedPartitionAttributes.
        +
        +
        Parameters:
        +
        name - Name of the fixed partition.
        +
        isPrimary - True if this member is the primary for the partition.
        +
        +
      • +
      + + + +
        +
      • +

        createFixedPartition

        +
        public static final FixedPartitionAttributes createFixedPartition(java.lang.String name,
        +                                                                  boolean isPrimary,
        +                                                                  int numBuckets)
        +
        Creates an instance of FixedPartitionAttributes.
        +
        +
        Parameters:
        +
        name - Name of the fixed partition.
        +
        isPrimary - True if this member is the primary for the partition.
        +
        numBuckets - Number of buckets allowed for the partition.
        +
        +
      • +
      + + + +
        +
      • +

        createFixedPartition

        +
        public static final FixedPartitionAttributes createFixedPartition(java.lang.String name,
        +                                                                  int numBuckets)
        +
        Creates an instance of FixedPartitionAttributes.
        +
        +
        Parameters:
        +
        name - Name of the fixed partition.
        +
        numBuckets - Number of buckets allowed for the partition.
        +
        +
      • +
      + + + +
        +
      • +

        getPartitionName

        +
        public abstract java.lang.String getPartitionName()
        +
        Returns the name of the fixed partition.
        +
      • +
      + + + +
        +
      • +

        isPrimary

        +
        public abstract boolean isPrimary()
        +
        Returns whether this member is the primary for the partition.
        +
        +
        Returns:
        +
        True if this member is the primary, false otherwise.
        +
        +
      • +
      + + + +
        +
      • +

        getNumBuckets

        +
        public abstract int getNumBuckets()
        +
        Returns the number of buckets allowed for the partition.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/54a3e718/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/FixedPartitionResolver.html ---------------------------------------------------------------------- diff --git a/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/FixedPartitionResolver.html b/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/FixedPartitionResolver.html new file mode 100644 index 0000000..33eb66a --- /dev/null +++ b/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/FixedPartitionResolver.html @@ -0,0 +1,294 @@ + + + + + +FixedPartitionResolver (Apache Geode 1.0.0-incubating.M2-SNAPSHOT) + + + + + + + + + + + + +
+
com.gemstone.gemfire.cache
+

Interface FixedPartitionResolver<K,V>

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    CacheCallback, PartitionResolver<K,V>
    +
    +
    +
    +
    public interface FixedPartitionResolver<K,V>
    +extends PartitionResolver<K,V>
    +
    Implementers of interface FixedPartitionResolver helps to + achieve explicit mapping of a "user defined" partition to a data member node. +

    + GemFire uses the partition name returned by getPartitionName(EntryOperation, Set) to determine on + which member the data is being managed. Say, for example, you want to + partition all Trades according to quarters. You can implement + FixedPartitionResolver to get the name of the quarter based on the date given + as part of EntryOperation. +

    + + public class QuarterPartitionResolver implements FixedPartitionResolver{
    +     public String getPartitionName(EntryOperation opDetails, Set + allAvailablePartitions) {
    +     Date date = sdf.parse((String)opDetails.getKey());
    +     Calendar cal = Calendar.getInstance();
    +     cal.setTime(date);
    +     int month = cal.get(Calendar.MONTH);
    +     if (month == 0 || month == 1 || month == 2) {
    +       return "Quarter1";
    +     }
    +     else if (month == 3 || month == 4 || month == 5) {
    +       return "Quarter2";
    +     }
    +     else if (month == 6 || month == 7 || month == 8) {
    +       return "Quarter3";
    +     }
    +     else if (month == 9 || month == 10 || month == 11) {
    +       return "Quarter4";
    +     }
    +     else {
    +       return "Invalid Quarter";
    +     }
    +   }
    +
    +
    Since:
    +
    6.6
    +
    See Also:
    +
    PartitionResolver
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPartitionName

        +
        java.lang.String getPartitionName(EntryOperation<K,V> opDetails,
        +                                  @Deprecated
        +                                  java.util.Set<java.lang.String> targetPartitions)
        +
        This method is used to get the name of the partition for the given entry + operation.
        +
        +
        Parameters:
        +
        opDetails - the details of the entry operation e.g. Region.get(Object)
        +
        targetPartitions - Avoid using this parameter.This set is deprecated from 8.0 and same will be removed in future release. + Represents all the available primary partitions on the nodes.
        +
        Returns:
        +
        partition-name associated with node which allows mapping of given + data to user defined partition
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/54a3e718/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/GatewayConfigurationException.html ---------------------------------------------------------------------- diff --git a/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/GatewayConfigurationException.html b/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/GatewayConfigurationException.html new file mode 100644 index 0000000..405ff0a --- /dev/null +++ b/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/GatewayConfigurationException.html @@ -0,0 +1,341 @@ + + + + + +GatewayConfigurationException (Apache Geode 1.0.0-incubating.M2-SNAPSHOT) + + + + + + + + + + + + +
+
com.gemstone.gemfire.cache
+

Class GatewayConfigurationException

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class GatewayConfigurationException
    +extends GatewayException
    +
    An exception indicating that a gateway configuration + will not work with the remote side of the gateway's configuration.
    +
    +
    Since:
    +
    6.6
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GatewayConfigurationException

        +
        public GatewayConfigurationException()
        +
      • +
      + + + +
        +
      • +

        GatewayConfigurationException

        +
        public GatewayConfigurationException(java.lang.String msg,
        +                                     java.lang.Throwable cause)
        +
      • +
      + + + +
        +
      • +

        GatewayConfigurationException

        +
        public GatewayConfigurationException(java.lang.String msg)
        +
      • +
      + + + +
        +
      • +

        GatewayConfigurationException

        +
        public GatewayConfigurationException(java.lang.Throwable cause)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/54a3e718/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/GatewayException.html ---------------------------------------------------------------------- diff --git a/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/GatewayException.html b/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/GatewayException.html new file mode 100644 index 0000000..987e39a --- /dev/null +++ b/releases/1.0.0-incubating.M2-SNAPSHOT/javadocs/com/gemstone/gemfire/cache/GatewayException.html @@ -0,0 +1,372 @@ + + + + + +GatewayException (Apache Geode 1.0.0-incubating.M2-SNAPSHOT) + + + + + + + + + + + + +
+
com.gemstone.gemfire.cache
+

Class GatewayException

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      GatewayException() +
      Constructor.
      +
      GatewayException(java.lang.String msg) +
      Constructor.
      +
      GatewayException(java.lang.String msg, + java.lang.Throwable cause) +
      Constructor.
      +
      GatewayException(java.lang.Throwable cause) +
      Constructor.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GatewayException

        +
        public GatewayException()
        +
        Constructor. + Creates a new instance of GatewayException.
        +
      • +
      + + + +
        +
      • +

        GatewayException

        +
        public GatewayException(java.lang.String msg)
        +
        Constructor. + Creates an instance of GatewayException with the + specified detail message.
        +
        +
        Parameters:
        +
        msg - the detail message
        +
        +
      • +
      + + + +
        +
      • +

        GatewayException

        +
        public GatewayException(java.lang.String msg,
        +                        java.lang.Throwable cause)
        +
        Constructor. + Creates an instance of GatewayException with the + specified detail message + and cause.
        +
        +
        Parameters:
        +
        msg - the detail message
        +
        cause - the causal Throwable
        +
        +
      • +
      + + + +
        +
      • +

        GatewayException

        +
        public GatewayException(java.lang.Throwable cause)
        +
        Constructor. + Creates an instance of GatewayException with the + specified cause.
        +
        +
        Parameters:
        +
        cause - the causal Throwable
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + +