Package net.jini.event

Examples of net.jini.event.EventMailbox


public class AdminIFShutdownTest extends AdminIFBase {

    public void run() throws Exception {
  logger.log(Level.INFO, "Starting up " + this.getClass().toString());
  EventMailbox mb = getConfiguredMailbox();       
  Object admin = getMailboxAdmin(mb);

  //////////////////////
  // JoinAdmin Methods
  //////////////////////
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

    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

  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

         *  
         */
  logger.log(Level.INFO, "run()");
  final String serviceName = "net.jini.event.EventMailbox";

        EventMailbox mb = getConfiguredMailbox();
       
        // Kill mailbox service.
        shutdown(0);
       
  try { Thread.sleep(10000); } catch (Exception e) {;}
View Full Code Here

    private final long DURATION2 = 2*DURATION1;

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

  EventMailbox mb = getMailbox();

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

  RemoteEventListener rel = getMailboxListener(mr1);
View Full Code Here

  return mbs;
    }
   
    protected EventMailbox getMailbox() throws java.io.IOException, TestException {
  specifyServices(new Class[]{EventMailbox.class});
  EventMailbox mb = (EventMailbox)services[0];

        if (mb == null)
            throw new TestException ("Got null ref for EventMailbox service");
        logger.log(Level.INFO, "Got reference to EventMailbox service: " + mb);
View Full Code Here

            getConfig().getStringConfigVal(
    MAILBOX_PROPERTY_NAME,
    MAILBOX_IF_NAME);

  logger.log(Level.INFO, "Getting ref to {0}", mbType);
  EventMailbox mb = null;
  if (mbType.equals(MAILBOX_IF_NAME)) {
      mb = getMailbox();
  } else if (mbType.equals(PULL_MAILBOX_IF_NAME)) {
            mb = getPullMailbox();
  } else {
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 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);
  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.