public class OpenShiftServerTemplateStorage extends Object implements KieServerTemplateStorage
| Modifier and Type | Class and Description |
|---|---|
static interface |
OpenShiftServerTemplateStorage.Cache |
static class |
OpenShiftServerTemplateStorage.SimpleInMemoryCache |
| Modifier and Type | Field and Description |
|---|---|
protected long |
cacheTTL |
protected KieServerStateOpenShiftRepository |
repo |
protected static OpenShiftServerTemplateStorage.SimpleInMemoryCache |
storageCache |
| Modifier | Constructor and Description |
|---|---|
protected |
OpenShiftServerTemplateStorage() |
protected |
OpenShiftServerTemplateStorage(KieServerStateOpenShiftRepository repo) |
| Modifier and Type | Method and Description |
|---|---|
ServerTemplate |
delete(String identifier) |
boolean |
exists(String identifier) |
static OpenShiftServerTemplateStorage |
getInstance() |
List<ServerTemplate> |
load() |
ServerTemplate |
load(String identifier) |
List<ServerTemplateKey> |
loadKeys() |
ServerTemplate |
store(ServerTemplate serverTemplate) |
ServerTemplate |
update(ServerTemplate serverTemplate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected static OpenShiftServerTemplateStorage.SimpleInMemoryCache storageCache
protected KieServerStateOpenShiftRepository repo
protected long cacheTTL
protected OpenShiftServerTemplateStorage()
protected OpenShiftServerTemplateStorage(KieServerStateOpenShiftRepository repo)
public static OpenShiftServerTemplateStorage getInstance()
public ServerTemplate store(ServerTemplate serverTemplate)
store in interface KieServerTemplateStoragepublic List<ServerTemplateKey> loadKeys()
loadKeys in interface KieServerTemplateStoragepublic List<ServerTemplate> load()
load in interface KieServerTemplateStoragepublic ServerTemplate load(String identifier)
load in interface KieServerTemplateStoragepublic boolean exists(String identifier)
exists in interface KieServerTemplateStoragepublic ServerTemplate update(ServerTemplate serverTemplate)
update in interface KieServerTemplateStoragepublic ServerTemplate delete(String identifier)
delete in interface KieServerTemplateStorageUnsupportedOperationException - when deleting an attached KieServerState.Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.