Examples of OperationId


Examples of net.sf.katta.operation.OperationId

  @Test(timeout = 10000)
  public void testOperationWatchdog() throws Exception {
    String nodeName = "node1";
    when(_protocol.getLiveNodes()).thenReturn(Arrays.asList(nodeName));
    List<OperationId> operationIds = new ArrayList<OperationId>();
    operationIds.add(new OperationId(nodeName, "e1"));

    final MasterOperation leaderOperation = mock(MasterOperation.class);
    when(leaderOperation.execute(_context, EMPTY_LIST)).thenReturn(operationIds);
    setupExecutionInstruction(leaderOperation, ExecutionInstruction.EXECUTE);
    when(_queue.peek()).thenReturn(leaderOperation).thenAnswer(new SleepingAnswer());
View Full Code Here

Examples of net.sf.katta.operation.OperationId

  private void runLockSituation(final MasterOperation leaderOperation1, final MasterOperation leaderOperation2,
          ExecutionInstruction instruction) throws Exception, InterruptedException {
    String nodeName = "node1";
    when(_protocol.getLiveNodes()).thenReturn(Arrays.asList(nodeName));
    List<OperationId> operationIds = new ArrayList<OperationId>();
    operationIds.add(new OperationId(nodeName, "e1"));

    when(_protocol.isNodeOperationQueued(operationIds.get(0))).thenReturn(false);
    OperationWatchdog watchdog = mock(OperationWatchdog.class);
    when(_queue.moveOperationToWatching(leaderOperation1, operationIds)).thenReturn(watchdog);
View Full Code Here

Examples of org.eclipse.emf.emfstore.server.model.versioning.operations.OperationId

  public List<AbstractHistoryItem> updateHistory() {
    List<AbstractHistoryItem> newItems = new ArrayList<AbstractHistoryItem>();
    try {
      lock.acquire();

      OperationId currentOpId = null;
      if (projectSpace.getLocalChangePackage(false) != null) {
        for (AbstractOperation op : projectSpace.getLocalChangePackage(
            false).getOperations()) {

          currentOpId = op.getOperationId();
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.OperationId

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public void openFile(DataFilesInfo info) {
        OperationId opId = info.getOperationId();
        DataFileIdentifier fileId = new DataFileIdentifier(opId, tx.getID(), fileType, 1, 1);
        Worker worker = new Worker(fileId);
        worker.execute();
    }
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.OperationId

                // amounts to the first source chunk. In the case where the user has done a
                // Test Operation, however, and is currently viewing the data for another
                // chunk (the second, say), and does a Test Transformation (maybe after
                // having changed a mapping), we really need to use that chunk number in order
                // for the displayed result to make sense.
                OperationId opId = info.getOperationId();
                DataFileIdentifier fileId = new DataFileIdentifier(opId, tx.getID(), DataFileType.SOURCE, 1, 1);
                if (info.contains(fileId)) {
                    return new SourceDataIdentifier(info.getServerInfo(), info.getGuid());
                }
            }
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.OperationId

   
    private void sendUndoableEdit(OperationWrapperNode opNode,
                                  PipelineActivity activity,
                                  IntegrationEntity newContent,
                                  IntegrationEntity previousContent) {
        OperationId opId = opNode.getOperationId();
        PipelineActivityPosition pos = opNode.getPipeline().getPosition(activity);
        ActivityContentChangedEdit edit = new ActivityContentChangedEdit(
                        controller,
                        opId,
                        pos,
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.OperationId

    public OperationNodeLayoutCache(Persistor p) {
        this();
        try {
            Map<OperationId, OperationTypeCache> restored = Maps.newHashMap();
            for (Persistor cachedOpRoot : p.getChildren(CACHED_OP)) {
                OperationId opId = new OperationId(cachedOpRoot.getString(OP_ID));
                OperationTypeCache cache = new OperationTypeCache(cachedOpRoot);
                restored.put(opId, cache);
            }
            operationCaches.putAll(restored);
        } catch (RuntimeException ex) {
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.OperationId

            ErrorLog.log(OperationNodeLayoutCache.class, "Failed to restore the OperationNodeLayoutCache", ex);
        }
    }

    public void add(OperationNodeLayout layout) {
        OperationId opId = layout.getOperationNode().getOperationId();
        OperationTypeCache typeCache = operationCaches.get(opId);
        if (typeCache == null) {
            typeCache = new OperationTypeCache();
            operationCaches.put(opId, typeCache);
        }
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.OperationId

            this.activityBounds.put(pos, new Rectangle(e.getValue()));
        }
    }
   
    public OperationNodeLayoutMemento(Persistor p) {
        operationId = new OperationId(p.getString(OPERATION_ID));
        collapsed = p.getBoolean(COLLAPSED);
        opNodeBounds = PersistUtils.readBounds(p.getFirstChild(OP_NODE_BOUNDS));
        activityBounds = Maps.newHashMap();
        for (Persistor part : p.getChildren(ACTIVITY_NODE)) {
            PipelineActivityPosition pos = PipelineActivityPosition.fromString(part.getString(POSITION));
View Full Code Here

Examples of org.jitterbit.integration.data.entity.id.OperationId

    private final GraphLayoutStore layoutStore;
   
    public ViewLayoutFileAction(OperationGraphController controller) {
        super("View Layout File...");
        this.appWin = controller.getView().getWindow();
        OperationId opId = controller.getGraph().getModel().getStartNode().getOperationId();
        Operation operation = controller.getEntityLookup().getEntity(opId, Operation.class);
        this.layoutStore = new GraphLayoutFileStore(operation);
    }
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.