public class DefaultPrincipalToLocal extends Object implements IPrincipalToLocal
Storm can be configured to launch worker processed as a given user. Some transports need to map the Principal to a local user name.
Constructor and Description |
---|
DefaultPrincipalToLocal() |
Modifier and Type | Method and Description |
---|---|
void |
prepare(Map<String,Object> topoConf)
Invoked once immediately after construction
|
String |
toLocal(String principal)
Convert a Principal to a local user name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toLocal
public void prepare(Map<String,Object> topoConf)
Invoked once immediately after construction
prepare
in interface IPrincipalToLocal
topoConf
- Storm configurationpublic String toLocal(String principal)
Convert a Principal to a local user name.
toLocal
in interface IPrincipalToLocal
principal
- the principal to convertCopyright © 2019 The Apache Software Foundation. All rights reserved.