@Override public Status saveConfiguration() { ObjectWriter objWriter = new ObjectWriter(); objWriter.write(metaCache, topologyWebFileName); return new Status(StatusCode.SUCCESS, null); }
@Override public Status persistConfiguration(List<ConfigurationObject> config, String fileName) { String destination = String.format("%s%s", ROOT, fileName); return objWriter.write(config, destination); }
public void start() { allocateCache(); retrieveCache(); objReader = new ObjectReader(); objWriter = new ObjectWriter(); }
@Override public Status persistConfiguration(List<ConfigurationObject> config, String fileName) { if (!hasBeenSaved()) { return new Status(StatusCode.NOTALLOWED, String.format("Container %s has not been saved yet", containerName)); } String destination = String.format("%s%s", root, fileName); return objWriter.write(config, destination); }
public void start() { allocateCache(); retrieveCache(); objReader = new ObjectReader(); objWriter = new ObjectWriter(); }