jnr.posix.LinuxIoPrio Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of driver-cql-shaded Show documentation
Show all versions of driver-cql-shaded Show documentation
A Shaded CQL ActivityType driver for http://nosqlbench.io/
package jnr.posix;
public abstract class LinuxIoPrio {
public static int IOPRIO_WHO_PROCESS = 1;
public static int IOPRIO_WHO_PGRP = 2;
public static int IOPRIO_WHO_USER = 3;
public static int IOPRIO_CLASS_NONE = 0;
public static int IOPRIO_CLASS_RT = 1;
public static int IOPRIO_CLASS_BE = 2;
public static int IOPRIO_CLASS_IDLE = 3;
public static int IOPRIO_PRIO_VALUE(int _class, int data) {
return (_class << 13) | data;
}
public static int IOPRIO_PRIO_CLASS(int mask) {
return mask >> 13;
}
public static int IOPRIO_PRIO_DATA(int mask) {
return mask & 0x0f;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy