Package org.sonar.core.profiling

Examples of org.sonar.core.profiling.Profiling


    assertThat(searchClient.prepareHealth().toString()).isEqualTo("ES cluster health request");
  }

  @Test
  public void with_profiling_basic() {
    Profiling profiling = new Profiling(new Settings().setProperty(Profiling.CONFIG_PROFILING_LEVEL, Profiling.Level.BASIC.name()));
    SearchClient searchClient = new SearchClient(new Settings(), profiling);

    try {
      ClusterHealthRequestBuilder requestBuilder = searchClient.prepareHealth();
      requestBuilder.get();
View Full Code Here


    assertThat(searchClient.prepareCreate("new").toString()).isEqualTo("ES create index 'new'");
  }

  @Test
  public void with_profiling_basic() {
    Profiling profiling = new Profiling(new Settings().setProperty(Profiling.CONFIG_PROFILING_LEVEL, Profiling.Level.BASIC.name()));
    SearchClient searchClient = new SearchClient(new Settings(), profiling);

    try {
      CreateIndexRequestBuilder requestBuilder = searchClient.prepareCreate("new");
      requestBuilder.get();
View Full Code Here

  }

  @Test
  public void with_profiling_basic() {
    try {
      Profiling profiling = new Profiling(new Settings().setProperty(Profiling.CONFIG_PROFILING_LEVEL, Profiling.Level.BASIC.name()));
      SearchClient searchClient = new SearchClient(new Settings(), profiling);

      ClusterStateRequestBuilder requestBuilder = searchClient.prepareState();
      requestBuilder.get();
View Full Code Here

      .isEqualTo("ES put mapping request on indices 'rules' on type 'rule' with source '{\"dynamic\":false,\"_all\":{\"enabled\":false}}'");
  }

  @Test
  public void with_profiling_basic() {
    Profiling profiling = new Profiling(new Settings().setProperty(Profiling.CONFIG_PROFILING_LEVEL, Profiling.Level.BASIC.name()));
    SearchClient searchClient = new SearchClient(new Settings(), profiling);

    try {
      PutMappingRequestBuilder requestBuilder = searchClient.preparePutMapping(IndexDefinition.RULE.getIndexName())
        .setType(IndexDefinition.RULE.getIndexType())
View Full Code Here

    }
  }

  @Test
  public void with_profiling_basic() {
    Profiling profiling = new Profiling(new Settings().setProperty(Profiling.CONFIG_PROFILING_LEVEL, Profiling.Level.BASIC.name()));
    SearchClient searchClient = new SearchClient(new Settings(), profiling);

    try {
      searchClient.prepareGet()
        .setIndex(IndexDefinition.RULE.getIndexName())
View Full Code Here

    assertThat(searchClient.prepareStats().toString()).isEqualTo("ES indices stats request");
  }

  @Test
  public void with_profiling_basic() {
    Profiling profiling = new Profiling(new Settings().setProperty(Profiling.CONFIG_PROFILING_LEVEL, Profiling.Level.BASIC.name()));
    SearchClient searchClient = new SearchClient(new Settings(), profiling);

    try {
      searchClient.prepareStats(IndexDefinition.RULE.getIndexName()).get();
View Full Code Here

TOP

Related Classes of org.sonar.core.profiling.Profiling

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.