use of com.hazelcast.config.Config in project hazelcast by hazelcast.
the class TopicMBean method getConfig.
@ManagedAnnotation("config")
public String getConfig() {
Config config = service.instance.getConfig();
TopicConfig topicConfig = config.findTopicConfig(managedObject.getName());
return topicConfig.toString();
}
use of com.hazelcast.config.Config in project hazelcast by hazelcast.
the class MemberConfigRequest method writeResponse.
@Override
public void writeResponse(ManagementCenterService mcs, JsonObject root) {
final JsonObject result = new JsonObject();
ConfigXmlGenerator configXmlGenerator = new ConfigXmlGenerator(true);
Config config = mcs.getHazelcastInstance().getConfig();
String configXmlString = configXmlGenerator.generate(config);
result.add("configXmlString", configXmlString);
root.add("result", result);
}
use of com.hazelcast.config.Config in project hazelcast by hazelcast.
the class WriteBehindStore method getInMemoryFormat.
private static InMemoryFormat getInMemoryFormat(MapStoreContext mapStoreContext) {
MapServiceContext mapServiceContext = mapStoreContext.getMapServiceContext();
NodeEngine nodeEngine = mapServiceContext.getNodeEngine();
Config config = nodeEngine.getConfig();
String mapName = mapStoreContext.getMapName();
MapConfig mapConfig = config.findMapConfig(mapName);
return mapConfig.getInMemoryFormat();
}
use of com.hazelcast.config.Config in project hazelcast by hazelcast.
the class ExpirationManager method getInteger.
private int getInteger(String propertyName, int defaultValue) {
Config config = nodeEngine.getConfig();
String property = config.getProperty(propertyName);
return property == null ? defaultValue : parseInt(property);
}
use of com.hazelcast.config.Config in project hazelcast by hazelcast.
the class BasicMapStoreContext method setStoreImplToWritableMapStoreConfig.
private static void setStoreImplToWritableMapStoreConfig(NodeEngine nodeEngine, String mapName, Object store) {
final Config config = nodeEngine.getConfig();
// get writable config (not read-only one) from node engine.
final MapConfig mapConfig = config.getMapConfig(mapName);
final MapStoreConfig mapStoreConfig = mapConfig.getMapStoreConfig();
mapStoreConfig.setImplementation(store);
}
Aggregations