@Override public DispatchJobQueueEvent pushOwningProcess(String localProcessName) throws ProcessIdentifierException { return new DispatchJobQueueEvent(pushOwner(localProcessName), context, queue, activities); }
Integer queueSize() { return queueEvent.getQueue().size(); }
@Override public DispatchJobQueueEvent popOwningProcess() throws ProcessIdentifierException { return new DispatchJobQueueEvent(popOwner(), context, queue, activities); }
new DispatchJobQueueEvent(owningProcess, e .getContext(), queue, getActivities()));
protected void fillFromQueue() { synchronized (this) { while (queueEvent.getQueue().peek() != null && activeJobs < maximumJobs) { final IterationInternalEvent e = queueEvent .getQueue().remove(); .getIndex(), e.getContext(), ((Job) e).getData(), queueEvent .getActivities()));
@Override public void receiveJobQueue(DispatchJobQueueEvent queueEvent) { // System.out.println("Creating state for " + owningProcess); StateModel model = new StateModel(queueEvent, config.getMaximumJobs()); stateMap.put(queueEvent.getOwningProcess(), model); model.fillFromQueue(); }
new DispatchJobQueueEvent(owningProcess, queues.get(owningProcess).peek() .getContext(), queues
while (queueEvent.getQueue().peek() != null && activeJobs < maximumJobs) { final IterationInternalEvent e = queueEvent.getQueue() .remove(); .getIndex(), e.getContext(), ((Job) e).getData(), queueEvent .getActivities()));
@Override public void receiveJobQueue(DispatchJobQueueEvent queueEvent) { // System.out.println("Creating state for " + owningProcess); StateModel model = new StateModel(queueEvent, config.getMaximumJobs()); synchronized(stateMap) { stateMap.put(queueEvent.getOwningProcess(), model); } model.fillFromQueue(); }
@Override public DispatchJobQueueEvent pushOwningProcess(String localProcessName) throws ProcessIdentifierException { return new DispatchJobQueueEvent(pushOwner(localProcessName), context, queue, activities); }
@Override public DispatchJobQueueEvent popOwningProcess() throws ProcessIdentifierException { return new DispatchJobQueueEvent(popOwner(), context, queue, activities); }
new DispatchJobQueueEvent(owningProcess, queues.get(owningProcess).peek() .getContext(), queues
while (queueEvent.getQueue().peek() != null && activeJobs < maximumJobs) { final IterationInternalEvent e = queueEvent.getQueue() .remove(); .getIndex(), e.getContext(), ((Job) e).getData(), queueEvent .getActivities()));
@Override public void receiveJobQueue(DispatchJobQueueEvent queueEvent) { StateModel model = new StateModel(queueEvent, config.getMaximumJobs()); synchronized(stateMap) { stateMap.put(queueEvent.getOwningProcess(), model); } model.fillFromQueue(); }
Integer queueSize() { return queueEvent.getQueue().size(); }
@Override public DispatchJobQueueEvent pushOwningProcess(String localProcessName) throws ProcessIdentifierException { return new DispatchJobQueueEvent(pushOwner(localProcessName), context, queue, activities); }
@Override public DispatchJobQueueEvent popOwningProcess() throws ProcessIdentifierException { return new DispatchJobQueueEvent(popOwner(), context, queue, activities); }
new DispatchJobQueueEvent(owningProcess, event .getContext(), queue, getActivities()));
Integer queueSize() { return queueEvent.getQueue().size(); }
new DispatchJobQueueEvent(owningProcess, event .getContext(), queue, getActivities()));