User: slaboure
  Date: 02/04/08 09:08:31

  Added:       src/main/org/jboss/ha/framework/interfaces
                        GenericClusteringException.java
  Log:
  Generic exception for the clustering to be used on the client side. Used to replace
  server side exception that occur to prevent some very specific server-side classes
  to be added on the client side (JMX, ...)
  
  Revision  Changes    Path
  1.1                  
jbossmx/src/main/org/jboss/ha/framework/interfaces/GenericClusteringException.java
  
  Index: GenericClusteringException.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  
  package org.jboss.ha.framework.interfaces;
  
  /**
   * Generic clustering exception that can be used to replace other exceptions
   * that occur on the server. Thus, only this class is needed on the client side
   * and some specific server side exceptions class are not needed on the client side
   * (such as JMX exceptions for example). 
   * Furhtermore, it has support for "COMPLETED" status flag a la IIOP.
   *
   * @see 
   *
   * @author  <a href="mailto:[EMAIL PROTECTED]";>Sacha Labourey</a>.
   * @version $Revision: 1.1 $
   *
   * <p><b>Revisions:</b>
   *
   * <p><b>8 avril 2002 Sacha Labourey:</b>
   * <ul>
   * <li> First implementation </li>
   * </ul>
   */
  
  public class GenericClusteringException extends java.lang.Exception
  {
     
     // Constants -----------------------------------------------------
     
     // When an invocation reaches a node, it may be invoked on the actual
     // target or not (or not completely). If COMPLETED_NO and working in 
     // a clustered environment, the client proxy is allowed to invoke
     // the same invocation on a different node. Otherwise, it will depend
     // if the target method is idempotent: this is no more the problem of
     // this class but rather the meta-data of the business environment
     // that can give this information
     //
     public static int COMPLETED_YES = 0;
     public static int COMPLETED_NO = 1;
     public static int COMPLETED_MAYBE = 2;
     
     // Attributes ----------------------------------------------------
     
     // if yes, then the invocation may be retried against another node
     // because the state has not been modified by the current invocation
     //
     public int completed = this.COMPLETED_MAYBE;
     
     // Static --------------------------------------------------------
     
     // Constructors --------------------------------------------------
     
     public GenericClusteringException ()
     {
     }
     
     public GenericClusteringException (int CompletionStatus)
     {
        this.completed = CompletionStatus;
     }
  
     public GenericClusteringException (int CompletionStatus, String s)
     {
        super (s);
        this.completed = CompletionStatus;
     }
  
     // Public --------------------------------------------------------
     
     public int getCompletionStatus ()
     {
        return this.completed;
     }
     
     public void setCompletionStatus (int completionStatus)
     {
        this.completed = completionStatus;
     }
     
     // Z implementation ----------------------------------------------
     
     // Y overrides ---------------------------------------------------
     
     // Package protected ---------------------------------------------
     
     // Protected -----------------------------------------------------
     
     // Private -------------------------------------------------------
     
     // Inner classes -------------------------------------------------
     
  }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to