public abstract class NetworkObject
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
EVENT_ID_UPDATE |
static int |
EVENT_SETTINGS_UPDATE |
static int |
EVENT_STATS_UPDATE |
static int |
EVENT_STATUS_UPDATE |
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Object> |
settings |
protected java.lang.Object |
settingsLock |
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Object> |
stats |
protected java.lang.Object |
statsLock |
protected java.lang.String |
status |
static java.lang.String |
STATUS_ERROR |
static java.lang.String |
STATUS_FAILED |
static java.lang.String |
STATUS_NOTSTARTED |
static java.lang.String |
STATUS_PAUSED |
static java.lang.String |
STATUS_RUNNING |
static java.lang.String |
STATUS_TERMINATED |
static java.lang.String |
STATUS_WAITING |
protected java.lang.Object |
statusLock |
Constructor and Description |
---|
NetworkObject(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(NetworkObjectListener listener) |
void |
addListener(NetworkObjectListener listener,
boolean useInvokeLater) |
protected void |
copyFrom(NetworkObject o) |
void |
destory() |
void |
doSpeedChange() |
java.lang.Object[][] |
dumpSettings(java.lang.String[] keyOrder) |
java.lang.Object[][] |
dumpStats(java.lang.String[] keyOrder) |
java.lang.String |
getID() |
java.lang.Object |
getSetting(java.lang.String name) |
abstract char |
getShortType() |
java.lang.Object |
getStat(java.lang.String name) |
java.lang.String |
getStatus() |
abstract java.lang.String |
getType() |
void |
incrementSetting(java.lang.String name) |
void |
incrementSetting(java.lang.String name,
int by) |
void |
incrementSetting(java.lang.String name,
int by,
java.lang.Object caller) |
void |
incrementSetting(java.lang.String name,
java.lang.Object caller) |
void |
incrementStat(java.lang.String name) |
void |
incrementStat(java.lang.String name,
int by) |
void |
incrementStat(java.lang.String name,
int by,
java.lang.Object caller) |
void |
incrementStat(java.lang.String name,
java.lang.Object caller) |
protected void |
notifyListeners(java.lang.Object oldvalue,
int eventID,
java.lang.Object caller) |
void |
removeListener(NetworkObjectListener listener) |
protected void |
resetForLoad() |
abstract void |
setDefaultSettings(NetworkState ns) |
abstract void |
setDefaultStats(NetworkState ns) |
void |
setID(java.lang.String id) |
void |
setID(java.lang.String newid,
java.lang.Object caller) |
void |
setSetting(java.lang.String name,
java.lang.Object value) |
void |
setSetting(java.lang.String name,
java.lang.Object value,
java.lang.Object caller) |
void |
setStat(java.lang.String name,
java.lang.Object value) |
void |
setStat(java.lang.String name,
java.lang.Object value,
java.lang.Object caller) |
void |
setStatus(java.lang.String status) |
void |
setStatus(java.lang.String status,
java.lang.Object caller) |
java.lang.String |
toLogID() |
java.lang.String |
toString() |
public static final int EVENT_ID_UPDATE
public static final int EVENT_STATUS_UPDATE
public static final int EVENT_SETTINGS_UPDATE
public static final int EVENT_STATS_UPDATE
public static final java.lang.String STATUS_NOTSTARTED
public static final java.lang.String STATUS_WAITING
public static final java.lang.String STATUS_FAILED
public static final java.lang.String STATUS_TERMINATED
public static final java.lang.String STATUS_PAUSED
public static final java.lang.String STATUS_RUNNING
public static final java.lang.String STATUS_ERROR
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Object> settings
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Object> stats
protected transient java.lang.Object statsLock
protected transient java.lang.Object settingsLock
protected transient java.lang.String status
protected transient java.lang.Object statusLock
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public void setStatus(java.lang.String status, java.lang.Object caller)
public void incrementSetting(java.lang.String name, java.lang.Object caller)
public void incrementSetting(java.lang.String name)
public void incrementSetting(java.lang.String name, int by)
public void incrementSetting(java.lang.String name, int by, java.lang.Object caller)
public void setSetting(java.lang.String name, java.lang.Object value)
public void setSetting(java.lang.String name, java.lang.Object value, java.lang.Object caller)
public java.lang.Object getSetting(java.lang.String name)
public void setStat(java.lang.String name, java.lang.Object value)
public void setStat(java.lang.String name, java.lang.Object value, java.lang.Object caller)
public void incrementStat(java.lang.String name, java.lang.Object caller)
public void incrementStat(java.lang.String name)
public void incrementStat(java.lang.String name, int by)
public void incrementStat(java.lang.String name, int by, java.lang.Object caller)
public java.lang.Object getStat(java.lang.String name)
public abstract void setDefaultSettings(NetworkState ns)
public abstract void setDefaultStats(NetworkState ns)
public java.lang.Object[][] dumpSettings(java.lang.String[] keyOrder)
public java.lang.Object[][] dumpStats(java.lang.String[] keyOrder)
public java.lang.String getID()
public void setID(java.lang.String id)
public void setID(java.lang.String newid, java.lang.Object caller)
public void addListener(NetworkObjectListener listener)
public void addListener(NetworkObjectListener listener, boolean useInvokeLater)
public void removeListener(NetworkObjectListener listener)
protected void notifyListeners(java.lang.Object oldvalue, int eventID, java.lang.Object caller)
public abstract java.lang.String getType()
public java.lang.String toString()
toString
in class java.lang.Object
public abstract char getShortType()
public java.lang.String toLogID()
protected void copyFrom(NetworkObject o)
public void doSpeedChange()
public void destory()
protected void resetForLoad()