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 java.net.URL |
serverUrl |
private java.util.Map<java.lang.String,java.lang.Object> |
snooperStats |
private java.lang.Object |
syncLock |
private java.util.Timer |
timer |
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) |
void |
addMemoryStatsToSnooper() |
void |
addStatToSnooper(java.lang.String statName,
java.lang.Object statValue) |
long |
getMinecraftStartTimeMillis() |
java.lang.String |
getUniqueID() |
boolean |
isSnooperRunning() |
void |
start() |
void |
stop() |
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 timer
private final java.lang.Object syncLock
private final long minecraftStartTimeMilis
private boolean isRunning
public Snooper(java.lang.String side, ISnooperInfo playerStatCollector, long startTime)
public void start()
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 boolean isSnooperRunning()
public void stop()
public java.lang.String getUniqueID()
public long getMinecraftStartTimeMillis()