MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / dropConfigs

Method dropConfigs

src/main/java/core/packetproxy/model/Database.java:105–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 }
104
105 public void dropConfigs() throws Exception {
106 firePropertyChange(DatabaseMessage.DISCONNECT_NOW);
107
108 dropTable(ListenPort.class);
109 dropTable(Server.class);
110 dropTable(Modification.class);
111 dropTable(SSLPassThrough.class);
112
113 createTable(ListenPort.class, ListenPorts.getInstance());
114 createTable(Server.class, Servers.getInstance());
115 createTable(Modification.class, Modifications.getInstance());
116 createTable(SSLPassThrough.class, SSLPassThroughs.getInstance());
117
118 firePropertyChange(DatabaseMessage.RECONNECT);
119 }
120
121 public void dropPacketTableFaster() throws Exception {
122 Path src = Paths.get(instance.databasePath.getParent().toAbsolutePath().toString() + "/tmp.sqlite3");

Callers 2

setOptionsMethod · 0.80
serveMethod · 0.80

Calls 7

firePropertyChangeMethod · 0.95
dropTableMethod · 0.95
createTableMethod · 0.95
getInstanceMethod · 0.95
getInstanceMethod · 0.95
getInstanceMethod · 0.95
getInstanceMethod · 0.95

Tested by

no test coverage detected