diff options
Diffstat (limited to 'lsp/org.eclipse.cdt.lsp.core/src/org/eclipse/cdt/lsp/core/cquery/IndexingProgressStats.java')
-rw-r--r-- | lsp/org.eclipse.cdt.lsp.core/src/org/eclipse/cdt/lsp/core/cquery/IndexingProgressStats.java | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/lsp/org.eclipse.cdt.lsp.core/src/org/eclipse/cdt/lsp/core/cquery/IndexingProgressStats.java b/lsp/org.eclipse.cdt.lsp.core/src/org/eclipse/cdt/lsp/core/cquery/IndexingProgressStats.java new file mode 100644 index 00000000000..bb99e305a5a --- /dev/null +++ b/lsp/org.eclipse.cdt.lsp.core/src/org/eclipse/cdt/lsp/core/cquery/IndexingProgressStats.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2018 Manish Khurana , Nathan Ridge and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + *******************************************************************************/ + +package org.eclipse.cdt.lsp.core.cquery; + +public class IndexingProgressStats { + private int indexRequestCount; + private int doIdMapCount; + private int loadPreviousIndexCount; + private int onIdMappedCount; + private int onIndexedCount; + private int activeThreads; + + public IndexingProgressStats(int indexRequestCount, int doIdMapCount, int loadPreviousIndexCount, int onIdMappedCount, + int onIndexedCount, int activeThreads) { + this.indexRequestCount = indexRequestCount; + this.doIdMapCount = doIdMapCount; + this.loadPreviousIndexCount = loadPreviousIndexCount; + this.onIdMappedCount = onIdMappedCount; + this.onIndexedCount = onIndexedCount; + this.activeThreads = activeThreads; + } + + public int getTotalJobs() { + int sum = indexRequestCount + doIdMapCount + loadPreviousIndexCount + onIdMappedCount + onIndexedCount; + return sum; + } + + public int getIndexRequestCount() { + return indexRequestCount; + } + + public int getDoIdMapCount() { + return doIdMapCount; + } + + public int getLoadPreviousIndexCount() { + return loadPreviousIndexCount; + } + + public int getOnIdMappedCount() { + return onIdMappedCount; + } + + public int getOnIndexedCount() { + return onIndexedCount; + } + + public int getActiveThreads() { + return activeThreads; + } +}
\ No newline at end of file |