test_class.file: central/src/test/java/org/glowroot/central/repo/SchemaUpgradeTest.java
test_class.identifier: SchemaUpgradeTest
test_case.body: @Test
      public void shouldUpgradeMultiAgentPermissions() throws Exception {
          // given
          Set<String> permissions = ImmutableSet.of("agent:abc,mno,xyz:view");
          // when
          permissions = SchemaUpgrade.upgradePermissions(permissions);
          // then
          assertThat(Ordering.natural().sortedCopy(permissions)).containsExactly(
                  "agent:abc,mno,xyz:error", "agent:abc,mno,xyz:jvm:environment",
                  "agent:abc,mno,xyz:jvm:gauges", "agent:abc,mno,xyz:transaction");
      }
test_case.class_method_signature: SchemaUpgradeTest.shouldUpgradeMultiAgentPermissions()
test_case.full_signature: @Test public void shouldUpgradeMultiAgentPermissions()
test_case.identifier: shouldUpgradeMultiAgentPermissions
test_case.invocations: of upgradePermissions containsExactly assertThat sortedCopy natural
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldUpgradeMultiAgentPermissions()
focal_class.declarator: logger = LoggerFactory.getLogger(SchemaUpgrade.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(SchemaUpgrade.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: startupLogger = LoggerFactory.getLogger("org.glowroot")
focal_class.modifier: private static final
focal_class.original_string: private static final Logger startupLogger = LoggerFactory.getLogger("org.glowroot");
focal_class.type: Logger
focal_class.var_name: startupLogger
focal_class.declarator: mapper = ObjectMappers.create()
focal_class.modifier: private static final
focal_class.original_string: private static final ObjectMapper mapper = ObjectMappers.create();
focal_class.type: ObjectMapper
focal_class.var_name: mapper
focal_class.declarator: CURR_SCHEMA_VERSION = 90
focal_class.modifier: private static final
focal_class.original_string: private static final int CURR_SCHEMA_VERSION = 90;
focal_class.type: int
focal_class.var_name: CURR_SCHEMA_VERSION
focal_class.declarator: session
focal_class.modifier: private final
focal_class.original_string: private final Session session;
focal_class.type: Session
focal_class.var_name: session
focal_class.declarator: clock
focal_class.modifier: private final
focal_class.original_string: private final Clock clock;
focal_class.type: Clock
focal_class.var_name: clock
focal_class.declarator: servlet
focal_class.modifier: private final
focal_class.original_string: private final boolean servlet;
focal_class.type: boolean
focal_class.var_name: servlet
focal_class.declarator: insertIntoSchemVersionPS
focal_class.modifier: private final
focal_class.original_string: private final PreparedStatement insertIntoSchemVersionPS;
focal_class.type: PreparedStatement
focal_class.var_name: insertIntoSchemVersionPS
focal_class.declarator: initialSchemaVersion
focal_class.modifier: private final @Nullable
focal_class.original_string: private final @Nullable Integer initialSchemaVersion;
focal_class.type: Integer
focal_class.var_name: initialSchemaVersion
focal_class.declarator: reloadCentralConfiguration
focal_class.modifier: private
focal_class.original_string: private boolean reloadCentralConfiguration;
focal_class.type: boolean
focal_class.var_name: reloadCentralConfiguration
focal_class.file: central/src/main/java/org/glowroot/central/repo/SchemaUpgrade.java
focal_class.identifier: SchemaUpgrade
focal_class.class_method_signature: SchemaUpgrade.SchemaUpgrade(Session session, Clock clock, boolean servlet)
focal_class.full_signature: public  SchemaUpgrade(Session session, Clock clock, boolean servlet)
focal_class.identifier: SchemaUpgrade
focal_class.modifiers: public
focal_class.parameters: (Session session, Clock clock, boolean servlet)
focal_class.signature:  SchemaUpgrade(Session session, Clock clock, boolean servlet)
focal_class.class_method_signature: SchemaUpgrade.getInitialSchemaVersion()
focal_class.full_signature: public @Nullable Integer getInitialSchemaVersion()
focal_class.identifier: getInitialSchemaVersion
focal_class.modifiers: public @Nullable
focal_class.parameters: ()
focal_class.return: Integer
focal_class.signature: Integer getInitialSchemaVersion()
focal_class.class_method_signature: SchemaUpgrade.upgrade()
focal_class.full_signature: public void upgrade()
focal_class.identifier: upgrade
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void upgrade()
focal_class.class_method_signature: SchemaUpgrade.reloadCentralConfiguration()
focal_class.full_signature: public boolean reloadCentralConfiguration()
focal_class.identifier: reloadCentralConfiguration
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean reloadCentralConfiguration()
focal_class.class_method_signature: SchemaUpgrade.updateSchemaVersionToCurent()
focal_class.full_signature: public void updateSchemaVersionToCurent()
focal_class.identifier: updateSchemaVersionToCurent
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateSchemaVersionToCurent()
focal_class.class_method_signature: SchemaUpgrade.getCurrentSchemaVersion()
focal_class.full_signature: public int getCurrentSchemaVersion()
focal_class.identifier: getCurrentSchemaVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getCurrentSchemaVersion()
focal_class.class_method_signature: SchemaUpgrade.updateToMoreRecentCassandraOptions(CentralStorageConfig storageConfig)
focal_class.full_signature: public void updateToMoreRecentCassandraOptions(CentralStorageConfig storageConfig)
focal_class.identifier: updateToMoreRecentCassandraOptions
focal_class.modifiers: public
focal_class.parameters: (CentralStorageConfig storageConfig)
focal_class.return: void
focal_class.signature: void updateToMoreRecentCassandraOptions(CentralStorageConfig storageConfig)
focal_class.class_method_signature: SchemaUpgrade.updateSchemaVersion(int schemaVersion)
focal_class.full_signature: private void updateSchemaVersion(int schemaVersion)
focal_class.identifier: updateSchemaVersion
focal_class.modifiers: private
focal_class.parameters: (int schemaVersion)
focal_class.return: void
focal_class.signature: void updateSchemaVersion(int schemaVersion)
focal_class.class_method_signature: SchemaUpgrade.renameAgentColumnFromSystemInfoToEnvironment()
focal_class.full_signature: private void renameAgentColumnFromSystemInfoToEnvironment()
focal_class.identifier: renameAgentColumnFromSystemInfoToEnvironment
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void renameAgentColumnFromSystemInfoToEnvironment()
focal_class.class_method_signature: SchemaUpgrade.updateRoles()
focal_class.full_signature: private void updateRoles()
focal_class.identifier: updateRoles
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateRoles()
focal_class.class_method_signature: SchemaUpgrade.addConfigUpdateColumns()
focal_class.full_signature: private void addConfigUpdateColumns()
focal_class.identifier: addConfigUpdateColumns
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void addConfigUpdateColumns()
focal_class.class_method_signature: SchemaUpgrade.revertCompressionChunkLength()
focal_class.full_signature: private void revertCompressionChunkLength()
focal_class.identifier: revertCompressionChunkLength
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void revertCompressionChunkLength()
focal_class.class_method_signature: SchemaUpgrade.addTraceEntryColumns()
focal_class.full_signature: private void addTraceEntryColumns()
focal_class.identifier: addTraceEntryColumns
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void addTraceEntryColumns()
focal_class.class_method_signature: SchemaUpgrade.renameServerConfigTable()
focal_class.full_signature: private void renameServerConfigTable()
focal_class.identifier: renameServerConfigTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void renameServerConfigTable()
focal_class.class_method_signature: SchemaUpgrade.addAgentOneTable()
focal_class.full_signature: private void addAgentOneTable()
focal_class.identifier: addAgentOneTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void addAgentOneTable()
focal_class.class_method_signature: SchemaUpgrade.addAgentRollupColumn()
focal_class.full_signature: private void addAgentRollupColumn()
focal_class.identifier: addAgentRollupColumn
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void addAgentRollupColumn()
focal_class.class_method_signature: SchemaUpgrade.updateTwcsDtcsGcSeconds()
focal_class.full_signature: private void updateTwcsDtcsGcSeconds()
focal_class.identifier: updateTwcsDtcsGcSeconds
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateTwcsDtcsGcSeconds()
focal_class.class_method_signature: SchemaUpgrade.updateNeedsRollupGcSeconds()
focal_class.full_signature: private void updateNeedsRollupGcSeconds()
focal_class.identifier: updateNeedsRollupGcSeconds
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateNeedsRollupGcSeconds()
focal_class.class_method_signature: SchemaUpgrade.updateAgentRollup()
focal_class.full_signature: private void updateAgentRollup()
focal_class.identifier: updateAgentRollup
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateAgentRollup()
focal_class.class_method_signature: SchemaUpgrade.getAgentRollupIds(String agentRollupId)
focal_class.full_signature: private static List<String> getAgentRollupIds(String agentRollupId)
focal_class.identifier: getAgentRollupIds
focal_class.modifiers: private static
focal_class.parameters: (String agentRollupId)
focal_class.return: List<String>
focal_class.signature: List<String> getAgentRollupIds(String agentRollupId)
focal_class.class_method_signature: SchemaUpgrade.addTracePointPartialColumn()
focal_class.full_signature: private void addTracePointPartialColumn()
focal_class.identifier: addTracePointPartialColumn
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void addTracePointPartialColumn()
focal_class.class_method_signature: SchemaUpgrade.splitUpAgentTable()
focal_class.full_signature: private void splitUpAgentTable()
focal_class.identifier: splitUpAgentTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void splitUpAgentTable()
focal_class.class_method_signature: SchemaUpgrade.initialPopulationOfConfigForRollups()
focal_class.full_signature: private void initialPopulationOfConfigForRollups()
focal_class.identifier: initialPopulationOfConfigForRollups
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initialPopulationOfConfigForRollups()
focal_class.class_method_signature: SchemaUpgrade.redoOnTriggeredAlertTable()
focal_class.full_signature: private void redoOnTriggeredAlertTable()
focal_class.identifier: redoOnTriggeredAlertTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void redoOnTriggeredAlertTable()
focal_class.class_method_signature: SchemaUpgrade.addSyntheticMonitorAndAlertPermissions()
focal_class.full_signature: private void addSyntheticMonitorAndAlertPermissions()
focal_class.identifier: addSyntheticMonitorAndAlertPermissions
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void addSyntheticMonitorAndAlertPermissions()
focal_class.class_method_signature: SchemaUpgrade.updateWebConfig()
focal_class.full_signature: private void updateWebConfig()
focal_class.identifier: updateWebConfig
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateWebConfig()
focal_class.class_method_signature: SchemaUpgrade.removeInvalidAgentRollupRows()
focal_class.full_signature: private void removeInvalidAgentRollupRows()
focal_class.identifier: removeInvalidAgentRollupRows
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void removeInvalidAgentRollupRows()
focal_class.class_method_signature: SchemaUpgrade.renameConfigTable()
focal_class.full_signature: private void renameConfigTable()
focal_class.identifier: renameConfigTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void renameConfigTable()
focal_class.class_method_signature: SchemaUpgrade.upgradeAlertConfigs()
focal_class.full_signature: private void upgradeAlertConfigs()
focal_class.identifier: upgradeAlertConfigs
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void upgradeAlertConfigs()
focal_class.class_method_signature: SchemaUpgrade.addAggregateThroughputColumn()
focal_class.full_signature: private void addAggregateThroughputColumn()
focal_class.identifier: addAggregateThroughputColumn
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void addAggregateThroughputColumn()
focal_class.class_method_signature: SchemaUpgrade.updateRolePermissionName()
focal_class.full_signature: private void updateRolePermissionName()
focal_class.identifier: updateRolePermissionName
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateRolePermissionName()
focal_class.class_method_signature: SchemaUpgrade.updateSmtpConfig()
focal_class.full_signature: private void updateSmtpConfig()
focal_class.identifier: updateSmtpConfig
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateSmtpConfig()
focal_class.class_method_signature: SchemaUpgrade.addDefaultGaugeNameToUiConfigs()
focal_class.full_signature: private void addDefaultGaugeNameToUiConfigs()
focal_class.identifier: addDefaultGaugeNameToUiConfigs
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void addDefaultGaugeNameToUiConfigs()
focal_class.class_method_signature: SchemaUpgrade.sortOfFixWebConfig()
focal_class.full_signature: private void sortOfFixWebConfig()
focal_class.identifier: sortOfFixWebConfig
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void sortOfFixWebConfig()
focal_class.class_method_signature: SchemaUpgrade.redoOnHeartbeatTable()
focal_class.full_signature: private void redoOnHeartbeatTable()
focal_class.identifier: redoOnHeartbeatTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void redoOnHeartbeatTable()
focal_class.class_method_signature: SchemaUpgrade.addSyntheticResultErrorIntervalsColumn()
focal_class.full_signature: private void addSyntheticResultErrorIntervalsColumn()
focal_class.identifier: addSyntheticResultErrorIntervalsColumn
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void addSyntheticResultErrorIntervalsColumn()
focal_class.class_method_signature: SchemaUpgrade.populateGaugeNameTable()
focal_class.full_signature: private void populateGaugeNameTable()
focal_class.identifier: populateGaugeNameTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void populateGaugeNameTable()
focal_class.class_method_signature: SchemaUpgrade.populateAgentConfigGeneral()
focal_class.full_signature: private void populateAgentConfigGeneral()
focal_class.identifier: populateAgentConfigGeneral
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void populateAgentConfigGeneral()
focal_class.class_method_signature: SchemaUpgrade.populateV09AgentCheckTable()
focal_class.full_signature: private void populateV09AgentCheckTable()
focal_class.identifier: populateV09AgentCheckTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void populateV09AgentCheckTable()
focal_class.class_method_signature: SchemaUpgrade.getFullQueryTextExpirationHours()
focal_class.full_signature: private int getFullQueryTextExpirationHours()
focal_class.identifier: getFullQueryTextExpirationHours
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getFullQueryTextExpirationHours()
focal_class.class_method_signature: SchemaUpgrade.populateAgentHistoryTable()
focal_class.full_signature: private void populateAgentHistoryTable()
focal_class.identifier: populateAgentHistoryTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void populateAgentHistoryTable()
focal_class.class_method_signature: SchemaUpgrade.rewriteAgentConfigTablePart1()
focal_class.full_signature: private void rewriteAgentConfigTablePart1()
focal_class.identifier: rewriteAgentConfigTablePart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteAgentConfigTablePart1()
focal_class.class_method_signature: SchemaUpgrade.rewriteAgentConfigTablePart2()
focal_class.full_signature: private void rewriteAgentConfigTablePart2()
focal_class.identifier: rewriteAgentConfigTablePart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteAgentConfigTablePart2()
focal_class.class_method_signature: SchemaUpgrade.rewriteEnvironmentTablePart1()
focal_class.full_signature: private void rewriteEnvironmentTablePart1()
focal_class.identifier: rewriteEnvironmentTablePart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteEnvironmentTablePart1()
focal_class.class_method_signature: SchemaUpgrade.rewriteEnvironmentTablePart2()
focal_class.full_signature: private void rewriteEnvironmentTablePart2()
focal_class.identifier: rewriteEnvironmentTablePart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteEnvironmentTablePart2()
focal_class.class_method_signature: SchemaUpgrade.rewriteOpenIncidentTablePart1()
focal_class.full_signature: private void rewriteOpenIncidentTablePart1()
focal_class.identifier: rewriteOpenIncidentTablePart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteOpenIncidentTablePart1()
focal_class.class_method_signature: SchemaUpgrade.rewriteOpenIncidentTablePart2()
focal_class.full_signature: private void rewriteOpenIncidentTablePart2()
focal_class.identifier: rewriteOpenIncidentTablePart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteOpenIncidentTablePart2()
focal_class.class_method_signature: SchemaUpgrade.rewriteResolvedIncidentTablePart1()
focal_class.full_signature: private void rewriteResolvedIncidentTablePart1()
focal_class.identifier: rewriteResolvedIncidentTablePart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteResolvedIncidentTablePart1()
focal_class.class_method_signature: SchemaUpgrade.rewriteResolvedIncidentTablePart2()
focal_class.full_signature: private void rewriteResolvedIncidentTablePart2()
focal_class.identifier: rewriteResolvedIncidentTablePart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteResolvedIncidentTablePart2()
focal_class.class_method_signature: SchemaUpgrade.rewriteRoleTablePart1()
focal_class.full_signature: private void rewriteRoleTablePart1()
focal_class.identifier: rewriteRoleTablePart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteRoleTablePart1()
focal_class.class_method_signature: SchemaUpgrade.rewriteRoleTablePart2()
focal_class.full_signature: private void rewriteRoleTablePart2()
focal_class.identifier: rewriteRoleTablePart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteRoleTablePart2()
focal_class.class_method_signature: SchemaUpgrade.rewriteHeartbeatTablePart1()
focal_class.full_signature: private void rewriteHeartbeatTablePart1()
focal_class.identifier: rewriteHeartbeatTablePart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteHeartbeatTablePart1()
focal_class.class_method_signature: SchemaUpgrade.rewriteHeartbeatTablePart2()
focal_class.full_signature: private void rewriteHeartbeatTablePart2()
focal_class.identifier: rewriteHeartbeatTablePart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteHeartbeatTablePart2()
focal_class.class_method_signature: SchemaUpgrade.rewriteTransactionTypeTablePart1()
focal_class.full_signature: private void rewriteTransactionTypeTablePart1()
focal_class.identifier: rewriteTransactionTypeTablePart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteTransactionTypeTablePart1()
focal_class.class_method_signature: SchemaUpgrade.rewriteTransactionTypeTablePart2()
focal_class.full_signature: private void rewriteTransactionTypeTablePart2()
focal_class.identifier: rewriteTransactionTypeTablePart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteTransactionTypeTablePart2()
focal_class.class_method_signature: SchemaUpgrade.rewriteTraceAttributeNameTablePart1()
focal_class.full_signature: private void rewriteTraceAttributeNameTablePart1()
focal_class.identifier: rewriteTraceAttributeNameTablePart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteTraceAttributeNameTablePart1()
focal_class.class_method_signature: SchemaUpgrade.rewriteTraceAttributeNameTablePart2()
focal_class.full_signature: private void rewriteTraceAttributeNameTablePart2()
focal_class.identifier: rewriteTraceAttributeNameTablePart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteTraceAttributeNameTablePart2()
focal_class.class_method_signature: SchemaUpgrade.rewriteGaugeNameTablePart1()
focal_class.full_signature: private void rewriteGaugeNameTablePart1()
focal_class.identifier: rewriteGaugeNameTablePart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteGaugeNameTablePart1()
focal_class.class_method_signature: SchemaUpgrade.rewriteGaugeNameTablePart2()
focal_class.full_signature: private void rewriteGaugeNameTablePart2()
focal_class.identifier: rewriteGaugeNameTablePart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteGaugeNameTablePart2()
focal_class.class_method_signature: SchemaUpgrade.populateV09AgentRollupTable()
focal_class.full_signature: private void populateV09AgentRollupTable()
focal_class.identifier: populateV09AgentRollupTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void populateV09AgentRollupTable()
focal_class.class_method_signature: SchemaUpgrade.getV09AgentRollupsFromAgentRollupTable()
focal_class.full_signature: private Map<String, V09AgentRollup> getV09AgentRollupsFromAgentRollupTable()
focal_class.identifier: getV09AgentRollupsFromAgentRollupTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Map<String, V09AgentRollup>
focal_class.signature: Map<String, V09AgentRollup> getV09AgentRollupsFromAgentRollupTable()
focal_class.class_method_signature: SchemaUpgrade.finishV09AgentIdUpdate()
focal_class.full_signature: private void finishV09AgentIdUpdate()
focal_class.identifier: finishV09AgentIdUpdate
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void finishV09AgentIdUpdate()
focal_class.class_method_signature: SchemaUpgrade.removeTraceTtErrorCountPartialColumn()
focal_class.full_signature: private void removeTraceTtErrorCountPartialColumn()
focal_class.identifier: removeTraceTtErrorCountPartialColumn
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void removeTraceTtErrorCountPartialColumn()
focal_class.class_method_signature: SchemaUpgrade.removeTraceTnErrorCountPartialColumn()
focal_class.full_signature: private void removeTraceTnErrorCountPartialColumn()
focal_class.identifier: removeTraceTnErrorCountPartialColumn
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void removeTraceTnErrorCountPartialColumn()
focal_class.class_method_signature: SchemaUpgrade.populateTraceTtSlowCountAndPointPartialPart1()
focal_class.full_signature: private void populateTraceTtSlowCountAndPointPartialPart1()
focal_class.identifier: populateTraceTtSlowCountAndPointPartialPart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void populateTraceTtSlowCountAndPointPartialPart1()
focal_class.class_method_signature: SchemaUpgrade.populateTraceTtSlowCountAndPointPartialPart2()
focal_class.full_signature: private void populateTraceTtSlowCountAndPointPartialPart2()
focal_class.identifier: populateTraceTtSlowCountAndPointPartialPart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void populateTraceTtSlowCountAndPointPartialPart2()
focal_class.class_method_signature: SchemaUpgrade.populateTraceTnSlowCountAndPointPartialPart1()
focal_class.full_signature: private void populateTraceTnSlowCountAndPointPartialPart1()
focal_class.identifier: populateTraceTnSlowCountAndPointPartialPart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void populateTraceTnSlowCountAndPointPartialPart1()
focal_class.class_method_signature: SchemaUpgrade.populateTraceTnSlowCountAndPointPartialPart2()
focal_class.full_signature: private void populateTraceTnSlowCountAndPointPartialPart2()
focal_class.identifier: populateTraceTnSlowCountAndPointPartialPart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void populateTraceTnSlowCountAndPointPartialPart2()
focal_class.class_method_signature: SchemaUpgrade.updateLcsUncheckedTombstoneCompaction()
focal_class.full_signature: private void updateLcsUncheckedTombstoneCompaction()
focal_class.identifier: updateLcsUncheckedTombstoneCompaction
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateLcsUncheckedTombstoneCompaction()
focal_class.class_method_signature: SchemaUpgrade.updateStcsUncheckedTombstoneCompaction()
focal_class.full_signature: private void updateStcsUncheckedTombstoneCompaction()
focal_class.identifier: updateStcsUncheckedTombstoneCompaction
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateStcsUncheckedTombstoneCompaction()
focal_class.class_method_signature: SchemaUpgrade.optimizeTwcsTables()
focal_class.full_signature: private void optimizeTwcsTables()
focal_class.identifier: optimizeTwcsTables
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void optimizeTwcsTables()
focal_class.class_method_signature: SchemaUpgrade.changeV09TablesToLCS()
focal_class.full_signature: private void changeV09TablesToLCS()
focal_class.identifier: changeV09TablesToLCS
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void changeV09TablesToLCS()
focal_class.class_method_signature: SchemaUpgrade.updateCentralStorageConfig()
focal_class.full_signature: private void updateCentralStorageConfig()
focal_class.identifier: updateCentralStorageConfig
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateCentralStorageConfig()
focal_class.class_method_signature: SchemaUpgrade.rewriteV09AgentRollupPart1()
focal_class.full_signature: private void rewriteV09AgentRollupPart1()
focal_class.identifier: rewriteV09AgentRollupPart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteV09AgentRollupPart1()
focal_class.class_method_signature: SchemaUpgrade.rewriteV09AgentRollupPart2()
focal_class.full_signature: private void rewriteV09AgentRollupPart2()
focal_class.identifier: rewriteV09AgentRollupPart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewriteV09AgentRollupPart2()
focal_class.class_method_signature: SchemaUpgrade.updateTraceAttributeNamePartitionKeyPart1()
focal_class.full_signature: private void updateTraceAttributeNamePartitionKeyPart1()
focal_class.identifier: updateTraceAttributeNamePartitionKeyPart1
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateTraceAttributeNamePartitionKeyPart1()
focal_class.class_method_signature: SchemaUpgrade.updateTraceAttributeNamePartitionKeyPart2()
focal_class.full_signature: private void updateTraceAttributeNamePartitionKeyPart2()
focal_class.identifier: updateTraceAttributeNamePartitionKeyPart2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateTraceAttributeNamePartitionKeyPart2()
focal_class.class_method_signature: SchemaUpgrade.populateActiveAgentTable(int rollupLevel)
focal_class.full_signature: private void populateActiveAgentTable(int rollupLevel)
focal_class.identifier: populateActiveAgentTable
focal_class.modifiers: private
focal_class.parameters: (int rollupLevel)
focal_class.return: void
focal_class.signature: void populateActiveAgentTable(int rollupLevel)
focal_class.class_method_signature: SchemaUpgrade.updateRolePermissionName2()
focal_class.full_signature: private void updateRolePermissionName2()
focal_class.identifier: updateRolePermissionName2
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateRolePermissionName2()
focal_class.class_method_signature: SchemaUpgrade.updateEncryptedPasswordAttributeName()
focal_class.full_signature: private void updateEncryptedPasswordAttributeName()
focal_class.identifier: updateEncryptedPasswordAttributeName
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateEncryptedPasswordAttributeName()
focal_class.class_method_signature: SchemaUpgrade.updateEncryptedPasswordAttributeName(String key, PreparedStatement readPS,
              PreparedStatement insertPS)
focal_class.full_signature: private void updateEncryptedPasswordAttributeName(String key, PreparedStatement readPS,
              PreparedStatement insertPS)
focal_class.identifier: updateEncryptedPasswordAttributeName
focal_class.modifiers: private
focal_class.parameters: (String key, PreparedStatement readPS,
              PreparedStatement insertPS)
focal_class.return: void
focal_class.signature: void updateEncryptedPasswordAttributeName(String key, PreparedStatement readPS,
              PreparedStatement insertPS)
focal_class.class_method_signature: SchemaUpgrade.populateSyntheticMonitorIdTable()
focal_class.full_signature: private void populateSyntheticMonitorIdTable()
focal_class.identifier: populateSyntheticMonitorIdTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void populateSyntheticMonitorIdTable()
focal_class.class_method_signature: SchemaUpgrade.getSyntheticMonitorDisplays(PreparedStatement readAgentConfig,
              String agentRollupId)
focal_class.full_signature: private Map<String, String> getSyntheticMonitorDisplays(PreparedStatement readAgentConfig,
              String agentRollupId)
focal_class.identifier: getSyntheticMonitorDisplays
focal_class.modifiers: private
focal_class.parameters: (PreparedStatement readAgentConfig,
              String agentRollupId)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getSyntheticMonitorDisplays(PreparedStatement readAgentConfig,
              String agentRollupId)
focal_class.class_method_signature: SchemaUpgrade.populateAgentDisplayTable()
focal_class.full_signature: private void populateAgentDisplayTable()
focal_class.identifier: populateAgentDisplayTable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void populateAgentDisplayTable()
focal_class.class_method_signature: SchemaUpgrade.updateTraceSlowCountAndPointPartialTables()
focal_class.full_signature: private void updateTraceSlowCountAndPointPartialTables()
focal_class.identifier: updateTraceSlowCountAndPointPartialTables
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateTraceSlowCountAndPointPartialTables()
focal_class.class_method_signature: SchemaUpgrade.splitActiveAgentRollupTables(int rollupLevel)
focal_class.full_signature: private void splitActiveAgentRollupTables(int rollupLevel)
focal_class.identifier: splitActiveAgentRollupTables
focal_class.modifiers: private
focal_class.parameters: (int rollupLevel)
focal_class.return: void
focal_class.signature: void splitActiveAgentRollupTables(int rollupLevel)
focal_class.class_method_signature: SchemaUpgrade.addColumnIfNotExists(String tableName, String columnName, String cqlType)
focal_class.full_signature: private void addColumnIfNotExists(String tableName, String columnName, String cqlType)
focal_class.identifier: addColumnIfNotExists
focal_class.modifiers: private
focal_class.parameters: (String tableName, String columnName, String cqlType)
focal_class.return: void
focal_class.signature: void addColumnIfNotExists(String tableName, String columnName, String cqlType)
focal_class.class_method_signature: SchemaUpgrade.dropColumnIfExists(String tableName, String columnName)
focal_class.full_signature: private void dropColumnIfExists(String tableName, String columnName)
focal_class.identifier: dropColumnIfExists
focal_class.modifiers: private
focal_class.parameters: (String tableName, String columnName)
focal_class.return: void
focal_class.signature: void dropColumnIfExists(String tableName, String columnName)
focal_class.class_method_signature: SchemaUpgrade.tableExists(String tableName)
focal_class.full_signature: private boolean tableExists(String tableName)
focal_class.identifier: tableExists
focal_class.modifiers: private
focal_class.parameters: (String tableName)
focal_class.return: boolean
focal_class.signature: boolean tableExists(String tableName)
focal_class.class_method_signature: SchemaUpgrade.columnExists(String tableName, String columnName)
focal_class.full_signature: private boolean columnExists(String tableName, String columnName)
focal_class.identifier: columnExists
focal_class.modifiers: private
focal_class.parameters: (String tableName, String columnName)
focal_class.return: boolean
focal_class.signature: boolean columnExists(String tableName, String columnName)
focal_class.class_method_signature: SchemaUpgrade.dropTableIfExists(String tableName)
focal_class.full_signature: private void dropTableIfExists(String tableName)
focal_class.identifier: dropTableIfExists
focal_class.modifiers: private
focal_class.parameters: (String tableName)
focal_class.return: void
focal_class.signature: void dropTableIfExists(String tableName)
focal_class.class_method_signature: SchemaUpgrade.waitForSome(Queue<ListenableFuture<?>> futures)
focal_class.full_signature: private static void waitForSome(Queue<ListenableFuture<?>> futures)
focal_class.identifier: waitForSome
focal_class.modifiers: private static
focal_class.parameters: (Queue<ListenableFuture<?>> futures)
focal_class.return: void
focal_class.signature: void waitForSome(Queue<ListenableFuture<?>> futures)
focal_class.class_method_signature: SchemaUpgrade.upgradeOldAgentConfig(AgentConfig oldAgentConfig)
focal_class.full_signature: public static AgentConfig upgradeOldAgentConfig(AgentConfig oldAgentConfig)
focal_class.identifier: upgradeOldAgentConfig
focal_class.modifiers: public static
focal_class.parameters: (AgentConfig oldAgentConfig)
focal_class.return: AgentConfig
focal_class.signature: AgentConfig upgradeOldAgentConfig(AgentConfig oldAgentConfig)
focal_class.class_method_signature: SchemaUpgrade.createTransactionTimeCondition(
              OldAlertConfig oldAlertConfig)
focal_class.full_signature: private static MetricCondition createTransactionTimeCondition(
              OldAlertConfig oldAlertConfig)
focal_class.identifier: createTransactionTimeCondition
focal_class.modifiers: private static
focal_class.parameters: (
              OldAlertConfig oldAlertConfig)
focal_class.return: MetricCondition
focal_class.signature: MetricCondition createTransactionTimeCondition(
              OldAlertConfig oldAlertConfig)
focal_class.class_method_signature: SchemaUpgrade.createGaugeCondition(OldAlertConfig oldAlertConfig)
focal_class.full_signature: private static MetricCondition createGaugeCondition(OldAlertConfig oldAlertConfig)
focal_class.identifier: createGaugeCondition
focal_class.modifiers: private static
focal_class.parameters: (OldAlertConfig oldAlertConfig)
focal_class.return: MetricCondition
focal_class.signature: MetricCondition createGaugeCondition(OldAlertConfig oldAlertConfig)
focal_class.class_method_signature: SchemaUpgrade.createSyntheticMonitorCondition(
              OldAlertConfig oldAlertConfig)
focal_class.full_signature: private static SyntheticMonitorCondition createSyntheticMonitorCondition(
              OldAlertConfig oldAlertConfig)
focal_class.identifier: createSyntheticMonitorCondition
focal_class.modifiers: private static
focal_class.parameters: (
              OldAlertConfig oldAlertConfig)
focal_class.return: SyntheticMonitorCondition
focal_class.signature: SyntheticMonitorCondition createSyntheticMonitorCondition(
              OldAlertConfig oldAlertConfig)
focal_class.class_method_signature: SchemaUpgrade.createHeartbeatCondition(OldAlertConfig oldAlertConfig)
focal_class.full_signature: private static HeartbeatCondition createHeartbeatCondition(OldAlertConfig oldAlertConfig)
focal_class.identifier: createHeartbeatCondition
focal_class.modifiers: private static
focal_class.parameters: (OldAlertConfig oldAlertConfig)
focal_class.return: HeartbeatCondition
focal_class.signature: HeartbeatCondition createHeartbeatCondition(OldAlertConfig oldAlertConfig)
focal_class.class_method_signature: SchemaUpgrade.upgradePermissions(Set<String> permissions)
focal_class.full_signature: @VisibleForTesting static @Nullable Set<String> upgradePermissions(Set<String> permissions)
focal_class.identifier: upgradePermissions
focal_class.modifiers: @VisibleForTesting static @Nullable
focal_class.parameters: (Set<String> permissions)
focal_class.return: Set<String>
focal_class.signature: Set<String> upgradePermissions(Set<String> permissions)
focal_class.class_method_signature: SchemaUpgrade.upgradePermissions2(Set<String> permissions)
focal_class.full_signature: @VisibleForTesting static Set<String> upgradePermissions2(Set<String> permissions)
focal_class.identifier: upgradePermissions2
focal_class.modifiers: @VisibleForTesting static
focal_class.parameters: (Set<String> permissions)
focal_class.return: Set<String>
focal_class.signature: Set<String> upgradePermissions2(Set<String> permissions)
focal_class.class_method_signature: SchemaUpgrade.updateCentralConfigurationPropertiesFile(JsonNode webConfigNode)
focal_class.full_signature: private static boolean updateCentralConfigurationPropertiesFile(JsonNode webConfigNode)
focal_class.identifier: updateCentralConfigurationPropertiesFile
focal_class.modifiers: private static
focal_class.parameters: (JsonNode webConfigNode)
focal_class.return: boolean
focal_class.signature: boolean updateCentralConfigurationPropertiesFile(JsonNode webConfigNode)
focal_class.class_method_signature: SchemaUpgrade.getCentralStorageConfig(Session session)
focal_class.full_signature: private static CentralStorageConfig getCentralStorageConfig(Session session)
focal_class.identifier: getCentralStorageConfig
focal_class.modifiers: private static
focal_class.parameters: (Session session)
focal_class.return: CentralStorageConfig
focal_class.signature: CentralStorageConfig getCentralStorageConfig(Session session)
focal_class.class_method_signature: SchemaUpgrade.addExpirationHours(long timeInMillis, int expirationHours)
focal_class.full_signature: private static long addExpirationHours(long timeInMillis, int expirationHours)
focal_class.identifier: addExpirationHours
focal_class.modifiers: private static
focal_class.parameters: (long timeInMillis, int expirationHours)
focal_class.return: long
focal_class.signature: long addExpirationHours(long timeInMillis, int expirationHours)
focal_class.class_method_signature: SchemaUpgrade.copyString(Row row, BoundStatement boundStatement, int i)
focal_class.full_signature: private static void copyString(Row row, BoundStatement boundStatement, int i)
focal_class.identifier: copyString
focal_class.modifiers: private static
focal_class.parameters: (Row row, BoundStatement boundStatement, int i)
focal_class.return: void
focal_class.signature: void copyString(Row row, BoundStatement boundStatement, int i)
focal_class.class_method_signature: SchemaUpgrade.copyLong(Row row, BoundStatement boundStatement, int i)
focal_class.full_signature: private static void copyLong(Row row, BoundStatement boundStatement, int i)
focal_class.identifier: copyLong
focal_class.modifiers: private static
focal_class.parameters: (Row row, BoundStatement boundStatement, int i)
focal_class.return: void
focal_class.signature: void copyLong(Row row, BoundStatement boundStatement, int i)
focal_class.class_method_signature: SchemaUpgrade.copyBool(Row row, BoundStatement boundStatement, int i)
focal_class.full_signature: private static void copyBool(Row row, BoundStatement boundStatement, int i)
focal_class.identifier: copyBool
focal_class.modifiers: private static
focal_class.parameters: (Row row, BoundStatement boundStatement, int i)
focal_class.return: void
focal_class.signature: void copyBool(Row row, BoundStatement boundStatement, int i)
focal_class.class_method_signature: SchemaUpgrade.copyTimestamp(Row row, BoundStatement boundStatement, int i)
focal_class.full_signature: private static void copyTimestamp(Row row, BoundStatement boundStatement, int i)
focal_class.identifier: copyTimestamp
focal_class.modifiers: private static
focal_class.parameters: (Row row, BoundStatement boundStatement, int i)
focal_class.return: void
focal_class.signature: void copyTimestamp(Row row, BoundStatement boundStatement, int i)
focal_class.class_method_signature: SchemaUpgrade.copyBytes(Row row, BoundStatement boundStatement, int i)
focal_class.full_signature: private static void copyBytes(Row row, BoundStatement boundStatement, int i)
focal_class.identifier: copyBytes
focal_class.modifiers: private static
focal_class.parameters: (Row row, BoundStatement boundStatement, int i)
focal_class.return: void
focal_class.signature: void copyBytes(Row row, BoundStatement boundStatement, int i)
focal_class.class_method_signature: SchemaUpgrade.getSchemaVersion(Session session)
focal_class.full_signature: private static @Nullable Integer getSchemaVersion(Session session)
focal_class.identifier: getSchemaVersion
focal_class.modifiers: private static @Nullable
focal_class.parameters: (Session session)
focal_class.return: Integer
focal_class.signature: Integer getSchemaVersion(Session session)
focal_method.body: @VisibleForTesting
      static @Nullable Set<String> upgradePermissions(Set<String> permissions) {
          Set<String> updatedPermissions = new HashSet<>();
          ListMultimap<String, String> agentPermissions = ArrayListMultimap.create();
          boolean needsUpgrade = false;
          for (String permission : permissions) {
              if (permission.startsWith("agent:")) {
                  PermissionParser parser = new PermissionParser(permission);
                  parser.parse();
                  String perm = parser.getPermission();
                  agentPermissions.put(
                          PermissionParser.quoteIfNeededAndJoin(parser.getAgentRollupIds()), perm);
                  if (perm.equals("agent:view")) {
                      needsUpgrade = true;
                  }
              } else if (permission.equals("admin") || permission.startsWith("admin:")) {
                  updatedPermissions.add(permission);
              } else {
                  logger.error("unexpected permission: {}", permission);
              }
          }
          if (!needsUpgrade) {
              return null;
          }
          for (Map.Entry<String, List<String>> entry : Multimaps.asMap(agentPermissions).entrySet()) {
              List<String> perms = entry.getValue();
              PermissionParser.upgradeAgentPermissionsFrom_0_9_1_to_0_9_2(perms);
              for (String perm : perms) {
                  updatedPermissions
                          .add("agent:" + entry.getKey() + ":" + perm.substring("agent:".length()));
              }
          }
          if (updatedPermissions.contains("admin:view")
                  && updatedPermissions.contains("admin:edit")) {
              updatedPermissions.remove("admin:view");
              updatedPermissions.remove("admin:edit");
              updatedPermissions.add("admin");
          }
          return updatedPermissions;
      }
focal_method.class_method_signature: SchemaUpgrade.upgradePermissions(Set<String> permissions)
focal_method.full_signature: @VisibleForTesting static @Nullable Set<String> upgradePermissions(Set<String> permissions)
focal_method.identifier: upgradePermissions
focal_method.invocations: create startsWith parse getPermission put quoteIfNeededAndJoin getAgentRollupIds equals equals startsWith add error entrySet asMap getValue upgradeAgentPermissionsFrom_0_9_1_to_0_9_2 add getKey substring length contains contains remove remove add
focal_method.modifiers: @VisibleForTesting static @Nullable
focal_method.parameters: (Set<String> permissions)
focal_method.return: Set<String>
focal_method.signature: Set<String> upgradePermissions(Set<String> permissions)