/** * Licensed to JumpMind Inc under one or more contributor * license agreements. See the NOTICE file distributed * with this work for additional information regarding * copyright ownership. JumpMind Inc licenses this file * to you under the GNU General Public License, version 3.0 (GPLv3) * (the "License"); you may not use this file except in compliance * with the License. * * You should have received a copy of the GNU General Public License, * version 3.0 (GPLv3) along with this library; if not, see * <http://www.gnu.org/licenses/>. * * 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.jumpmind.symmetric.statistic; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; import org.jumpmind.symmetric.model.DataGap; import org.jumpmind.symmetric.model.OutgoingBatch; import org.jumpmind.symmetric.model.ProcessInfo; import org.jumpmind.symmetric.model.ProcessInfoKey; /** * This manager provides an API record statistics */ public interface IStatisticManager { public ProcessInfo newProcessInfo(ProcessInfoKey key); public List<ProcessInfo> getProcessInfos(); public List<ProcessInfo> getProcessInfosThatHaveDoneWork(); public Set<String> getNodesWithProcessesInError(); public void flush(); public void addJobStats(String jobName, long startTime, long endTime, long processedCount); public void addRouterStats(long startDataId, long endDataId, long dataReadCount, long peekAheadFillCount, List<DataGap> dataGaps, Set<String> transactions, Collection<OutgoingBatch> batches); public RouterStats getRouterStatsByBatch(Long batchId); public void removeRouterStatsByBatch(Long batchId); public void incrementDataLoadedErrors(String channelId, long count); public void incrementDataBytesLoaded(String channelId, long count); public void incrementDataLoaded(String channelId, long count); public void incrementDataBytesSent(String channelId, long count); public void incrementDataSent(String channelId, long count); public void incrementDataEventInserted(String channelId, long count); public void incrementDataExtractedErrors(String channelId, long count); public void incrementDataBytesExtracted(String channelId, long count); public void incrementDataExtracted(String channelId, long count); public void setDataUnRouted(String channelId, long count); public void incrementDataRouted(String channelId, long count); public void incrementDataSentErrors(String channelId, long count); public void incrementRestart(); public void incrementNodesPulled(long count); public void incrementNodesPushed(long count); public void incrementTotalNodesPulledTime(long count); public void incrementTotalNodesPushedTime(long count); public void incrementNodesRejected(long count); public void incrementNodesLoaded(long count); public void incrementNodesRegistered(long count); public void incrementNodesDisabled(long count); public void incrementPurgedBatchIncomingRows(long count); public void incrementPurgedBatchOutgoingRows(long count); public void incrementPurgedDataRows(long count); public void incrementPurgedDataEventRows(long count); public void incrementTriggersRemovedCount(long count); public void incrementTriggersRebuiltCount(long count); public void incrementTriggersCreatedCount(long count); public Map<String, ChannelStats> getWorkingChannelStats(); public HostStats getWorkingHostStats(); }