Class OpenShiftServerTemplateStorage
- java.lang.Object
-
- org.kie.server.controller.openshift.storage.OpenShiftServerTemplateStorage
-
- All Implemented Interfaces:
org.kie.server.controller.api.storage.KieServerTemplateStorage
public class OpenShiftServerTemplateStorage extends Object implements org.kie.server.controller.api.storage.KieServerTemplateStorage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOpenShiftServerTemplateStorage.Cachestatic classOpenShiftServerTemplateStorage.SimpleInMemoryCache
-
Field Summary
Fields Modifier and Type Field Description protected longcacheTTLprotected org.kie.server.services.openshift.impl.storage.cloud.KieServerStateOpenShiftRepositoryrepoprotected static OpenShiftServerTemplateStorage.SimpleInMemoryCachestorageCache
-
Constructor Summary
Constructors Modifier Constructor Description protectedOpenShiftServerTemplateStorage()protectedOpenShiftServerTemplateStorage(org.kie.server.services.openshift.impl.storage.cloud.KieServerStateOpenShiftRepository repo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kie.server.controller.api.model.spec.ServerTemplatedelete(String identifier)booleanexists(String identifier)static OpenShiftServerTemplateStoragegetInstance()List<org.kie.server.controller.api.model.spec.ServerTemplate>load()org.kie.server.controller.api.model.spec.ServerTemplateload(String identifier)List<org.kie.server.controller.api.model.spec.ServerTemplateKey>loadKeys()org.kie.server.controller.api.model.spec.ServerTemplatestore(org.kie.server.controller.api.model.spec.ServerTemplate serverTemplate)org.kie.server.controller.api.model.spec.ServerTemplateupdate(org.kie.server.controller.api.model.spec.ServerTemplate serverTemplate)
-
-
-
Field Detail
-
storageCache
protected static OpenShiftServerTemplateStorage.SimpleInMemoryCache storageCache
-
repo
protected org.kie.server.services.openshift.impl.storage.cloud.KieServerStateOpenShiftRepository repo
-
cacheTTL
protected long cacheTTL
-
-
Method Detail
-
getInstance
public static OpenShiftServerTemplateStorage getInstance()
-
store
public org.kie.server.controller.api.model.spec.ServerTemplate store(org.kie.server.controller.api.model.spec.ServerTemplate serverTemplate)
- Specified by:
storein interfaceorg.kie.server.controller.api.storage.KieServerTemplateStorage
-
loadKeys
public List<org.kie.server.controller.api.model.spec.ServerTemplateKey> loadKeys()
- Specified by:
loadKeysin interfaceorg.kie.server.controller.api.storage.KieServerTemplateStorage
-
load
public List<org.kie.server.controller.api.model.spec.ServerTemplate> load()
- Specified by:
loadin interfaceorg.kie.server.controller.api.storage.KieServerTemplateStorage
-
load
public org.kie.server.controller.api.model.spec.ServerTemplate load(String identifier)
- Specified by:
loadin interfaceorg.kie.server.controller.api.storage.KieServerTemplateStorage
-
exists
public boolean exists(String identifier)
- Specified by:
existsin interfaceorg.kie.server.controller.api.storage.KieServerTemplateStorage
-
update
public org.kie.server.controller.api.model.spec.ServerTemplate update(org.kie.server.controller.api.model.spec.ServerTemplate serverTemplate)
- Specified by:
updatein interfaceorg.kie.server.controller.api.storage.KieServerTemplateStorage
-
delete
public org.kie.server.controller.api.model.spec.ServerTemplate delete(String identifier)
- Specified by:
deletein interfaceorg.kie.server.controller.api.storage.KieServerTemplateStorage- Throws:
UnsupportedOperationException- when deleting an attached KieServerState.
-
-