You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2017/08/19 12:29:17 UTC
[02/31] lucene-solr:feature/autoscaling: SOLR-11221: Fix precommit
issues.
SOLR-11221: Fix precommit issues.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/ff8b90b9
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ff8b90b9
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ff8b90b9
Branch: refs/heads/feature/autoscaling
Commit: ff8b90b9acb7685a77d3b4af14f18aedb681176f
Parents: 7aa660b
Author: Andrzej Bialecki <ab...@apache.org>
Authored: Mon Aug 14 13:10:01 2017 +0200
Committer: Andrzej Bialecki <ab...@apache.org>
Committed: Mon Aug 14 13:10:01 2017 +0200
----------------------------------------------------------------------
.../metrics/reporters/jmx/package-info.java | 21 ++++++++++++++++++++
.../reporters/SolrJmxReporterCloudTest.java | 19 +++++++++++++++---
2 files changed, 37 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ff8b90b9/solr/core/src/java/org/apache/solr/metrics/reporters/jmx/package-info.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/metrics/reporters/jmx/package-info.java b/solr/core/src/java/org/apache/solr/metrics/reporters/jmx/package-info.java
new file mode 100644
index 0000000..bd71e9c
--- /dev/null
+++ b/solr/core/src/java/org/apache/solr/metrics/reporters/jmx/package-info.java
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This package contains components that support {@link org.apache.solr.metrics.reporters.SolrJmxReporter}.
+ */
+package org.apache.solr.metrics.reporters.jmx;
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ff8b90b9/solr/core/src/test/org/apache/solr/metrics/reporters/SolrJmxReporterCloudTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/metrics/reporters/SolrJmxReporterCloudTest.java b/solr/core/src/test/org/apache/solr/metrics/reporters/SolrJmxReporterCloudTest.java
index ac7ebaf..a76f483 100644
--- a/solr/core/src/test/org/apache/solr/metrics/reporters/SolrJmxReporterCloudTest.java
+++ b/solr/core/src/test/org/apache/solr/metrics/reporters/SolrJmxReporterCloudTest.java
@@ -1,18 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.apache.solr.metrics.reporters;
import javax.management.MBeanServer;
import javax.management.MBeanServerFactory;
import javax.management.ObjectInstance;
-import javax.management.ObjectName;
import javax.management.Query;
import javax.management.QueryExp;
import java.lang.invoke.MethodHandles;
import java.lang.management.ManagementFactory;
-import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
-import java.util.concurrent.atomic.AtomicInteger;
import org.apache.solr.client.solrj.embedded.JettySolrRunner;
import org.apache.solr.client.solrj.impl.CloudSolrClient;