You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by bs...@apache.org on 2017/09/14 14:59:35 UTC

[geode] 03/05: GEODE-3083: New protocol should record statistics

This is an automated email from the ASF dual-hosted git repository.

bschuchardt pushed a commit to branch feature/GEODE-3083
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 32af72516a6741faf13bbad317c3a69ff0d517f3
Author: Bruce Schuchardt <bs...@pivotal.io>
AuthorDate: Wed Sep 13 13:41:17 2017 -0700

    GEODE-3083: New protocol should record statistics
    
        committing the no-op stats implementation that was not added to the index
        by intellij
---
 .../statistics/NoOpProtobufStatistics.java         | 49 ++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/geode-protobuf/src/test/java/org/apache/geode/protocol/protobuf/statistics/NoOpProtobufStatistics.java b/geode-protobuf/src/test/java/org/apache/geode/protocol/protobuf/statistics/NoOpProtobufStatistics.java
new file mode 100644
index 0000000..20ec40c
--- /dev/null
+++ b/geode-protobuf/src/test/java/org/apache/geode/protocol/protobuf/statistics/NoOpProtobufStatistics.java
@@ -0,0 +1,49 @@
+/*
+ * 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.geode.protocol.protobuf.statistics;
+
+import org.apache.geode.protocol.protobuf.statistics.ProtobufClientStatistics;
+
+public class NoOpProtobufStatistics implements ProtobufClientStatistics {
+  @Override
+  public void clientConnected() {
+
+  }
+
+  @Override
+  public void clientDisconnected() {
+
+  }
+
+  @Override
+  public void messageReceived(int bytes) {
+
+  }
+
+  @Override
+  public void messageSent(int bytes) {
+
+  }
+
+  @Override
+  public void incAuthorizationViolations() {
+
+  }
+
+  @Override
+  public void incAuthenticationFailures() {
+
+  }
+}

-- 
To stop receiving notification emails like this one, please contact
"commits@geode.apache.org" <co...@geode.apache.org>.