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,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 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,tmplAttrs,
                                                    tuple.getSrvcObj(),
                                                    tuple.getAttrObj(),
                                                    srvcEvnt.getTransition()));
            } catch (Throwable e) {
                logger.log(Level.INFO, "Unexpected exception", e);
            }
        }
View Full Code Here

                lookupListenerProxy =
                     (RemoteEventListener)lookupListenerExporter.export(this);
            }//end constructor

      public void notify(RemoteEvent evt) {
    ServiceEvent theEvent = (ServiceEvent)evt;
    notifyServiceMap( theEvent.getSource(),
          theEvent.getID(),
          theEvent.getSequenceNumber(),
          theEvent.getServiceID(),
          theEvent.getServiceItem(),
          theEvent.getTransition() );
      }//end notify
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.