Examples of addEvent()


Examples of org.apache.hadoop.yarn.api.records.timeline.TimelineEvents.addEvent()

        byte[] revStartTime = entry.getKey();
        for (EntityIdentifier entityIdentifier : entry.getValue()) {
          EventsOfOneEntity entity = new EventsOfOneEntity();
          entity.setEntityId(entityIdentifier.getId());
          entity.setEntityType(entityType);
          events.addEvent(entity);
          KeyBuilder kb = KeyBuilder.newInstance().add(ENTITY_ENTRY_PREFIX)
              .add(entityType).add(revStartTime).add(entityIdentifier.getId())
              .add(EVENTS_COLUMN);
          byte[] prefix = kb.getBytesForLookup();
          if (windowEnd == null) {
View Full Code Here

Examples of org.apache.hadoop.yarn.api.records.timeline.TimelineEvents.EventsOfOneEntity.addEvent()

              break;
            }
            TimelineEvent event = getEntityEvent(eventType, key, prefix.length,
                iterator.peekNext().getValue());
            if (event != null) {
              entity.addEvent(event);
            }
          }
        }
      }
    } finally {
View Full Code Here

Examples of org.apache.syncope.client.to.NotificationTO.addEvent()

    @Test
    public void create() {
        NotificationTO notificationTO = new NotificationTO();
        notificationTO.setTraceLevel(TraceLevel.SUMMARY);
        notificationTO.addEvent("create");

        AttributeCond fullnameLeafCond1 = new AttributeCond(AttributeCond.Type.LIKE);
        fullnameLeafCond1.setSchema("fullname");
        fullnameLeafCond1.setExpression("%o%");
        AttributeCond fullnameLeafCond2 = new AttributeCond(AttributeCond.Type.LIKE);
View Full Code Here

Examples of org.apache.syncope.common.to.NotificationTO.addEvent()

    }

    private NotificationTO buildNotificationTO() {
        NotificationTO notificationTO = new NotificationTO();
        notificationTO.setTraceLevel(TraceLevel.SUMMARY);
        notificationTO.addEvent("create");

        AttributeCond fullnameLeafCond1 = new AttributeCond(AttributeCond.Type.LIKE);
        fullnameLeafCond1.setSchema("fullname");
        fullnameLeafCond1.setExpression("%o%");
        AttributeCond fullnameLeafCond2 = new AttributeCond(AttributeCond.Type.LIKE);
View Full Code Here

Examples of org.apache.syncope.core.persistence.beans.Notification.addEvent()

    @Test
    public void notifyByMail() {
        // 1. create suitable notification for subsequent tests
        Notification notification = new Notification();
        notification.addEvent("create");

        MembershipCond membCond = new MembershipCond();
        membCond.setRoleId(7L);
        notification.setAbout(NodeCond.getLeafCond(membCond));
View Full Code Here

Examples of org.apache.uima.util.ProcessTrace.addEvent()

        synchronized (procTr) {
          List eventList = procTr.getEvents();

          for (int j = 0; eventList != null && j < eventList.size(); j++) {
            ProcessTraceEvent prEvent = (ProcessTraceEvent) eventList.get(j);
            processTrace.addEvent(prEvent);
          }
        }
        return processTrace;
      } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

Examples of org.apache.uima.util.impl.ProcessTrace_impl.addEvent()

        synchronized (procTr) {
          List eventList = procTr.getEvents();

          for (int j = 0; eventList != null && j < eventList.size(); j++) {
            ProcessTraceEvent prEvent = (ProcessTraceEvent) eventList.get(j);
            processTrace.addEvent(prEvent);
          }
        }
        return processTrace;
      } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

Examples of org.drools.jpdl.core.JpdlConnection.addEvent()

                    // TODO: transition condition, events and exception handlers
                    JpdlConnection connection = new JpdlConnection(from, transitionName, to, Node.CONNECTION_DEFAULT_TYPE);
                    Map<String, Event> events = transition.getEvents();
                    if (events != null) {
                        for (Event event : events.values()) {
                            connection.addEvent(event);
                        }
                    }
                    List<ExceptionHandler> exceptionHandlers = transition.getExceptionHandlers();
                    if (exceptionHandlers != null) {
                        for (ExceptionHandler exceptionHandler : exceptionHandlers) {
View Full Code Here

Examples of org.eclipse.bpmn2.impl.BaseElementImpl.addEvent()

          connectorInstanceBehavior.setTimeExecute(false);
        }
        if (baseElementImpl.getEvents().get(eventTypeString) == null) {
          BaseElementEventImpl flowNodeEventImpl = new BaseElementEventImpl(eventTypeString);
          flowNodeEventImpl.addConnector(connectorInstanceBehavior);
          baseElementImpl.addEvent(flowNodeEventImpl);
        } else {
          baseElementImpl.getEvents().get(eventTypeString).addConnector(connectorInstanceBehavior);
        }
        List<ConnectorParameterInputs> connectorParameterInputs = connectorInstance.getConnectorParameterInputs();
        connectorInstanceBehavior.getConnectorParameterInputs().clear();
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.conflation.VisualChangeEventConflater.addEvent()

        VisualChangeEventConflater conflater = new VisualChangeEventConflater(
                natTable);
        EventConflaterChain chain = new EventConflaterChain();
        chain.add(conflater);

        conflater.addEvent(new LayerEventFixture());
        conflater.addEvent(new LayerEventFixture());
        assertEquals(2, conflater.getCount());

        chain.start();
        Thread.sleep(EventConflaterChain.DEFAULT_INITIAL_DELAY + 100);
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.