HADOOP-15379. Make IrqHandler.bind() public. Contributed by Ajay Kumar
This commit is contained in:
parent
9b0b9f2af2
commit
ec1e8c1a8c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user