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

Method getInstance

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

Source from the content-addressed store, hash-verified

42 private PropertyChangeSupport changes = new PropertyChangeSupport(this);
43
44 public static Database getInstance() throws Exception {
45 if (instance == null) {
46
47 instance = new Database();
48 }
49 return instance;
50 }
51
52 private static int ALERT_DB_FILE_SIZE_MB = 1536;// 1.5GB (LIMIT = 2GB)
53 private Path databaseDir = Paths.get(System.getProperty("user.home") + "/.packetproxy/db");// FileSystems.getDefault().getPath("db");

Callers 15

mainMethod · 0.95
ConfigsMethod · 0.95
propertyChangeMethod · 0.95
CharSetsMethod · 0.95
propertyChangeMethod · 0.95
PacketsMethod · 0.95
handleDatabaseMessageMethod · 0.95
InterceptOptionsMethod · 0.95
propertyChangeMethod · 0.95
ServersMethod · 0.95
propertyChangeMethod · 0.95
SSLPassThroughsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected