Examples of EventImpl


Examples of com.cloudera.flume.core.EventImpl

      // Schema error - the user tried to put a null in a field declared non-null.
      // We silently elide the entire record.
      LOG.debug("Omitting record with NULL value in non-null field: " + npe.toString());
      return;
    }
    Event out = new EventImpl(mOutputBytes.toByteArray(),
        timestamp, inEvent.getPriority(), inEvent.getNanos(), inEvent.getHost());
    AvroEventWrapper outWrapper = new AvroEventWrapper(mOutputSchema);
    outWrapper.reset(out);
    emit(outWrapper, context);
  }
View Full Code Here

Examples of com.liferay.samples.portlet.eventlisting.model.impl.EventImpl

   * @param eventId the primary key for the new event
   * @return the new event
   */
  @Override
  public Event create(long eventId) {
    Event event = new EventImpl();

    event.setNew(true);
    event.setPrimaryKey(eventId);

    return event;
  }
View Full Code Here

Examples of com.nosester.portlet.eventlisting.model.impl.EventImpl

   * @param eventId the primary key for the new event
   * @return the new event
   */
  @Override
  public Event create(long eventId) {
    Event event = new EventImpl();

    event.setNew(true);
    event.setPrimaryKey(eventId);

    return event;
  }
View Full Code Here

Examples of com.samples.portlet.eventlisting.model.impl.EventImpl

   * @param eventId the primary key for the new event
   * @return the new event
   */
  @Override
  public Event create(long eventId) {
    Event event = new EventImpl();

    event.setNew(true);
    event.setPrimaryKey(eventId);

    return event;
  }
View Full Code Here

Examples of com.sun.org.apache.xerces.internal.dom.events.EventImpl

     * @since WD-DOM-Level-2-19990923
     */
    public Event createEvent(String type)
        throws DOMException {
            if (type.equalsIgnoreCase("Events") || "Event".equals(type))
                return new EventImpl();
            if (type.equalsIgnoreCase("MutationEvents") ||
                "MutationEvent".equals(type))
                return new MutationEventImpl();
            else {
            String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null);
View Full Code Here

Examples of mf.org.apache.xerces.dom.events.EventImpl

     * @since WD-DOM-Level-2-19990923
     */
    public Event createEvent(String type) throws DOMException {
        if (type.equalsIgnoreCase("Events") ||
                "Event".equals(type)) {
            return new EventImpl();
        }
        else if (type.equalsIgnoreCase("MutationEvents") ||
                "MutationEvent".equals(type)) {
            return new MutationEventImpl();
        }
View Full Code Here

Examples of mf.org.apache.xerces.dom.events.EventImpl

    protected boolean dispatchEvent(NodeImpl node, Event event) {
        if (event == null) return false;
       
        // Can't use anyone else's implementation, since there's no public
        // API for setting the event's processing-state fields.
        EventImpl evt = (EventImpl)event;

        // VALIDATE -- must have been initialized at least once, must have
        // a non-null non-blank name.
        if (!evt.initialized || evt.type == null || evt.type.length() == 0) {
            String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "UNSPECIFIED_EVENT_TYPE_ERR", null);
            throw new EventException(EventException.UNSPECIFIED_EVENT_TYPE_ERR, msg);
        }
       
        // If nobody is listening for this event, discard immediately
        LCount lc = LCount.lookup(evt.getType());
        if (lc.total == 0)
            return evt.preventDefault;

        // INITIALIZE THE EVENT'S DISPATCH STATUS
        // (Note that Event objects are reusable in our implementation;
View Full Code Here

Examples of org.apache.ambari.server.view.events.EventImpl

  // ----- ViewController ----------------------------------------------------

  @Override
  public void fireEvent(String eventId, Map<String, String> eventProperties) {
    Event event = viewInstanceEntity == null ?
        new EventImpl(eventId, eventProperties, viewEntity) :
        new EventImpl(eventId, eventProperties, viewInstanceEntity);

    viewRegistry.fireEvent(event);
  }
View Full Code Here

Examples of org.apache.jackrabbit.core.observation.EventImpl

     */
    private Iterator consolidateEvents(EventIterator events) {
        LinkedMap eventMap = new LinkedMap();

        while (events.hasNext()) {
            EventImpl event = (EventImpl) events.nextEvent();
            HierarchyEvent he;

            try {
                he = new HierarchyEvent(event.getChildId(),
                        sysSession.getQPath(event.getPath()).getNormalizedPath(),
                        event.getType());
            } catch (MalformedPathException e) {
                log.info("Unable to get event's path: " + e.getMessage());
                continue;
            } catch (RepositoryException e) {
                log.info("Unable to get event's path: " + e.getMessage());
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.EventImpl

                info.put(name, v);
            } else {
                info.put(name, null);
            }
        }
        return new EventImpl(e.getType(), p, itemId, parentId, nodeTypeName,
                mixinTypes, e.getUserID(), e.getUserData(), e.getDate(), info);
    }
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.