Package java.rmi.activation

Examples of java.rmi.activation.ActivationGroupID


      Properties props = new Properties();
      props.put("java.security.policy",
          TestParams.testSrc + File.separator +
          "group.security.policy");
      ActivationGroupDesc gdesc = new ActivationGroupDesc(props, null);
      ActivationGroupID gid =
    ActivationGroup.getSystem().registerGroup(gdesc);
     
      testActivate(gid, null);
      testActivate(gid, new CountedSocketFactory());
  } finally {
View Full Code Here


    public static void create(
        SharedActivationGroupDescriptor sharedGroupDesc)
        throws Exception {
        try {
            ActivationGroupID gid = (ActivationGroupID)
    sharedGroupDesc.create(EmptyConfiguration.INSTANCE);
            File flog = new File(sharedGroupDesc.getLog());
            System.out.println("Log: " + flog);
            if (!flog.exists() || !flog.isDirectory()) {
          throw new TestException(
                    "Failed -- Log dir wasn't created.");
            }
            File cookie = new File(flog, "cookie");
            if (!cookie.exists() || !cookie.isFile() || cookie.length() <= 0) {
          throw new TestException(
                    "Failed -- Group cookie wasn't created.");
            }
            ActivationGroupID recovered =
                restoreGroupID(sharedGroupDesc.getLog());
            if (!gid.equals(recovered)) {
          throw new TestException(
                    "Failed -- Group ID improperly stored.");
            }
View Full Code Here

      + absDir + "] does not exist.");
        }

        File cookieFile = new File(log, "cookie");
        ObjectInputStream ois = null;
        ActivationGroupID obj = null;
        try {
//TODO - lock out strategy for concurrent r/w file access
            ois = new ObjectInputStream(
                      new BufferedInputStream(
                         new FileInputStream(cookieFile)));
View Full Code Here

     * This method performs all actions mentioned in class description.
     */
    public void run() throws Exception {
        FakeActivationGroup.setLogger(logger);
        FakeActivationGroup fag;
        ActivationGroupID aid;
        aid = new ActivationGroupID(null);
        fag = new FakeActivationGroup(null);
        fag = new FakeActivationGroup(aid);
        RemoteRef ref = fag.getRef();
        logger.log(Level.FINEST, "ActivationGroup.ref = " + ref);
        assertion(ref instanceof UnicastServerRef,
View Full Code Here

     * This method performs all actions mentioned in class description.
     */
    public void run() throws Exception {
        FakeActivationGroup.setLogger(logger);
        ActivationSystem system = new FakeActivationSystem(logger);
        ActivationGroupID agid = new FakeActivationGroupID(logger, system);
        ActivationID aid;
        Exporter exporter;
        try {
            aid = new ActivationID(null);
            ActivationGroup.inactive(aid, null);
View Full Code Here

    /**
     * This method performs all actions mentioned in class description.
     */
    public void run() throws Exception {
        ActivationSystem system = new FakeActivationSystem(logger);
        ActivationGroupID agid = new FakeActivationGroupID(logger, system);
        String program = "java";
        String[] options = {""};
        Properties props = new Properties();
        CommandEnvironment cmd = new CommandEnvironment(program, options);
        ActivationGroupDesc gd = new ActivationGroupDesc(props, cmd);
View Full Code Here

     * This method performs all actions mentioned in class description.
     */
    public void run() throws Exception {
        FakeActivationGroup.setLogger(logger);
        ActivationSystem system = new FakeActivationSystem(logger);
        ActivationGroupID agid = new FakeActivationGroupID(logger, system);
        Properties props = new Properties();
        ActivationGroupDesc gd = new ActivationGroupDesc(
            "com.sun.jini.test.spec.activation.util.FakeActivationGroup",
            null,
            null,
View Full Code Here

      }
      closeRequestSockets(tasker.getPending());
      log.deletePersistentStore();
      if (activationID != null) {
    /* inactive will set current group ID to null */
    ActivationGroupID gid = ActivationGroup.currentGroupID();
    try {
        Activatable.inactive(activationID);
    } catch (RemoteException e) {
    } catch (ActivationException e) {
    }
View Full Code Here

      ActivationSystem sys = (ActivationSystem)
          sysPreparer.prepareProxy(id.getSystem());
      ActivationGroupImpl.incarnation = incarnation;
      groupID = id;
      state = CREATING;
      ActivationGroupID gid = (sys == id.getSystem() ?
             id : new WrappedGID(id, sys));
      Object group = ActivationGroup.createGroup(
                gid, desc, incarnation);
      state = ACTIVE;
      return group;
View Full Code Here

    new MarshalInputStream(
           System.in,
           ActivationGroupInit.class.getClassLoader(),
           false, null, Collections.EMPTY_LIST);
      in.useCodebaseAnnotations();
      ActivationGroupID id  = (ActivationGroupID)in.readObject();
      ActivationGroupDesc desc = (ActivationGroupDesc)in.readObject();
      long incarnation = in.readLong();
      Class cl = RMIClassLoader.loadClass(desc.getLocation(),
            desc.getClassName());
      try {
View Full Code Here

TOP

Related Classes of java.rmi.activation.ActivationGroupID

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.