- return new JcrProcessThread(processesThreadGroup, modulesManager,
- (JcrExecutionProcess) process);
- }
-
- /*
- * SLC AGENT FACTORY
- */
- public SlcAgent getAgent(String uuid) {
- if (!uuid.equals(getAgentUuid()))
- throw new SlcException("Internal UUID " + getAgentUuid()
- + " is different from argument UUID " + uuid);
- return this;
- }
-
- public void pingAll(List<String> activeAgentIds) {
- ping();
+ if (process instanceof JcrProcessThread)
+ return new JcrProcessThread(processesThreadGroup, modulesManager,
+ (JcrExecutionProcess) process);
+ else
+ return super.createProcessThread(processesThreadGroup,
+ modulesManager, process);