< prev index next >

src/java.rmi/share/classes/java/rmi/activation/ActivationGroupID.java

Print this page


   1 /*
   2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  32  * purposes: <ul>
  33  * <li>identifies the group uniquely within the activation system, and
  34  * <li>contains a reference to the group's activation system so that the
  35  * group can contact its activation system when necessary.</ul><p>
  36  *
  37  * The <code>ActivationGroupID</code> is returned from the call to
  38  * <code>ActivationSystem.registerGroup</code> and is used to identify
  39  * the group within the activation system. This group id is passed
  40  * as one of the arguments to the activation group's special constructor
  41  * when an activation group is created/recreated.
  42  *
  43  * @author      Ann Wollrath
  44  * @see         ActivationGroup
  45  * @see         ActivationGroupDesc
  46  * @since       1.2
  47  */
  48 public class ActivationGroupID implements java.io.Serializable {
  49     /**
  50      * @serial The group's activation system.
  51      */

  52     private ActivationSystem system;
  53 
  54     /**
  55      * @serial The group's unique id.
  56      */
  57     private UID uid = new UID();
  58 
  59     /** indicate compatibility with the Java 2 SDK v1.2 version of class */
  60     private  static final long serialVersionUID = -1648432278909740833L;
  61 
  62     /**
  63      * Constructs a unique group id.
  64      *
  65      * @param system the group's activation system
  66      * @throws UnsupportedOperationException if and only if activation is
  67      *         not supported by this implementation
  68      * @since 1.2
  69      */
  70     public ActivationGroupID(ActivationSystem system) {
  71         this.system = system;


   1 /*
   2  * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  32  * purposes: <ul>
  33  * <li>identifies the group uniquely within the activation system, and
  34  * <li>contains a reference to the group's activation system so that the
  35  * group can contact its activation system when necessary.</ul><p>
  36  *
  37  * The <code>ActivationGroupID</code> is returned from the call to
  38  * <code>ActivationSystem.registerGroup</code> and is used to identify
  39  * the group within the activation system. This group id is passed
  40  * as one of the arguments to the activation group's special constructor
  41  * when an activation group is created/recreated.
  42  *
  43  * @author      Ann Wollrath
  44  * @see         ActivationGroup
  45  * @see         ActivationGroupDesc
  46  * @since       1.2
  47  */
  48 public class ActivationGroupID implements java.io.Serializable {
  49     /**
  50      * @serial The group's activation system.
  51      */
  52     @SuppressWarnings("serial") // Not statically typed as Serializable
  53     private ActivationSystem system;
  54 
  55     /**
  56      * @serial The group's unique id.
  57      */
  58     private UID uid = new UID();
  59 
  60     /** indicate compatibility with the Java 2 SDK v1.2 version of class */
  61     private  static final long serialVersionUID = -1648432278909740833L;
  62 
  63     /**
  64      * Constructs a unique group id.
  65      *
  66      * @param system the group's activation system
  67      * @throws UnsupportedOperationException if and only if activation is
  68      *         not supported by this implementation
  69      * @since 1.2
  70      */
  71     public ActivationGroupID(ActivationSystem system) {
  72         this.system = system;


< prev index next >