@Override protected void configureModule() { add( CeConfigurationImpl.class, CeTaskLogging.class, CeDatabaseMBeanImpl.class, new JvmStateSection("Compute Engine JVM State"), new JvmPropertiesSection("Compute Engine JVM Properties"), LoggingSection.class); } }
@Test public void name_is_not_empty() { assertThat(underTest.toProtobuf().getName()).isEqualTo("Web JVM Properties"); }
new JvmPropertiesSection("Web JVM Properties"), new JvmStateSection("Web JVM State"), DbSection.class,
@Test public void system_properties_are_returned_in_alphabetical_order() { ProtobufSystemInfo.Section section = underTest.toProtobuf(); List<String> keys = section.getAttributesList() .stream() .map(ProtobufSystemInfo.Attribute::getKey) .collect(Collectors.toList()); assertThat(keys).contains("java.vm.vendor", "os.name"); List<String> sortedKeys = new ArrayList<>(keys); Collections.sort(sortedKeys); assertThat(sortedKeys).isEqualTo(keys); } }
public static Object[] forStandaloneMode() { return new Object[] { new JvmPropertiesSection("Web JVM Properties"), new JvmStateSection("Web JVM State"), DbSection.class, DbConnectionSection.class, EsStateSection.class, EsIndexesSection.class, LoggingSection.class, PluginsSection.class, SettingsSection.class, StandaloneSystemSection.class, OfficialDistribution.class, StandaloneSystemInfoWriter.class, InfoAction.class }; }
public static Object[] forClusterMode() { return new Object[] { new JvmPropertiesSection("Web JVM Properties"), new JvmStateSection("Web JVM State"), CeQueueGlobalSection.class, DbSection.class, DbConnectionSection.class, EsIndexesSection.class, EsClusterStateSection.class, GlobalSystemSection.class, LoggingSection.class, NodeSystemSection.class, PluginsSection.class, SettingsSection.class, OfficialDistribution.class, ProcessInfoProvider.class, GlobalInfoLoader.class, AppNodesInfoLoaderImpl.class, SearchNodesInfoLoaderImpl.class, ClusterSystemInfoWriter.class, InfoAction.class }; } }
@Override protected void configureModule() { add( CeConfigurationImpl.class, CeLogging.class, CeDatabaseMBeanImpl.class, new JvmStateSection("Compute Engine JVM State"), new JvmPropertiesSection("Compute Engine JVM Properties"), LoggingSection.class); } }