Examples of UninterestingEntry


Examples of com.sun.jini.test.share.UninterestingEntry

            JavaSpace.class});
  Configuration c = getConfig().getConfiguration();
        final Listener listener1 = new Listener(c, true);
        final Listener listener2 = new Listener(c, false);
        final JavaSpace space = (JavaSpace) services[0];
        final Entry aEntry = new UninterestingEntry();

        // Register ill-behaved handler  and write matching entry
        EventRegistration reg = space.notify(aEntry, null, listener1,
                                             Lease.ANY, null);
  reg = (EventRegistration)
View Full Code Here

Examples of com.sun.jini.test.share.UninterestingEntry

            JavaSpace.class});
  Configuration c = getConfig().getConfiguration();
        final Listener listener1 = new Listener(c, true);
        final Listener listener2 = new Listener(c, false);
        final JavaSpace space = (JavaSpace) services[0];
        final Entry aEntry = new UninterestingEntry();

        // Register ill-behaved handler  and write matching entry
        EventRegistration reg = space.notify(aEntry, null, listener1,
                                             Lease.ANY, null);
  reg = (EventRegistration)
View Full Code Here

Examples of com.sun.jini.test.share.UninterestingEntry

            JavaSpace.class});
        prep(0);
        Lease lease = null;

        try {
            resource = new UninterestingEntry();
            lease = ((JavaSpace) services[0]).write(resource, null,
                    durationRequest);
            resourceRequested();
        } catch (Exception e) {
            throw new TestException("writing entry", e);
View Full Code Here

Examples of com.sun.jini.test.share.UninterestingEntry

     * @see LeaseGrantTestBase#parse
     */
    public void run() throws Exception {
        specifyServices(new Class[] {JavaSpace.class});
        prep(0);
        final Entry entry = new UninterestingEntry();
        EventRegistration reg;

  reg = ((JavaSpace) services[0]).notify(
      entry,
      null,
View Full Code Here

Examples of com.sun.jini.test.share.UninterestingEntry

     * @see LeaseGrantTestBase#parse
     */
    public void run() throws Exception {
        specifyServices(new Class[] {JavaSpace.class});
        prep(0);
        final Entry entry = new UninterestingEntry();
        final Lease lease;

  lease = ((JavaSpace) services[0]).write(entry, null, durationRequest);
        resourceRequested();
        addLease(lease, false);
View Full Code Here

Examples of com.sun.jini.test.share.UninterestingEntry

        // Try to get space
        final JavaSpace space = (JavaSpace) services[0];
        logger.log(Level.INFO, "Got Space");

        for (int i = 0; i < numRestarts; i++) {
      addOutriggerLease(space.write(new UninterestingEntry(), null,
            Lease.FOREVER), true);
            logger.log(Level.INFO, "Wrote UninterestingEntry");

            // Shutdown the space
            logger.log(Level.INFO, "Trying shutDown()...");

      shutdown(0);

            // Trying to re-activate and read UninterestingEntry
            logger.log(Level.INFO,
           "trying to re-activate and read UninterestingEntry");

            if (activatable) {

                // try to read the entry we wrote
                String msg = "Expected space to re-activate after shutdown.\n"
                        + "Got : ";
                Entry en = null;

    en = space.takeIfExists(new UninterestingEntry(), null, 0);

                // Check for read the entry we wrote
                if (en == null) {
                    throw new TestException(
                            "Could not get entry we wrote before shutdown");
                }
            } else {
                try {
                    space.takeIfExists(new UninterestingEntry(), null, 0);
                    throw new TestException("Space did not go away");
                } catch (RemoteException e) {
                    // This is what we are looking for
                }
            }
View Full Code Here

Examples of com.sun.jini.test.share.UninterestingEntry

        if (dotInterval < 1) {
            dotInterval = 1;
        }
        final JavaSpace space = (JavaSpace) services[0];
        final Entry aEntry = new UninterestingEntry();
        logger.log(Level.INFO, "Beginning to write test entries");
        int l = 0;

  for (; l < numberToWrite; l++) {
      addOutriggerLease(space.write(aEntry, null, Lease.ANY), true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.