Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
if (Settings.getBoolean(CommonSettings.USE_HADOOP_FLAG)) {
   ... do something including one or more hadoop calls
} else {
   ... do something else including one or more batch calls
}

with the added huge advantage that with a suitable default value, it will be intrinsically backwards compatible for our other current users.

This also means that our final implementation of ArcRepositoryClient will not implement the batch() method - or rather will have a null-implementation that always throws an exception. Our task is then to create a fully functional NetarchiveSuite which never triggers this exception because we have removed all batch calls.