< prev index next >

test/java/rmi/activation/Activatable/forceLogSnapshot/ForceLogSnapshot.java

Print this page




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @bug 4173960
  26  * @summary synopsis: Activatable objects cannot be restarted.
  27  * @author Laird Dornin
  28  *
  29  * @library ../../../testlibrary




  30  * @build TestLibrary RMID ActivationLibrary
  31  *     ActivateMe ForceLogSnapshot_Stub
  32  * @run main/othervm/policy=security.policy/timeout=640 ForceLogSnapshot
  33  */
  34 
  35 import java.io.*;
  36 import java.rmi.*;
  37 import java.rmi.activation.*;
  38 import java.rmi.server.*;
  39 import java.rmi.registry.*;
  40 import java.util.*;
  41 
  42 public class ForceLogSnapshot
  43         implements ActivateMe
  44 {
  45     /** how many activatable remote objects to create to test rmid */
  46     final public static int HOW_MANY = 50;
  47     final public static int NUM_GROUPS = 4;
  48     /** cause RMID to generate a snapshot every 10th activated object */
  49     final public static int SNAPSHOT_INTERVAL = 10;




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @bug 4173960
  26  * @summary synopsis: Activatable objects cannot be restarted.
  27  * @author Laird Dornin
  28  *
  29  * @library ../../../testlibrary
  30  * @modules java.rmi/sun.rmi.registry
  31  *          java.rmi/sun.rmi.server
  32  *          java.rmi/sun.rmi.transport
  33  *          java.rmi/sun.rmi.transport.tcp
  34  * @build TestLibrary RMID ActivationLibrary
  35  *     ActivateMe ForceLogSnapshot_Stub
  36  * @run main/othervm/policy=security.policy/timeout=640 ForceLogSnapshot
  37  */
  38 
  39 import java.io.*;
  40 import java.rmi.*;
  41 import java.rmi.activation.*;
  42 import java.rmi.server.*;
  43 import java.rmi.registry.*;
  44 import java.util.*;
  45 
  46 public class ForceLogSnapshot
  47         implements ActivateMe
  48 {
  49     /** how many activatable remote objects to create to test rmid */
  50     final public static int HOW_MANY = 50;
  51     final public static int NUM_GROUPS = 4;
  52     /** cause RMID to generate a snapshot every 10th activated object */
  53     final public static int SNAPSHOT_INTERVAL = 10;


< prev index next >