@Override public String toString() { return "QueryScopeInfo{" + "scope='" + scope + '\'' + ", category='" + getCategory() + '\'' + '}'; }
@Override protected QueryScopeInfo createQueryServiceMetricInfo(CharacterFilter filter) { return parent.getQueryServiceMetricInfo(filter).copy(filter.filterCharacters(this.name)); }
@Override protected QueryScopeInfo createQueryServiceMetricInfo(CharacterFilter filter) { return parent.getQueryServiceMetricInfo(filter).copy(filter.filterCharacters(this.name)); }
@Override public String toString() { return "QueryScopeInfo{" + "scope='" + scope + '\'' + ", category='" + getCategory() + '\'' + '}'; }
@Override protected QueryScopeInfo createQueryServiceMetricInfo(CharacterFilter filter) { return parent.getQueryServiceMetricInfo(filter).copy(filter.filterCharacters(this.name)); }
@Override public String toString() { return "QueryScopeInfo{" + "scope='" + scope + '\'' + ", category='" + getCategory() + '\'' + '}'; }
@Override protected QueryScopeInfo createQueryServiceMetricInfo(CharacterFilter filter) { return parent.getQueryServiceMetricInfo(filter).copy(filter.filterCharacters(this.name)); }
/** * Currently for operator level metrics only dump certain ones to avoid large memory and GC pressure at JM side. * * @param scopeInfo metric scope * @param name metrics name * @return boolean whether the metric should be dumped */ private boolean shouldDump(QueryScopeInfo scopeInfo, String name) { if (scopeInfo.getCategory() == INFO_CATEGORY_OPERATOR) { if (name.equals(IO_NUM_TPS) || name.equals(IO_NUM_DELAY) || name.equals(IO_NUM_OPERATOR_RECORDS_IN) || name.equals(IO_NUM_OPERATOR_RECORDS_OUT)) { return true; } return false; } return true; }
private static void serializeMetricInfo(DataOutput out, QueryScopeInfo info) throws IOException { out.writeUTF(info.scope); out.writeByte(info.getCategory()); switch (info.getCategory()) { case INFO_CATEGORY_JM: break; break; default: throw new IOException("Unknown scope category: " + info.getCategory());
private static void serializeMetricInfo(DataOutput out, QueryScopeInfo info) throws IOException { out.writeUTF(info.scope); out.writeByte(info.getCategory()); switch (info.getCategory()) { case INFO_CATEGORY_JM: break; break; default: throw new IOException("Unknown scope category: " + info.getCategory());
private static void serializeMetricInfo(DataOutput out, QueryScopeInfo info) throws IOException { out.writeUTF(info.scope); out.writeByte(info.getCategory()); switch (info.getCategory()) { case INFO_CATEGORY_JM: break; break; default: throw new IOException("Unknown scope category: " + info.getCategory());
private static void serializeMetricInfo(DataOutput out, QueryScopeInfo info) throws IOException { out.writeUTF(info.scope); out.writeByte(info.getCategory()); switch (info.getCategory()) { case INFO_CATEGORY_JM: break; break; default: throw new IOException("Unknown scope category: " + info.getCategory());
switch (info.getCategory()) { case INFO_CATEGORY_JM: addMetric(jobManager.metrics, name, metric); break; default: LOG.debug("Invalid metric dump category: " + info.getCategory());
switch (info.getCategory()) { case INFO_CATEGORY_JM: addMetric(jobManager.metrics, name, metric); break; default: LOG.debug("Invalid metric dump category: " + info.getCategory());
switch (info.getCategory()) { case INFO_CATEGORY_JM: addMetric(jobManager.metrics, name, metric); break; default: LOG.debug("Invalid metric dump category: " + info.getCategory());
switch (info.getCategory()) { case INFO_CATEGORY_JM: addMetric(jobManager.metrics, name, metric); break; default: LOG.debug("Invalid metric dump category: " + info.getCategory());