public class Snooper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
clientStats |
private boolean |
isRunning |
private long |
minecraftStartTimeMilis |
private ISnooperInfo |
playerStatsCollector |
private int |
selfCounter |
private java.net.URL |
serverUrl |
private java.util.Map<java.lang.String,java.lang.Object> |
snooperStats |
private java.lang.Object |
syncLock |
private java.util.Timer |
threadTrigger |
private java.lang.String |
uniqueID |
Constructor and Description |
---|
Snooper(java.lang.String side,
ISnooperInfo playerStatCollector,
long startTime) |
Modifier and Type | Method and Description |
---|---|
void |
addClientStat(java.lang.String statName,
java.lang.Object statValue) |
private void |
addJvmArgsToSnooper() |
void |
addMemoryStatsToSnooper() |
private void |
addOSData() |
void |
addStatToSnooper(java.lang.String statName,
java.lang.Object statValue) |
java.util.Map<java.lang.String,java.lang.String> |
getCurrentStats() |
long |
getMinecraftStartTimeMillis() |
java.lang.String |
getUniqueID() |
boolean |
isSnooperRunning() |
void |
startSnooper() |
void |
stopSnooper() |
private final java.util.Map<java.lang.String,java.lang.Object> snooperStats
private final java.util.Map<java.lang.String,java.lang.Object> clientStats
private final java.lang.String uniqueID
private final java.net.URL serverUrl
private final ISnooperInfo playerStatsCollector
private final java.util.Timer threadTrigger
private final java.lang.Object syncLock
private final long minecraftStartTimeMilis
private boolean isRunning
private int selfCounter
public Snooper(java.lang.String side, ISnooperInfo playerStatCollector, long startTime)
public void startSnooper()
private void addOSData()
private void addJvmArgsToSnooper()
public void addMemoryStatsToSnooper()
public void addClientStat(java.lang.String statName, java.lang.Object statValue)
public void addStatToSnooper(java.lang.String statName, java.lang.Object statValue)
public java.util.Map<java.lang.String,java.lang.String> getCurrentStats()
public boolean isSnooperRunning()
public void stopSnooper()
public java.lang.String getUniqueID()
public long getMinecraftStartTimeMillis()