public final class NetworkManagementSocketTagger
extends SocketTagger
Modifier and Type | Class and Description |
---|---|
static class |
NetworkManagementSocketTagger.SocketTags |
Modifier and Type | Field and Description |
---|---|
static String |
PROP_QTAGUID_ENABLED
SystemProperties key that indicates if qtaguid bandwidth
controls have been enabled. |
Constructor and Description |
---|
NetworkManagementSocketTagger() |
Modifier and Type | Method and Description |
---|---|
static int |
getThreadSocketStatsTag() |
static void |
install() |
static int |
kernelToTag(String string)
Convert
/proc/ tag format to Integer . |
static void |
resetKernelUidStats(int uid) |
static void |
setKernelCounterSet(int uid,
int counterSet) |
static void |
setThreadSocketStatsTag(int tag) |
static void |
setThreadSocketStatsUid(int uid) |
void |
tag(FileDescriptor fd) |
void |
untag(FileDescriptor fd) |
public static final String PROP_QTAGUID_ENABLED
SystemProperties
key that indicates if qtaguid
bandwidth
controls have been enabled.public static void install()
public static void setThreadSocketStatsTag(int tag)
public static int getThreadSocketStatsTag()
public static void setThreadSocketStatsUid(int uid)
public void tag(FileDescriptor fd) throws SocketException
SocketException
public void untag(FileDescriptor fd) throws SocketException
SocketException
public static void setKernelCounterSet(int uid, int counterSet)
public static void resetKernelUidStats(int uid)
public static int kernelToTag(String string)