HADOOP-15379. Make IrqHandler.bind() public. Contributed by Ajay Kumar

This commit is contained in:
Bharat Viswanadham 2018-04-12 21:51:20 -07:00
parent 9b0b9f2af2
commit ec1e8c1a8c

View File

@ -86,7 +86,7 @@ public IrqHandler(String name, Interrupted handler) {
* Bind to the interrupt handler. * Bind to the interrupt handler.
* @throws IllegalArgumentException if the exception could not be set * @throws IllegalArgumentException if the exception could not be set
*/ */
void bind() { public void bind() {
Preconditions.checkState(signal == null, "Handler already bound"); Preconditions.checkState(signal == null, "Handler already bound");
try { try {
signal = new Signal(name); signal = new Signal(name);