public class SchemaUpgrade extends Object
| Constructor and Description |
|---|
SchemaUpgrade(Session session,
org.glowroot.common.util.Clock clock,
boolean servlet) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentSchemaVersion() |
Integer |
getInitialSchemaVersion() |
boolean |
reloadCentralConfiguration() |
void |
updateSchemaVersionToCurent() |
void |
updateToMoreRecentCassandraOptions(org.glowroot.common2.config.CentralStorageConfig storageConfig) |
void |
upgrade() |
static org.glowroot.wire.api.model.AgentConfigOuterClass.AgentConfig |
upgradeOldAgentConfig(org.glowroot.wire.api.model.AgentConfigOuterClass.AgentConfig oldAgentConfig) |
public int getCurrentSchemaVersion()
public Integer getInitialSchemaVersion()
public boolean reloadCentralConfiguration()
public void updateSchemaVersionToCurent()
throws Exception
Exceptionpublic void updateToMoreRecentCassandraOptions(org.glowroot.common2.config.CentralStorageConfig storageConfig)
throws Exception
Exceptionpublic static org.glowroot.wire.api.model.AgentConfigOuterClass.AgentConfig upgradeOldAgentConfig(org.glowroot.wire.api.model.AgentConfigOuterClass.AgentConfig oldAgentConfig)
Copyright © 2011–2019 Glowroot contributors. All rights reserved.