@Override public TridentState setCPULoad(Number load) { _node.setCPULoad(load); return this; }
/** * Sets the Memory Load resources for the current operation. */ @Override public Stream setMemoryLoad(Number onHeap, Number offHeap) { _node.setMemoryLoad(onHeap, offHeap); return this; }
@Override public String shortString() { return super.shortString() + ", processor: " + processor + ", selfOutFields: " + selfOutFields; } }
resources.putAll(n.getResources()); } else { Map<String, Number> node_res = new HashMap<>(defaults); node_res.putAll(n.getResources()); resource_keys.addAll(nod.getResources().keySet()); ops.append("\t[ " + nod.shortString() + ", Resources Set: " + resource_keys + " ]\n"); throw new RuntimeException( "Found an operation with resources set which are not set in other operations in the group:\n" + "\t[ " + n.shortString() + " ]: " + diffset + "\n" + "Either set these resources in all other operations in the group, add a default setting, or remove the " + "setting from this operation.\n" + throw new RuntimeException( "Found an operation with resources unset which are set in other operations in the group:\n" + "\t[ " + n.shortString() + " ]: " + diffset + "\n" + "Either set these resources in all other operations in the group, add a default setting, or remove the " + "setting from all other operations.\n" +
public TridentState newStaticState(StateSpec spec) { String stateId = getUniqueStateId(); Node n = new Node(getUniqueStreamId(), null, new Fields()); n.stateInfo = new NodeStateInfo(stateId, spec); registerNode(n); return new TridentState(this, n); }
@Override public Stream addSharedMemory(SharedMemory request) { _node.addSharedMemory(request); return this; }
/** * @return the shared memory requests for the entire group */ public Set<SharedMemory> getSharedMemory() { Set<SharedMemory> ret = new HashSet<>(); for (Node n : nodes) { ret.addAll(n.getSharedMemory()); } return ret; }
resources.putAll(n.getResources()); node_res.putAll(n.getResources()); resource_keys.addAll(nod.getResources().keySet()); ops.append("\t[ " + nod.shortString() + ", Resources Set: " + resource_keys + " ]\n"); diffset.removeAll(resources.keySet()); throw new RuntimeException("Found an operation with resources set which are not set in other operations in the group:\n" + "\t[ " + n.shortString() + " ]: " + diffset + "\n" + "Either set these resources in all other operations in the group, add a default setting, or remove the setting from this operation.\n" + "The group at fault:\n" + diffset.removeAll(node_res.keySet()); throw new RuntimeException("Found an operation with resources unset which are set in other operations in the group:\n" + "\t[ " + n.shortString() + " ]: " + diffset + "\n" + "Either set these resources in all other operations in the group, add a default setting, or remove the setting from all other operations.\n" + "The group at fault:\n" +
public TridentState newStaticState(StateSpec spec) { String stateId = getUniqueStateId(); Node n = new Node(getUniqueStreamId(), null, new Fields()); n.stateInfo = new NodeStateInfo(stateId, spec); registerNode(n); return new TridentState(this, n); }
@Override public TridentState addSharedMemory(SharedMemory request) { _node.addSharedMemory(request); return this; } }
/** * Sets the Memory Load resources for the current operation. offHeap becomes default */ @Override public Stream setMemoryLoad(Number onHeap) { _node.setMemoryLoad(onHeap); return this; }
/** * Sets the CPU Load resource for the current operation */ @Override public Stream setCPULoad(Number load) { _node.setCPULoad(load); return this; }
@Override public String shortString() { return super.shortString() + ", processor: " + processor + ", selfOutFields: " + selfOutFields; } }
@Override public TridentState setMemoryLoad(Number onHeap) { _node.setMemoryLoad(onHeap); return this; }
/** * Sets the CPU Load resource for the current operation */ @Override public Stream setCPULoad(Number load) { _node.setCPULoad(load); return this; }
@Override public TridentState setMemoryLoad(Number onHeap, Number offHeap) { _node.setMemoryLoad(onHeap, offHeap); return this; }
@Override public TridentState setCPULoad(Number load) { _node.setCPULoad(load); return this; }
/** * Sets the Memory Load resources for the current operation. * offHeap becomes default */ @Override public Stream setMemoryLoad(Number onHeap) { _node.setMemoryLoad(onHeap); return this; }
/** * Sets the Memory Load resources for the current operation. */ @Override public Stream setMemoryLoad(Number onHeap, Number offHeap) { _node.setMemoryLoad(onHeap, offHeap); return this; }
@Override public TridentState setMemoryLoad(Number onHeap) { _node.setMemoryLoad(onHeap); return this; }