alnzng commented on code in PR #1636: URL: https://github.com/apache/samza/pull/1636#discussion_r1014525560
########## samza-core/src/main/java/org/apache/samza/container/host/SystemStatistics.java: ########## @@ -0,0 +1,66 @@ +/* + * 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.samza.container.host; + +import java.util.Objects; + +/** + * A {@link SystemStatistics} object represents system related information about the physical process that runs the + * {@link org.apache.samza.container.SamzaContainer}. + */ +public class SystemStatistics { + + private final ProcessCPUStatistics cpuStatistics; + private final SystemMemoryStatistics memoryStatistics; + + public SystemStatistics(ProcessCPUStatistics cpuStatistics, SystemMemoryStatistics memoryStatistics) { Review Comment: The actual logic to handle the null is inside the Listener implementaiton: https://github.com/apache/samza/pull/1636/files#diff-f79781ad4c55ae7860829b06fd9dfd15e8069c37e64f8854d8f27ca2cd1f3ee5R653 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
