public void beforeRun() throws Exception {
}
@Override
public void run() throws Exception {
MapService service = getService();
MapConfig oldConfig = service.getMapServiceContext().getMapContainer(mapName).getMapConfig();
MapConfig newConfig = new MapConfig(oldConfig);
newConfig.setTimeToLiveSeconds(mapConfig.getTimeToLiveSeconds());
newConfig.setMaxIdleSeconds(mapConfig.getMaxIdleSeconds());
newConfig.setEvictionPolicy(mapConfig.getEvictionPolicy());
newConfig.setEvictionPercentage(mapConfig.getEvictionPercentage());
newConfig.setMinEvictionCheckMillis(mapConfig.getMinEvictionCheckMillis());
newConfig.setReadBackupData(mapConfig.isReadBackupData());
newConfig.setBackupCount(mapConfig.getBackupCount());
newConfig.setAsyncBackupCount(mapConfig.getAsyncBackupCount());
newConfig.setMaxSizeConfig(mapConfig.getMaxSizeConfig());
service.getMapServiceContext().getMapContainer(mapName).setMapConfig(newConfig.getAsReadOnly());
}