MCPcopy Index your code
hub / github.com/apache/tomcat / store

Method store

java/org/apache/catalina/storeconfig/StoreConfig.java:199–214  ·  view source on GitHub ↗
(Server aServer)

Source from the content-addressed store, hash-verified

197 }
198
199 @Override
200 public synchronized boolean store(Server aServer) {
201 StoreFileMover mover =
202 new StoreFileMover(Bootstrap.getCatalinaBase(), getServerFilename(), getRegistry().getEncoding());
203 // Open an output writer for the new configuration file
204 try {
205 try (PrintWriter writer = mover.getWriter()) {
206 store(writer, -2, aServer);
207 }
208 mover.move();
209 return true;
210 } catch (Exception e) {
211 log.error(sm.getString("config.storeServerError"), e);
212 }
213 return false;
214 }
215
216 @Override
217 public synchronized boolean store(Context aContext) {

Callers 2

storeConfigMethod · 0.95
storeServerMethod · 0.95

Calls 15

getCatalinaBaseMethod · 0.95
getServerFilenameMethod · 0.95
getRegistryMethod · 0.95
getWriterMethod · 0.95
moveMethod · 0.95
isStoreSeparateMethod · 0.95
setStoreSeparateMethod · 0.95
getStoreFactoryMethod · 0.95
findDescriptionMethod · 0.80
errorMethod · 0.65
getStringMethod · 0.65
storeMethod · 0.65

Tested by

no test coverage detected