| Constructor and Description |
|---|
ServiceTerminatingRunnable(org.apache.hadoop.service.Service owner,
Runnable action)
Create an instance
|
| Modifier and Type | Method and Description |
|---|---|
Exception |
getException()
Any exception raised by inner
action's run. |
org.apache.hadoop.service.Service |
getOwner()
Get the owning service
|
void |
run() |
public ServiceTerminatingRunnable(org.apache.hadoop.service.Service owner,
Runnable action)
owner - owning serviceaction - action to execute before terminating the servicepublic org.apache.hadoop.service.Service getOwner()
public Exception getException()
action's run.Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.