HADOOP-6778. add isRunning() method to AbstractDelegationTokenSecretManager (for HDFS-1044)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@947203 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Boris Shkolnik 2010-05-21 22:21:13 +00:00
parent af3fef3463
commit ec1a112a1d
2 changed files with 11 additions and 0 deletions

View File

@ -3,6 +3,9 @@ Hadoop Change Log
Trunk (unreleased changes) Trunk (unreleased changes)
IMPROVEMENTS IMPROVEMENTS
HADOOP-6778. add isRunning() method to
AbstractDelegationTokenSecretManager (for HDFS-1044) (boryas)
HADOOP-6633. normalize property names for JT/NN kerberos principal HADOOP-6633. normalize property names for JT/NN kerberos principal
names in configuration (boryas) names in configuration (boryas)

View File

@ -335,6 +335,14 @@ extends AbstractDelegationTokenIdentifier>
} }
} }
/**
* is secretMgr running
* @return true if secret mgr is running
*/
public synchronized boolean isRunning() {
return running;
}
private class ExpiredTokenRemover extends Thread { private class ExpiredTokenRemover extends Thread {
private long lastMasterKeyUpdate; private long lastMasterKeyUpdate;
private long lastTokenCacheCleanup; private long lastTokenCacheCleanup;