org.ehcache.clustered.server.state.EhcacheStateService Maven / Gradle / Ivy
/*
* Copyright Terracotta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ehcache.clustered.server.state;
import org.ehcache.clustered.common.ServerSideConfiguration;
import org.ehcache.clustered.common.internal.ServerStoreConfiguration;
import org.ehcache.clustered.common.internal.exceptions.ClusterException;
import org.ehcache.clustered.common.internal.messages.EhcacheOperationMessage;
import org.ehcache.clustered.server.ServerSideServerStore;
import org.ehcache.clustered.server.repo.StateRepositoryManager;
import org.terracotta.entity.ConfigurationException;
import java.util.Map;
import java.util.Set;
public interface EhcacheStateService {
String getDefaultServerResource();
Map getSharedResourcePools();
Object getSharedResourcePageSource(String name);
ServerSideConfiguration.Pool getDedicatedResourcePool(String name);
Object getDedicatedResourcePageSource(String name);
ServerSideServerStore getStore(String name);
ServerSideServerStore loadStore(String name, ServerStoreConfiguration serverStoreConfiguration);
Set getStores();
void prepareForDestroy();
void destroy();
void validate(ServerSideConfiguration configuration) throws ClusterException;
void configure() throws ConfigurationException;
ServerSideServerStore createStore(String name, ServerStoreConfiguration serverStoreConfiguration, boolean forActive) throws ConfigurationException;
void destroyServerStore(String name) throws ClusterException;
boolean isConfigured();
StateRepositoryManager getStateRepositoryManager();
InvalidationTracker getInvalidationTracker(String name);
void loadExisting(ServerSideConfiguration configuration);
EhcacheStateContext beginProcessing(EhcacheOperationMessage message, String name);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy