use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project incubator-pulsar by apache.
the class LoadReport method getBottleneckResourceType.
@JsonIgnore
public ResourceType getBottleneckResourceType() {
ResourceType type = ResourceType.CPU;
double maxUsage = systemResourceUsage.cpu.percentUsage();
if (systemResourceUsage.memory.percentUsage() > maxUsage) {
maxUsage = systemResourceUsage.memory.percentUsage();
type = ResourceType.Memory;
}
if (systemResourceUsage.bandwidthIn.percentUsage() > maxUsage) {
maxUsage = systemResourceUsage.bandwidthIn.percentUsage();
type = ResourceType.BandwidthIn;
}
if (systemResourceUsage.bandwidthOut.percentUsage() > maxUsage) {
maxUsage = systemResourceUsage.bandwidthOut.percentUsage();
type = ResourceType.BandwidthOut;
}
return type;
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project incubator-pulsar by apache.
the class LoadReport method getSortedBundleStats.
@JsonIgnore
public TreeMap<String, NamespaceBundleStats> getSortedBundleStats(ResourceType resType) {
if (bundleStats == null) {
return null;
}
NamespaceBundleStatsComparator nsc = new NamespaceBundleStatsComparator(bundleStats, resType);
TreeMap<String, NamespaceBundleStats> sortedBundleStats = Maps.newTreeMap(nsc);
sortedBundleStats.putAll(bundleStats);
return sortedBundleStats;
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project neweagle-api by apgzs.
the class AuthUser method getAuthorities.
@Override
@JsonIgnore
public Collection<? extends GrantedAuthority> getAuthorities() {
Set<GrantedAuthority> authorities = new HashSet<>();
authorities.add(new SimpleGrantedAuthority(TRIP_USER_ROLE));
return authorities;
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project irida by phac-nml.
the class IridaSequenceFilePair method getForwardSequenceFile.
/**
* Get the forward oriented {@link SequenceFile}
*
* @return Forward {@link SequenceFile}
*/
@JsonIgnore
public default IridaSequenceFile getForwardSequenceFile() {
IridaSequenceFile[] pair = getFiles().toArray(new IridaSequenceFile[getFiles().size()]);
String[] filenames = { pair[0].getFile().getFileName().toString(), pair[1].getFile().getFileName().toString() };
int index = StringUtils.indexOfDifference(filenames[0], filenames[1]);
if (Stream.of(forwardMatches).anyMatch(x -> String.valueOf(filenames[0].charAt(index)).equals(x))) {
return pair[0];
} else if (Stream.of(forwardMatches).anyMatch(x -> String.valueOf(filenames[1].charAt(index)).equals(x))) {
return pair[1];
} else {
throw new NoSuchElementException();
}
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project Gaffer by gchq.
the class If method getOperations.
@Override
@JsonIgnore
public Collection<Operation> getOperations() {
final List<Operation> ops = new LinkedList<>();
if (null == conditional) {
ops.add(new OperationChain());
} else {
ops.add(OperationChain.wrap(conditional.getTransform()));
}
ops.add(OperationChain.wrap(then));
ops.add(OperationChain.wrap(otherwise));
return ops;
}
Aggregations