Examples of emit()


Examples of org.apache.roller.weblogger.ui.core.tags.calendar.CalendarTag.emit()

            calTag.setModel("calendarModel");
            calTag.setLocale(pageRequest.getLocaleInstance());
            if (big) {
                calTag.setClassSuffix("Big");
            }
            ret = calTag.emit();
        } catch (Exception e) {
            log.error("ERROR: initializing calendar tag",e);
        }
        return ret;
    }
View Full Code Here

Examples of org.apache.s4.fluent.PEMaker.emit()

        ageCountPE.addTrigger().fireOn(Event.class).ifInterval(100l, TimeUnit.MILLISECONDS);

        generateUserEventPE = addPE(GenerateUserEventPE.class).asSingleton();
        generateUserEventPE.addTimer().withDuration(1, TimeUnit.MILLISECONDS);

        ageCountPE.emit(CountEvent.class).onKey(new CountKeyFinder()).to(printPE);
        genderCountPE.emit(CountEvent.class).onKey(new CountKeyFinder()).to(printPE);
        userCountPE.emit(CountEvent.class).onKey(new CountKeyFinder()).to(printPE);

        generateUserEventPE.emit(UserEvent.class).onKey(new AgeKeyFinder()).to(ageCountPE);
        generateUserEventPE.emit(UserEvent.class).onKey("gender").to(genderCountPE);
View Full Code Here

Examples of org.apache.ws.notification.NotificationManager.emit()

         TerminationNotification         termNotif = termNotifDoc.addNewTerminationNotification(  );
         termNotif.setTerminationTime( Calendar.getInstance(  ) );

         try
         {
            notifMgr.emit( topicDoc,
                           XmlBeansUtils.toSOAPElement( termNotifDoc ) );
         }
         catch ( Exception e )
         {
            // TODO: what to do if we fail to emit this notification?
View Full Code Here

Examples of org.fluentd.logger.sender.RawSocketSender.emit()

        // start senders
        RawSocketSender sender = new RawSocketSender("localhost", port);
        Map<String, Object> data = new HashMap<String, Object>();
        data.put("t1k1", "t1v1");
        data.put("t1k2", "t1v2");
        sender.emit("tag.label1", timestamp, data);

        packer.write(new Event("tag.label1", timestamp, data));
        byte[] bytes1 = packer.toByteArray();
        assertArrayEquals(bytes1, sender.getBuffer());
View Full Code Here

Examples of org.neo4j.visualization.graphviz.GraphvizWriter.emit()

        tx.success();
        tx.finish();

        tx = db.beginTx();
        GraphvizWriter writer = new GraphvizWriter();
        writer.emit(System.out, Walker.fullGraph(db));
        IndexHits<Node> hits = index.get("timestamp", 123L);
        assertEquals(2, hits.size());
        hits = index.query("[122 TO 125]");
        assertEquals(3, hits.size());
View Full Code Here

Examples of org.w3c.www.http.HttpRequestMessage.emit()

      }
      HttpAcceptCharset c[] = m.getAcceptCharset();
      for (int i = 0 ; i < c.length ; i++) {
    System.out.println("accept-charset: "+c[i].getCharset());
      }
      m.emit(System.out);
  } catch (Exception ex) {
      ex.printStackTrace();
      System.out.println("MimeParser <factory> <file>");
  }
    }
View Full Code Here

Examples of org.yaml.snakeyaml.emitter.Emitter.emit()

            List<Event> document = (List<Event>) load(new EventConstructor(), content.trim());
            Writer writer = new StringWriter();
            Emitter emitter = new Emitter(writer, new DumperOptions());
            try {
                for (Event event : document) {
                    emitter.emit(event);
                }
                fail("Loading must fail for " + files[i].getAbsolutePath());
                // System.err.println("Loading must fail for " +
                // files[i].getAbsolutePath());
            } catch (Exception e) {
View Full Code Here

Examples of xbird.xquery.dm.coder.XQEventEncoder.emit()

        final XQEventEncoder encoder = new XQEventEncoder(out);
        if(remotePaing) {
            encoder.setRemotePaging(true);
        }
        try {
            encoder.emit(entity);
        } catch (XQueryException xqe) {
            throw new IllegalStateException("failed encoding", xqe);
        } catch (Throwable e) {
            LOG.fatal(PrintUtils.prettyPrintStackTrace(e));
            throw new IllegalStateException("failed encoding", e);
View Full Code Here

Examples of xbird.xquery.dm.coder.XQEventEncoder.emit()

        }

        public void writeExternal(ObjectOutput out) throws IOException {
            final XQEventEncoder encoder = new XQEventEncoder(out);
            try {
                encoder.emit(this);
            } catch (XQueryException xqe) {
                throw new XQRTException(xqe);
            } catch (Throwable e) {
                LOG.fatal(e);
                throw new IllegalStateException("failed encoding", e);
View Full Code Here

Examples of xbird.xquery.dm.coder.XQEventEncoder.emit()

                out.writeBoolean(false);
                final StopWatch sw = new StopWatch("Elapsed time for encoding `$" + getName()
                        + '\'');
                final XQEventEncoder encoder = new XQEventEncoder(out);
                try {
                    encoder.emit(result);
                } catch (XQueryException xqe) {
                    throw new IllegalStateException("failed encoding `$" + getName() + '\'', xqe);
                } catch (Throwable e) {
                    LOG.fatal(e);
                    throw new IllegalStateException("failed encoding `$" + getName() + '\'', e);
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.