public abstract class Device<D extends Device<D,T>,T extends DeviceType> extends Entity implements TreeNode<D>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<D> |
children |
protected java.lang.String |
comment |
protected java.lang.String |
config |
protected java.util.Date |
dateFrom |
protected java.util.Date |
dateTo |
protected java.util.Set<java.lang.Integer> |
deviceGroupIds |
protected T |
deviceType |
protected int |
deviceTypeId |
protected java.lang.String |
host |
protected java.lang.String |
identifier |
protected boolean |
orderManagerDisabled |
protected int |
parentId |
protected java.lang.String |
secret |
protected java.lang.String |
uptime |
protected java.util.Date |
uptimeTime |
entitySpecId
Constructor and Description |
---|
Device() |
Modifier and Type | Method and Description |
---|---|
D[] |
findCodePath(int pid) |
static java.lang.String |
generateTitle(Device<?,?> device,
DeviceType type) |
static java.lang.String |
generateTitle(java.lang.String identifier,
java.lang.String host,
java.lang.String type) |
java.util.List<D> |
getChildren() |
java.lang.String |
getComment() |
java.lang.String |
getConfig() |
java.util.Date |
getDateFrom() |
java.util.Date |
getDateTo() |
java.util.Set<java.lang.Integer> |
getDeviceGroupIds() |
T |
getDeviceType() |
int |
getDeviceTypeId() |
java.lang.String |
getHost() |
java.util.List<java.net.InetSocketAddress> |
getHosts() |
java.util.List<java.lang.String[]> |
getHostsAsString() |
java.lang.String |
getIdentifier() |
int |
getParentId() |
java.lang.String |
getPassword() |
java.lang.String |
getSecret() |
java.lang.String |
getUptime() |
java.util.Date |
getUptimeTime() |
java.lang.String |
getUsername() |
boolean |
isOrderManagerDisabled() |
static void |
main(java.lang.String[] args) |
void |
setChildren(java.util.List<D> children) |
void |
setComment(java.lang.String comment) |
void |
setConfig(java.lang.String config) |
void |
setDateFrom(java.util.Date dateFrom) |
void |
setDateTo(java.util.Date dateTo) |
void |
setDeviceGroupIds(java.util.Set<java.lang.Integer> deviceGroupIds) |
void |
setDeviceType(T deviceType) |
void |
setDeviceTypeId(int deviceTypeId) |
void |
setHost(java.lang.String host) |
void |
setIdentifier(java.lang.String identifier) |
void |
setOrderManagerDisabled(boolean orderManagerDisabled) |
void |
setParentId(int parentId) |
void |
setPassword(java.lang.String password) |
void |
setSecret(java.lang.String secret) |
void |
setUptime(java.lang.String uptime) |
void |
setUptimeTime(java.util.Date uptimeCheckTime) |
void |
setUsername(java.lang.String user) |
getEntityId, getEntityTitle, setEntityId, setEntityTitle
getEntityAttributes, getEntitySpecId, setEntityAttributes, setEntitySpecId
equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setId
protected int deviceTypeId
protected transient T extends DeviceType deviceType
protected java.lang.String identifier
protected java.lang.String host
protected java.util.Set<java.lang.Integer> deviceGroupIds
protected java.lang.String secret
protected java.lang.String config
protected java.lang.String comment
protected int parentId
protected volatile java.lang.String uptime
protected volatile java.util.Date uptimeTime
protected java.util.Date dateFrom
protected java.util.Date dateTo
protected boolean orderManagerDisabled
public int getDeviceTypeId()
public void setDeviceTypeId(int deviceTypeId)
public int getParentId()
public void setParentId(int parentId)
public T getDeviceType()
public void setDeviceType(T deviceType)
public java.lang.String getIdentifier()
public void setIdentifier(java.lang.String identifier)
public java.util.Set<java.lang.Integer> getDeviceGroupIds()
public void setDeviceGroupIds(java.util.Set<java.lang.Integer> deviceGroupIds)
public java.lang.String getHost()
public java.util.List<java.net.InetSocketAddress> getHosts()
public static void main(java.lang.String[] args)
public java.util.List<java.lang.String[]> getHostsAsString()
public void setHost(java.lang.String host)
public java.lang.String getUsername()
public void setUsername(java.lang.String user)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public java.lang.String getSecret()
public void setSecret(java.lang.String secret)
public java.lang.String getConfig()
public void setConfig(java.lang.String config)
public java.util.List<D> getChildren()
public void setChildren(java.util.List<D> children)
public java.lang.String getComment()
public void setComment(java.lang.String comment)
public java.lang.String getUptime()
public void setUptime(java.lang.String uptime)
public java.util.Date getUptimeTime()
public void setUptimeTime(java.util.Date uptimeCheckTime)
public static java.lang.String generateTitle(Device<?,?> device, DeviceType type)
public static java.lang.String generateTitle(java.lang.String identifier, java.lang.String host, java.lang.String type)
public D[] findCodePath(int pid)
public java.util.Date getDateFrom()
public void setDateFrom(java.util.Date dateFrom)
public java.util.Date getDateTo()
public void setDateTo(java.util.Date dateTo)
public boolean isOrderManagerDisabled()
public void setOrderManagerDisabled(boolean orderManagerDisabled)