Skip to content
Snippets Groups Projects
Commit 356c51ec authored by ribeaudc's avatar ribeaudc
Browse files

change: - Make the shutdown hook in DataMover more robust.

SVN: 6921
parent 563bb71d
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,15 @@ public class CompoundTerminable implements ITerminable ...@@ -31,6 +31,15 @@ public class CompoundTerminable implements ITerminable
this.terminables = terminables; this.terminables = terminables;
} }
/**
* Terminates given {@link ITerminable}.
*/
protected boolean terminate(final ITerminable terminable)
{
assert terminable != null : "Unspecified ITerminable";
return terminable.terminate();
}
// //
// ITerminable // ITerminable
// //
...@@ -40,7 +49,7 @@ public class CompoundTerminable implements ITerminable ...@@ -40,7 +49,7 @@ public class CompoundTerminable implements ITerminable
boolean ok = true; boolean ok = true;
for (final ITerminable terminable : terminables) for (final ITerminable terminable : terminables)
{ {
ok = ok && terminable.terminate(); ok = ok && terminate(terminable);
} }
return ok; return ok;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment