Package net.jini.event

Examples of net.jini.event.EventMailbox


    private final long EVENT_ID2 = 2468;

    private final long MAX_WAIT = 60 * 1000;

    public void run() throws Exception {
  EventMailbox mb = getConfiguredMailbox();       
  int i = 0;

  // Register and check lease
  MailboxRegistration mr = getRegistration(mb, DURATION1);
  Lease mrl = getMailboxLease(mr);
View Full Code Here


    // in order to successfully retrieve events after the mailbox
    // has backed off.
    private final long MAX_WAIT = 3 * MINUTES;

    public void run() throws Exception {
  EventMailbox mb = getConfiguredMailbox();       
  int i = 0;

  // Register and check lease
  MailboxRegistration mr = getRegistration(mb, DURATION1);
  Lease mrl = getMailboxLease(mr);
View Full Code Here

    MAILBOX_IF_NAME);

  logger.log(Level.INFO, "Getting ref to " + mbType);
  Lease lease = null;
        if (mbType.equals(MAILBOX_IF_NAME)) {
      EventMailbox mb = getMailbox();
      logger.log(Level.INFO, "Generating a registration");
      MailboxRegistration mbr = getRegistration(mb, DURATION);
      logger.log(Level.INFO, "Getting registration lease");
      lease = getMailboxLease(mbr);
  } else if (mbType.equals(PULL_MAILBOX_IF_NAME)) {
View Full Code Here

    public void run() throws Exception {
  logger.log(Level.INFO, "Starting up " + this.getClass().toString());

        // Get Mailbox references
  EventMailbox[] mbs = getMailboxes(2);
  EventMailbox mb1 = mbs[0];
  EventMailbox mb2 = mbs[1];
  EventMailbox mb1_dup =  null;

        // Get Mailbox admin references
  Object admin1 = getMailboxAdmin(mb1);
  Object admin2 = getMailboxAdmin(mb2);
  Object admin1_dup = null;
View Full Code Here

  logger.log(Level.INFO, "Getting ref to " + mbType);
        MailboxRegistration mr = null;
  Lease mrl = null;
  if (mbType.equals(MAILBOX_IF_NAME)) {
      EventMailbox mb = getMailbox();
      mr = getRegistration(mb, DURATION);
      mrl = getMailboxLease(mr);
  } else if (mbType.equals(PULL_MAILBOX_IF_NAME)) {
            PullEventMailbox pmb = getPullMailbox();
      MailboxPullRegistration mpr = getPullRegistration(pmb, DURATION);
View Full Code Here

    private final long INVALID_DURATION_NEG = -DURATION1;
    private final long INVALID_DURATION_ZERO = 0;
    private final long VALID_DURATION_ANY = Lease.ANY;

    public void run() throws Exception {
  EventMailbox mb = getConfiguredMailbox();       

  MailboxRegistration mr1 = getRegistration(mb, DURATION1);
  checkLease(getMailboxLease(mr1), DURATION1);

  MailboxRegistration mr2 = getRegistration(mb, Lease.FOREVER);
View Full Code Here

    public void run() throws Exception {
  logger.log(Level.INFO, "Starting up " + this.getClass().toString());

  logger.log(Level.INFO, "Getting Mailbox reference");
  EventMailbox mb = getConfiguredMailbox();       
  int i = 0;

  // Register and check lease
  logger.log(Level.INFO, "Creating " + NUM_REGS + " registrations");
  MailboxRegistration[] mr =  new MailboxRegistration[NUM_REGS];
View Full Code Here

    private final long EVENT_ID = 1234;

    private final long MAX_WAIT = 60 * 1000;

    public void run() throws Exception {
  EventMailbox mb = getConfiguredMailbox();       
  int i = 0;

  // Register and check lease
  MailboxRegistration mr = getRegistration(mb, DURATION1);
  logger.log(Level.INFO, "Got registration ref {0}", mr);
View Full Code Here

    MAILBOX_IF_NAME);

  logger.log(Level.INFO, "Getting ref to " + mbType);
  Lease mrl = null;
  if (mbType.equals(MAILBOX_IF_NAME)) {
      EventMailbox mb = getMailbox();
      MailboxRegistration mr = getRegistration(mb, DURATION);
      mrl = getMailboxLease(mr);
  } else if (mbType.equals(PULL_MAILBOX_IF_NAME)) {
            PullEventMailbox mb = getPullMailbox();
      MailboxPullRegistration mr = getPullRegistration(mb, DURATION);
View Full Code Here

    private final long MAX_WAIT = 600 * 1000;

    public void run() throws Exception {
  logger.log(Level.INFO, "Starting up " + this.getClass().toString());

  EventMailbox mb = getMailbox();
  int i = 0;

  // Register and check lease
  MailboxRegistration mr = getRegistration(mb, DURATION1);
  Lease mrl = getMailboxLease(mr);
View Full Code Here

TOP

Related Classes of net.jini.event.EventMailbox

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.