public class MBusDataSourceVO extends DataSourceVO<MBusDataSourceVO>
DataSourceVO.Type
Modifier and Type | Field and Description |
---|---|
private net.sf.mbus4j.Connection |
connection |
private static ExportCodes |
EVENT_CODES |
private static org.apache.commons.logging.Log |
LOG |
private static int |
SERIAL_VERSION |
private static long |
serialVersionUID |
private int |
updatePeriods |
private int |
updatePeriodType |
XID_PREFIX
Constructor and Description |
---|
MBusDataSourceVO() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEventTypes(java.util.List<EventTypeVO> eventTypes) |
protected void |
addPropertiesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list) |
protected void |
addPropertyChangesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list,
MBusDataSourceVO from) |
DataSourceRT |
createDataSourceRT() |
static MBusDataSourceVO |
createNewDataSource() |
PointLocatorVO |
createPointLocator() |
net.sf.mbus4j.Connection |
getConnection() |
com.serotonin.web.i18n.LocalizableMessage |
getConnectionDescription() |
ExportCodes |
getEventCodes() |
java.lang.String[] |
getLabels() |
DataSourceVO.Type |
getType() |
int |
getUpdatePeriods() |
int |
getUpdatePeriodType() |
boolean |
isSerialAtModem()
Helper for JSP
|
boolean |
isSerialDirect()
Helper for JSP
|
boolean |
isTcpIp()
Helper for JSP
|
void |
jsonDeserialize(com.serotonin.json.JsonReader reader,
com.serotonin.json.JsonObject json) |
void |
jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map) |
private void |
readObject(java.io.ObjectInputStream in) |
private void |
readObjectVer1(java.io.ObjectInputStream in) |
void |
setConnection(net.sf.mbus4j.Connection connection) |
void |
setUpdatePeriods(int updatePeriods) |
void |
setUpdatePeriodType(int updatePeriodType) |
void |
validate(com.serotonin.web.dwr.DwrResponseI18n response) |
private void |
writeObject(java.io.ObjectOutputStream out) |
addProperties, addPropertyChanges, copy, createDataSourceVO, createEventType, createEventType, deserializeUpdatePeriodType, generateXid, getAlarmLevel, getEventType, getEventTypes, getId, getMessage, getName, getTypeKey, getXid, isEnabled, isNew, serializeUpdatePeriodType, setAlarmLevel, setEnabled, setId, setName, setXid
private static final org.apache.commons.logging.Log LOG
private static final ExportCodes EVENT_CODES
private int updatePeriodType
private int updatePeriods
private net.sf.mbus4j.Connection connection
private static final long serialVersionUID
private static final int SERIAL_VERSION
public static MBusDataSourceVO createNewDataSource()
public DataSourceVO.Type getType()
getType
in class DataSourceVO<MBusDataSourceVO>
protected void addEventTypes(java.util.List<EventTypeVO> eventTypes)
addEventTypes
in class DataSourceVO<MBusDataSourceVO>
public com.serotonin.web.i18n.LocalizableMessage getConnectionDescription()
getConnectionDescription
in class DataSourceVO<MBusDataSourceVO>
public PointLocatorVO createPointLocator()
createPointLocator
in class DataSourceVO<MBusDataSourceVO>
public DataSourceRT createDataSourceRT()
createDataSourceRT
in class DataSourceVO<MBusDataSourceVO>
public ExportCodes getEventCodes()
getEventCodes
in class DataSourceVO<MBusDataSourceVO>
protected void addPropertiesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list)
addPropertiesImpl
in class DataSourceVO<MBusDataSourceVO>
protected void addPropertyChangesImpl(java.util.List<com.serotonin.web.i18n.LocalizableMessage> list, MBusDataSourceVO from)
addPropertyChangesImpl
in class DataSourceVO<MBusDataSourceVO>
public int getUpdatePeriodType()
public void setUpdatePeriodType(int updatePeriodType)
public int getUpdatePeriods()
public void setUpdatePeriods(int updatePeriods)
public void validate(com.serotonin.web.dwr.DwrResponseI18n response)
validate
in class DataSourceVO<MBusDataSourceVO>
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
java.io.IOException
public void jsonDeserialize(com.serotonin.json.JsonReader reader, com.serotonin.json.JsonObject json) throws com.serotonin.json.JsonException
jsonDeserialize
in interface com.serotonin.json.JsonSerializable
jsonDeserialize
in class DataSourceVO<MBusDataSourceVO>
com.serotonin.json.JsonException
public void jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map)
jsonSerialize
in interface com.serotonin.json.JsonSerializable
jsonSerialize
in class DataSourceVO<MBusDataSourceVO>
public boolean isSerialDirect()
public boolean isSerialAtModem()
public boolean isTcpIp()
public void setConnection(net.sf.mbus4j.Connection connection)
public net.sf.mbus4j.Connection getConnection()
private void readObjectVer1(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.String[] getLabels()