Examples of ServiceEvent


Examples of net.jini.core.lookup.ServiceEvent

            super();
        }

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

Examples of net.jini.core.lookup.ServiceEvent

            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

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

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

Examples of org.jboss.gravia.runtime.ServiceEvent

        @Override
        @SuppressWarnings({ "unchecked", "rawtypes" })
        public void serviceChanged(org.osgi.framework.ServiceEvent event) {
            ServiceReference<?> sref = new ServiceReferenceAdaptor(event.getServiceReference());
            delegate.serviceChanged(new ServiceEvent(event.getType(), sref));
        }
View Full Code Here

Examples of org.nebulaframework.grid.service.event.ServiceEvent

   * @param jobId GridJobId
   *
   * @return ServiceEvent
   */
  private static ServiceEvent createJobEndEvent(String jobId) {
    ServiceEvent event = new ServiceEvent();
    event.setMessage(jobId);
    event.addType(ServiceMessageType.JOB_CANCEL);
    event.addType(ServiceMessageType.JOB_END);
    return event;
  }
View Full Code Here

Examples of org.osgi.framework.ServiceEvent

    try {
      ServiceReference [] srl = bc.getServiceReferences(null, filter);
      for(int i = 0; srl != null && i < srl.length; i++) {

        serviceChanged(new ServiceEvent(ServiceEvent.REGISTERED, srl[i]));
      }
      bc.addServiceListener(this, filter);
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.osgi.framework.ServiceEvent

  public void close() {
    bc.removeServiceListener(this);

    for(Enumeration e = logReaders.keys(); e.hasMoreElements(); ) {
      ServiceReference sr = (ServiceReference)e.nextElement();
      serviceChanged(new ServiceEvent(ServiceEvent.UNREGISTERING, sr));
    }
    logReaders.clear();
  }
View Full Code Here

Examples of org.osgi.framework.ServiceEvent

   * Get all registered SOAP services and deploy them in axis servlets
   */
  void handleRegisteredSOAPServices() throws Exception {
    ServiceReference[] srl = bc.getServiceReferences(null, null);
    for(int i = 0; srl != null && i < srl.length; i++) {
      soapServiceListener.serviceChanged(new ServiceEvent(ServiceEvent.REGISTERED, srl[i]));
    }
  }
View Full Code Here

Examples of org.osgi.framework.ServiceEvent

   
    Activator.bc.addServiceListener(httpServiceListener, filter);
   
    ServiceReference[] srl = Activator.bc.getServiceReferences(null, filter);
    for(int i = 0; srl != null && i < srl.length; i++) {
        httpServiceListener.serviceChanged(new ServiceEvent(ServiceEvent.REGISTERED,
                                                            srl[i]));
    }
  }
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.