@ThreadSafe
@Service(value={org.jclouds.karaf.core.CredentialStore.class,org.apache.curator.framework.state.ConnectionStateListener.class})
public final class ZookeeperCredentialStore
extends org.jclouds.karaf.core.CredentialStore
implements org.apache.curator.framework.state.ConnectionStateListener, io.fabric8.api.scr.Validatable
CredentialStore backed by Zookeeper.
This module supports up to 100 node credential store in memory.
Credentials stored in memory will be pushed to Zookeeper when it becomes available.| Constructor and Description |
|---|
ZookeeperCredentialStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertValid() |
Map<String,org.jclouds.domain.Credentials> |
getStore()
The underlying credential store is not thread safe
Use this accessor instead of the protected 'store' field
|
boolean |
isValid() |
void |
setStore(Map<String,org.jclouds.domain.Credentials> store)
The underlying credential store is not thread safe
Use this accessor instead of the protected 'store' field
|
void |
stateChanged(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.state.ConnectionState newState) |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingpublic boolean isValid()
isValid in interface io.fabric8.api.scr.Validatablepublic void assertValid()
assertValid in interface io.fabric8.api.scr.Validatablepublic Map<String,org.jclouds.domain.Credentials> getStore()
getStore in class org.jclouds.karaf.core.CredentialStorepublic void setStore(Map<String,org.jclouds.domain.Credentials> store)
setStore in class org.jclouds.karaf.core.CredentialStorepublic void stateChanged(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.state.ConnectionState newState)
stateChanged in interface org.apache.curator.framework.state.ConnectionStateListenerCopyright © 2011–2014 Red Hat. All rights reserved.