geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bschucha...@apache.org
Subject [geode] branch feature/GEODE-3083 updated: GEODE-3083: New protocol should record statistics
Date Wed, 13 Sep 2017 20:42:04 GMT
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


The following commit(s) were added to refs/heads/feature/GEODE-3083 by this push:
     new 4147714  GEODE-3083: New protocol should record statistics
4147714 is described below

commit 414771418d31af96ac7c5d1a1b477a9cedc45444
Author: Bruce Schuchardt <bschuchardt@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" <commits@geode.apache.org>'].

Mime
View raw message