Package net.jini.core.lookup

Examples of net.jini.core.lookup.ServiceEvent


        public Listener() throws RemoteException {
            super();
        }
        /** Method called remotely by lookup to handle the generated event. */
        public void notify(RemoteEvent ev) {
            ServiceEvent srvcEvnt = (ServiceEvent)ev;
            evntVec.addElement(srvcEvnt);
            try {
                QATestUtils.SrvcAttrTuple tuple = (QATestUtils.SrvcAttrTuple)
                                      (srvcEvnt.getRegistrationObject().get());

                receivedTuples.addElement(new QATestUtils.SrvcAttrTuple
                                                   (srvcItems,tmplAttrs,
                                                    tuple.getSrvcObj(),
                                                    tuple.getAttrObj(),
                                                    srvcEvnt.getTransition()));
            } catch (ClassNotFoundException e) {
    logger.log(Level.INFO, "Unexpected exception", e);
            } catch (IOException e) {
    logger.log(Level.INFO, "Unexpected exception", e);
            }
View Full Code Here


        public Listener() throws RemoteException {
            super();
        }
        /** Method called remotely by lookup to handle the generated event. */
        public void notify(RemoteEvent ev) {
            ServiceEvent srvcEvnt = (ServiceEvent)ev;
            evntVec.addElement(srvcEvnt);
            try {
                QATestUtils.SrvcAttrTuple tuple = (QATestUtils.SrvcAttrTuple)
                                      (srvcEvnt.getRegistrationObject().get());

                receivedTuples.addElement(new QATestUtils.SrvcAttrTuple
                                                   (srvcItems,tmplAttrs,
                                                    tuple.getSrvcObj(),
                                                    tuple.getAttrObj(),
                                                    srvcEvnt.getTransition()));
            } catch (ClassNotFoundException e) {
                logger.log(Level.INFO, "Unexpected exception", e);
            } catch (IOException e) {
                logger.log(Level.INFO, "Unexpected exception", e);
            }
View Full Code Here

        public Listener() throws RemoteException {
            super();
        }
        /** Method called remotely by lookup to handle the generated event. */
        public void notify(RemoteEvent ev) {
            ServiceEvent srvcEvnt = (ServiceEvent)ev;
            evntVec.addElement(srvcEvnt);
            try {
                QATestUtils.SrvcAttrTuple tuple = (QATestUtils.SrvcAttrTuple)
                                      (srvcEvnt.getRegistrationObject().get());

                receivedTuples.addElement(new QATestUtils.SrvcAttrTuple
                                                   (srvcItems,modAttrs,
                                                    tuple.getSrvcObj(),
                                                    tuple.getAttrObj(),
                                                    srvcEvnt.getTransition()));
            } catch (ClassNotFoundException e) {
                logger.log(Level.INFO, "Unexpected exception", e);
            } catch (IOException e) {
                logger.log(Level.INFO, "Unexpected exception", e);
            }
View Full Code Here

        public Listener() throws RemoteException {
            super();
        }
        /** Method called remotely by lookup to handle the generated event. */
        public void notify(RemoteEvent ev) {
            ServiceEvent srvcEvnt = (ServiceEvent)ev;
            evntVec.addElement(srvcEvnt);
            try {
                QATestUtils.SrvcAttrTuple tuple = (QATestUtils.SrvcAttrTuple)
                                      (srvcEvnt.getRegistrationObject().get());

                receivedTuples.addElement(new QATestUtils.SrvcAttrTuple
                                                   (srvcItems,addAttrs,
                                                    tuple.getSrvcObj(),
                                                    tuple.getAttrObj(),
                                                    srvcEvnt.getTransition()));
            } catch (ClassNotFoundException e) {
                logger.log(Level.INFO, "Unexpected exception", e);
            } catch (IOException e) {
                logger.log(Level.INFO, "Unexpected exception", e);
            }
View Full Code Here

            super();
        }
        /** Method called remotely by lookup to handle the generated event. */
        public void notify(RemoteEvent ev) {
      try {
                ServiceEvent srvcEvnt = (ServiceEvent)ev;
                evntVec.addElement(srvcEvnt);
                    QATestUtils.SrvcAttrTuple tuple = (QATestUtils.SrvcAttrTuple)
                                          (srvcEvnt.getRegistrationObject().get());

                    receivedTuples.addElement(new QATestUtils.SrvcAttrTuple
                                                       (srvcItems,modAttrs,
                                                        tuple.getSrvcObj(),
                                                        tuple.getAttrObj(),
                                                        srvcEvnt.getTransition()));
            } catch (ClassNotFoundException e) {
    logger.log(Level.INFO, "Unexpected exception", e);
            } catch (IOException e) {
    logger.log(Level.INFO, "Unexpected exception", e);
            }
View Full Code Here

     */
    public void run() throws Exception {

  logger.log(Level.FINE, "EvntLeaseExpiration : in run() method.");

  ServiceEvent evnt = null;
  /* wait for the event lease to expire */
  try {
      long waitTime = evntLeaseDurMS + super.deltaTEvntLeaseExp;
      String message =
    "Waiting " + waitTime + " milliseconds for event lease" +
View Full Code Here

            super();
  }

        /** Method called remotely by lookup to handle the generated event. */
        public void notify(RemoteEvent ev) {
            ServiceEvent srvcEvnt = (ServiceEvent)ev;
            evntVec.addElement(srvcEvnt);
        }
View Full Code Here

        public Listener() throws RemoteException {
            super();
  }
        /** Method called remotely by lookup to handle the generated event. */
        public void notify(RemoteEvent ev) {
            ServiceEvent srvcEvnt = (ServiceEvent)ev;
            evntVec.addElement(srvcEvnt);
        }
View Full Code Here

        public Listener() throws RemoteException {
            super();
        }
        /** Method called remotely by lookup to handle the generated event. */
        public void notify(RemoteEvent ev) {
            ServiceEvent srvcEvnt = (ServiceEvent)ev;
            evntVec.addElement(srvcEvnt);
        }
View Full Code Here

        public Listener() throws RemoteException {
            super();
        }
        /** Method called remotely by lookup to handle the generated event. */
        public void notify(RemoteEvent ev) {
            ServiceEvent srvcEvnt = (ServiceEvent)ev;
            evntVec.addElement(srvcEvnt);
            try {
                QATestUtils.SrvcAttrTuple tuple = (QATestUtils.SrvcAttrTuple)
                                      (srvcEvnt.getRegistrationObject().get());

                receivedTuples.addElement(new QATestUtils.SrvcAttrTuple
                                                   (srvcItems,addAttrs,
                                                    tuple.getSrvcObj(),
                                                    tuple.getAttrObj(),
                                                    srvcEvnt.getTransition()));
            } catch (ClassNotFoundException e) {
                logger.log(Level.INFO, "Unexpected exception", e);
            } catch (IOException e) {
                logger.log(Level.INFO, "Unexpected exception", e);
            }
View Full Code Here

TOP

Related Classes of net.jini.core.lookup.ServiceEvent

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.