Skip to content

Commit

Permalink
srm: fix Copy scheduling
Browse files Browse the repository at this point in the history
Recent refactoring resulted in srmCopy operations failing with the message:

    Scheduler for class class org.dcache.srm.request.CopyRequest is not
    supported.

This patch fixes srmCopy and the error message.

Target: master
Requires-book: no
Requires-notes: no
  • Loading branch information
paulmillar committed Dec 10, 2013
1 parent 90e584f commit c547ddd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Expand Up @@ -359,6 +359,12 @@ public void proccessRequest() throws DataAccessException, IOException,
getTURLs();
}

@Override
public Class<? extends Job> getSchedulerType()
{
return Job.class;
}

private void identify() throws IOException, SRMException {
wlock();
try {
Expand Down
Expand Up @@ -89,8 +89,8 @@ private Scheduler getScheduler(Scheduler suggestion, Class<? extends Job> type)
}

if (suggestion == null) {
throw new UnsupportedOperationException("Scheduler for class " +
type + " is not supported");
throw new UnsupportedOperationException("Scheduler for " + type +
" is not supported");
}

return suggestion;
Expand Down

0 comments on commit c547ddd

Please sign in to comment.