public class InProcessCredentialStore extends com.google.common.util.concurrent.AbstractIdleService implements CredentialStore
Constructor and Description |
---|
InProcessCredentialStore() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
get(String tenantId,
String clusterId)
Get the fields for the given tenant and cluster.
|
void |
set(String tenantId,
String clusterId,
Map<String,Object> fields)
Set fields for the given tenant and cluster.
|
protected void |
shutDown() |
protected void |
startUp() |
void |
wipe()
Wipe out all fields for all tenants and all clusters.
|
void |
wipe(String tenantId,
String clusterId)
Wipe out the fields for the tenant and cluster.
|
addListener, executor, isRunning, start, startAndWait, state, stop, stopAndWait, toString
public void set(String tenantId, String clusterId, Map<String,Object> fields)
CredentialStore
set
in interface CredentialStore
tenantId
- Id of the tenantclusterId
- Id of the clusterfields
- Fields to setpublic Map<String,Object> get(String tenantId, String clusterId)
CredentialStore
get
in interface CredentialStore
tenantId
- Id of the tenantclusterId
- Id of the clusterpublic void wipe(String tenantId, String clusterId)
CredentialStore
wipe
in interface CredentialStore
tenantId
- Id of the tenantclusterId
- Id of the clusterpublic void wipe()
CredentialStore
wipe
in interface CredentialStore
protected void startUp() throws Exception
startUp
in class com.google.common.util.concurrent.AbstractIdleService
Exception
Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.