initial commit

This commit is contained in:
chenjinsong
2018-09-27 16:21:05 +08:00
commit dc91c4c987
2011 changed files with 408920 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
package nis.nms.bean;
public class Backup{
private String backup;
private String backupTo;
private String[] except;
private String exceptTmpStr;
private String isAbs;
public Backup() {
}
public String getBackup() {
return backup;
}
public void setBackup(String backup) {
this.backup = backup;
}
public String getBackupTo() {
return backupTo;
}
public void setBackupTo(String backupTo) {
this.backupTo = backupTo;
}
public String[] getExcept() {
return except;
}
public void setExcept(String[] except) {
this.except = except;
}
public String getIsAbs() {
return isAbs;
}
public void setIsAbs(String isAbs) {
this.isAbs = isAbs;
}
public String getExceptTmpStr() {
return exceptTmpStr;
}
public void setExceptTmpStr(String exceptTmpStr) {
this.exceptTmpStr = exceptTmpStr;
}
}

View File

@@ -0,0 +1,127 @@
package nis.nms.bean;
import java.util.Date;
/**
* 客户端用到的监测设置信息实体
*
*/
public class ContactSetInfo {
/**
* 监测设置信息ID
*/
private Long missionId;
private String missionName;
private String nodeGroupName;
private String nodeGroupsId;
private String nodeIpsId;
private String nodeIpsName;
private Long missionType;
private Long missionState;
private Long isLoop;
private Date startTime;
private Date endTime;
private Long viewLevel;
private Long createUserId;
private Long createUserGroupId;
private Long systemId;
private String contactUserIds;
public Long getViewLevel() {
return viewLevel;
}
public void setViewLevel(Long viewLevel) {
this.viewLevel = viewLevel;
}
public Long getCreateUserId() {
return createUserId;
}
public void setCreateUserId(Long createUserId) {
this.createUserId = createUserId;
}
public Long getCreateUserGroupId() {
return createUserGroupId;
}
public void setCreateUserGroupId(Long createUserGroupId) {
this.createUserGroupId = createUserGroupId;
}
public Long getSystemId() {
return systemId;
}
public void setSystemId(Long systemId) {
this.systemId = systemId;
}
public String getContactUserIds() {
return contactUserIds;
}
public void setContactUserIds(String contactUserIds) {
this.contactUserIds = contactUserIds;
}
public Long getMissionId() {
return missionId;
}
public void setMissionId(Long missionId) {
this.missionId = missionId;
}
public String getMissionName() {
return missionName;
}
public void setMissionName(String missionName) {
this.missionName = missionName;
}
public String getNodeGroupName() {
return nodeGroupName;
}
public void setNodeGroupName(String nodeGroupName) {
this.nodeGroupName = nodeGroupName;
}
public Long getMissionType() {
return missionType;
}
public void setMissionType(Long missionType) {
this.missionType = missionType;
}
public Long getMissionState() {
return missionState;
}
public void setMissionState(Long missionState) {
this.missionState = missionState;
}
public Long getIsLoop() {
return isLoop;
}
public void setIsLoop(Long isLoop) {
this.isLoop = isLoop;
}
public Date getStartTime() {
return startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public String getNodeGroupsId() {
return nodeGroupsId;
}
public void setNodeGroupsId(String nodeGroupsId) {
this.nodeGroupsId = nodeGroupsId;
}
public String getNodeIpsId() {
return nodeIpsId;
}
public void setNodeIpsId(String nodeIpsId) {
this.nodeIpsId = nodeIpsId;
}
public String getNodeIpsName() {
return nodeIpsName;
}
public void setNodeIpsName(String nodeIpsName) {
this.nodeIpsName = nodeIpsName;
}
}

View File

@@ -0,0 +1,66 @@
package nis.nms.bean;
public class CoverUpdate{
/**
* 指定更新需要的文件
*/
private String source = null;
/**
* 指定文件覆盖目录
*/
private String cover = null;
/**
* 是否创建覆盖目录,暂时没用
*/
private String isCreateCover = null;
/**
* 删除的文件或目录,如果是相对路径,则相对需要更新的目录
*/
private String[] delete = null;
/**
* 如果更新源文件是个压缩包Y 按绝对路径解压即在根目录下解压N 按进入备份目录解压这个属性只针对Linux有效Windows下只按进入备份目录解压
*/
private String deleteTmpStr;//删除文件临时字符串
private String isAbs = null;//解压标识
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String getCover() {
return cover;
}
public void setCover(String cover) {
this.cover = cover;
}
public String getIsCreateCover() {
return isCreateCover;
}
public void setIsCreateCover(String isCreateCover) {
this.isCreateCover = isCreateCover;
}
public String[] getDelete() {
return delete;
}
public void setDelete(String[] delete) {
this.delete = delete;
}
public String getIsAbs() {
return isAbs;
}
public void setIsAbs(String isAbs) {
this.isAbs = isAbs;
}
public String getDeleteTmpStr()
{
return deleteTmpStr;
}
public void setDeleteTmpStr(String deleteTmpStr)
{
this.deleteTmpStr = deleteTmpStr;
}
}

View File

@@ -0,0 +1,293 @@
package nis.nms.bean;
import com.zhtelecom.common.snmp.mib.MibSystem;
public class DeviceInfo extends MibSystem implements Cloneable{
/**
*
*/
private static final long serialVersionUID = 2180134682630033989L;
private Long id;
private String parDeviceCode;
private String deviceCode;
private Long deviceWidth;
private Long deviceHeight;
private String deviceFill;
private String deviceFillMini;
private String showIndex;
private String parShowIndex;//父设备在祖父设备上的位置标号
private Long showLevel;
private Long figureX;
private Long figureY;
private Long isLink;
private Long isLeaf;
private String pid;
private Integer devNum;//多个设备叠加时设备编号从0-maxDevNum-1
private Integer devPostionNum;//每个设备的位置个数
public String getPid()
{
return pid;
}
public void setPid(String pid)
{
this.pid = pid;
}
public String getShowIndex()
{
return showIndex;
}
public void setShowIndex(String showIndex)
{
this.showIndex = showIndex;
}
public String getParDeviceCode()
{
return parDeviceCode;
}
public void setParDeviceCode(String parDeviceCode)
{
this.parDeviceCode = parDeviceCode;
}
public String getDeviceCode()
{
return deviceCode;
}
public void setDeviceCode(String deviceCode)
{
this.deviceCode = deviceCode;
}
public String getDeviceFill()
{
return deviceFill;
}
public void setDeviceFill(String deviceFill)
{
this.deviceFill = deviceFill;
}
public String getDeviceFillMini()
{
return deviceFillMini;
}
public void setDeviceFillMini(String deviceFillMini)
{
this.deviceFillMini = deviceFillMini;
}
public String getParShowIndex()
{
return parShowIndex;
}
public void setParShowIndex(String parShowIndex)
{
this.parShowIndex = parShowIndex;
}
public Long getId()
{
return id;
}
public void setId(Long id)
{
this.id = id;
}
public Long getDeviceWidth()
{
return deviceWidth;
}
public void setDeviceWidth(Long deviceWidth)
{
this.deviceWidth = deviceWidth;
}
public Long getDeviceHeight()
{
return deviceHeight;
}
public void setDeviceHeight(Long deviceHeight)
{
this.deviceHeight = deviceHeight;
}
public Long getShowLevel()
{
return showLevel;
}
public void setShowLevel(Long showLevel)
{
this.showLevel = showLevel;
}
public Long getFigureX()
{
return figureX;
}
public void setFigureX(Long figureX)
{
this.figureX = figureX;
}
public Long getFigureY()
{
return figureY;
}
public void setFigureY(Long figureY)
{
this.figureY = figureY;
}
public Long getIsLink()
{
return isLink;
}
public void setIsLink(Long isLink)
{
this.isLink = isLink;
}
public Long getIsLeaf()
{
return isLeaf;
}
public void setIsLeaf(Long isLeaf)
{
this.isLeaf = isLeaf;
}
public DeviceInfo clone() throws CloneNotSupportedException
{
// TODO Auto-generated method stub
return (DeviceInfo)super.clone();
}
public Integer getDevNum()
{
return devNum;
}
public void setDevNum(Integer devNum)
{
this.devNum = devNum;
}
public Integer getDevPostionNum()
{
return devPostionNum;
}
public void setDevPostionNum(Integer devPostionNum)
{
this.devPostionNum = devPostionNum;
}
}

View File

@@ -0,0 +1,169 @@
package nis.nms.bean;
import java.util.Date;
/**
* DiSysteminfo entity.
*
* @author MyEclipse Persistence Tools
*/
public class DiSystem implements java.io.Serializable {
// Fields
private String sysDescr;
private String sysUpTime;
private String sysName;
private String sysLocation;
private String sysCpu;
private String sysMemory;
private String sysFan;//风扇
private String sysInSpeedSum;//系统输入速度总和
private String sysOutSpeedSum;//系统输出速度总和
private String sysInPktsSpeedSum;//系统收包速率总和
private String sysOutPktsSpeedSum;//系统发包速率总和
private String sysStatus;//系统状态,通过统计所有监测得出,所有监测都正常就正常,有一个异常则异常
public String getSysDescr()
{
return sysDescr;
}
public void setSysDescr(String sysDescr)
{
this.sysDescr = sysDescr;
}
public String getSysUpTime()
{
return sysUpTime;
}
public void setSysUpTime(String sysUpTime)
{
this.sysUpTime = sysUpTime;
}
public String getSysName()
{
return sysName;
}
public void setSysName(String sysName)
{
this.sysName = sysName;
}
public String getSysLocation()
{
return sysLocation;
}
public void setSysLocation(String sysLocation)
{
this.sysLocation = sysLocation;
}
public String getSysCpu()
{
return sysCpu;
}
public void setSysCpu(String sysCpu)
{
this.sysCpu = sysCpu;
}
public String getSysMemory()
{
return sysMemory;
}
public void setSysMemory(String sysMemory)
{
this.sysMemory = sysMemory;
}
public String getSysFan()
{
return sysFan;
}
public void setSysFan(String sysFan)
{
this.sysFan = sysFan;
}
public String getSysInSpeedSum()
{
return sysInSpeedSum;
}
public void setSysInSpeedSum(String sysInSpeedSum)
{
this.sysInSpeedSum = sysInSpeedSum;
}
public String getSysOutSpeedSum()
{
return sysOutSpeedSum;
}
public void setSysOutSpeedSum(String sysOutSpeedSum)
{
this.sysOutSpeedSum = sysOutSpeedSum;
}
public String getSysInPktsSpeedSum()
{
return sysInPktsSpeedSum;
}
public void setSysInPktsSpeedSum(String sysInPktsSpeedSum)
{
this.sysInPktsSpeedSum = sysInPktsSpeedSum;
}
public String getSysOutPktsSpeedSum()
{
return sysOutPktsSpeedSum;
}
public void setSysOutPktsSpeedSum(String sysOutPktsSpeedSum)
{
this.sysOutPktsSpeedSum = sysOutPktsSpeedSum;
}
public String getSysStatus()
{
return sysStatus;
}
public void setSysStatus(String sysStatus)
{
this.sysStatus = sysStatus;
}
}

View File

@@ -0,0 +1,186 @@
package nis.nms.bean;
import java.util.Date;
/**
* DiSysteminfo entity.
*
* @author MyEclipse Persistence Tools
*/
public class DiSysteminfo implements java.io.Serializable {
// Fields
private Long detectionInfoId;
private String hostName;
private String operateSystem;
private Long cpuCnt;
private Long cpuMhz;
private Double memorySize;
private Double swapSize;
private Double diskSize;
private Long netCnt;
private Date dataCheckTime;
private Date dataArriveTime;
private String dataCheckTimeStr;
private String dataArriveTimeStr;
private Long dataCheckTimeDigital;
private Long dataArriveTimeDigital;
// Constructors
/** default constructor */
public DiSysteminfo() {
}
/** minimal constructor */
public DiSysteminfo(Long detectionInfoId) {
this.detectionInfoId = detectionInfoId;
}
/** full constructor */
public DiSysteminfo(Long detectionInfoId,
String hostName, String operateSystem, Long cpuCnt, Long cpuMhz,
Double memorySize, Double swapSize, Double diskSize, Long netCnt,
Date dataCheckTime, Date dataArriveTime, Long dataCheckTimeDigital,
Long dataArriveTimeDigital) {
this.detectionInfoId = detectionInfoId;
this.hostName = hostName;
this.operateSystem = operateSystem;
this.cpuCnt = cpuCnt;
this.cpuMhz = cpuMhz;
this.memorySize = memorySize;
this.swapSize = swapSize;
this.diskSize = diskSize;
this.netCnt = netCnt;
this.dataCheckTime = dataCheckTime;
this.dataArriveTime = dataArriveTime;
this.dataCheckTimeDigital = dataCheckTimeDigital;
this.dataArriveTimeDigital = dataArriveTimeDigital;
}
// Property accessors
public Long getDetectionInfoId() {
return this.detectionInfoId;
}
public void setDetectionInfoId(Long detectionInfoId) {
this.detectionInfoId = detectionInfoId;
}
public String getHostName() {
return this.hostName;
}
public void setHostName(String hostName) {
this.hostName = hostName;
}
public String getOperateSystem() {
return this.operateSystem;
}
public void setOperateSystem(String operateSystem) {
this.operateSystem = operateSystem;
}
public Long getCpuCnt() {
return this.cpuCnt;
}
public void setCpuCnt(Long cpuCnt) {
this.cpuCnt = cpuCnt;
}
public Long getCpuMhz() {
return this.cpuMhz;
}
public void setCpuMhz(Long cpuMhz) {
this.cpuMhz = cpuMhz;
}
public Double getMemorySize() {
return memorySize;
}
public void setMemorySize(Double memorySize) {
this.memorySize = memorySize;
}
public Double getSwapSize() {
return swapSize;
}
public void setSwapSize(Double swapSize) {
this.swapSize = swapSize;
}
public Double getDiskSize() {
return diskSize;
}
public void setDiskSize(Double diskSize) {
this.diskSize = diskSize;
}
public Long getNetCnt() {
return this.netCnt;
}
public void setNetCnt(Long netCnt) {
this.netCnt = netCnt;
}
public Date getDataCheckTime() {
return this.dataCheckTime;
}
public void setDataCheckTime(Date dataCheckTime) {
this.dataCheckTime = dataCheckTime;
}
public Date getDataArriveTime() {
return this.dataArriveTime;
}
public void setDataArriveTime(Date dataArriveTime) {
this.dataArriveTime = dataArriveTime;
}
public Long getDataCheckTimeDigital() {
return this.dataCheckTimeDigital;
}
public void setDataCheckTimeDigital(Long dataCheckTimeDigital) {
this.dataCheckTimeDigital = dataCheckTimeDigital;
}
public Long getDataArriveTimeDigital() {
return this.dataArriveTimeDigital;
}
public void setDataArriveTimeDigital(Long dataArriveTimeDigital) {
this.dataArriveTimeDigital = dataArriveTimeDigital;
}
public String getDataCheckTimeStr() {
return dataCheckTimeStr;
}
public void setDataCheckTimeStr(String dataCheckTimeStr) {
this.dataCheckTimeStr = dataCheckTimeStr;
}
public String getDataArriveTimeStr() {
return dataArriveTimeStr;
}
public void setDataArriveTimeStr(String dataArriveTimeStr) {
this.dataArriveTimeStr = dataArriveTimeStr;
}
}

View File

@@ -0,0 +1,64 @@
package nis.nms.bean;
import java.util.Date;
/**
* DiSysteminfoDisk entity.
*
* @author MyEclipse Persistence Tools
*/
public class DiSysteminfoDisk implements java.io.Serializable {
// Fields
private Long detectionInfoId;
private String diskRang;
private Double diskSize;
private Date dataCheckTime;
private Date dataArriveTime;
private Long dataCheckTimeDigital;
private Long dataArriveTimeDigital;
public Long getDetectionInfoId() {
return detectionInfoId;
}
public void setDetectionInfoId(Long detectionInfoId) {
this.detectionInfoId = detectionInfoId;
}
public String getDiskRang() {
return diskRang;
}
public void setDiskRang(String diskRang) {
this.diskRang = diskRang;
}
public Double getDiskSize() {
return diskSize;
}
public void setDiskSize(Double diskSize) {
this.diskSize = diskSize;
}
public Date getDataCheckTime() {
return dataCheckTime;
}
public void setDataCheckTime(Date dataCheckTime) {
this.dataCheckTime = dataCheckTime;
}
public Date getDataArriveTime() {
return dataArriveTime;
}
public void setDataArriveTime(Date dataArriveTime) {
this.dataArriveTime = dataArriveTime;
}
public Long getDataCheckTimeDigital() {
return dataCheckTimeDigital;
}
public void setDataCheckTimeDigital(Long dataCheckTimeDigital) {
this.dataCheckTimeDigital = dataCheckTimeDigital;
}
public Long getDataArriveTimeDigital() {
return dataArriveTimeDigital;
}
public void setDataArriveTimeDigital(Long dataArriveTimeDigital) {
this.dataArriveTimeDigital = dataArriveTimeDigital;
}
}

View File

@@ -0,0 +1,100 @@
package nis.nms.bean;
import java.util.Date;
/**
* DiSysteminfoNet entity.
*
* @author MyEclipse Persistence Tools
*/
public class DiSysteminfoNet implements java.io.Serializable {
// Fields
private Long detectionInfoId;
private String netName;
private String netState;
private Long netSpeed;
private String netIp;
private String netSubmask;
private String netGateway;
private String netMac;
private Date dataCheckTime;
private Date dataArriveTime;
private Long dataCheckTimeDigital;
private Long dataArriveTimeDigital;
public Long getDetectionInfoId() {
return detectionInfoId;
}
public void setDetectionInfoId(Long detectionInfoId) {
this.detectionInfoId = detectionInfoId;
}
public String getNetName() {
return netName;
}
public void setNetName(String netName) {
this.netName = netName;
}
public String getNetState() {
return netState;
}
public void setNetState(String netState) {
this.netState = netState;
}
public Long getNetSpeed() {
return netSpeed;
}
public void setNetSpeed(Long netSpeed) {
this.netSpeed = netSpeed;
}
public String getNetIp() {
return netIp;
}
public void setNetIp(String netIp) {
this.netIp = netIp;
}
public String getNetSubmask() {
return netSubmask;
}
public void setNetSubmask(String netSubmask) {
this.netSubmask = netSubmask;
}
public String getNetGateway() {
return netGateway;
}
public void setNetGateway(String netGateway) {
this.netGateway = netGateway;
}
public Date getDataCheckTime() {
return dataCheckTime;
}
public void setDataCheckTime(Date dataCheckTime) {
this.dataCheckTime = dataCheckTime;
}
public Date getDataArriveTime() {
return dataArriveTime;
}
public void setDataArriveTime(Date dataArriveTime) {
this.dataArriveTime = dataArriveTime;
}
public Long getDataCheckTimeDigital() {
return dataCheckTimeDigital;
}
public void setDataCheckTimeDigital(Long dataCheckTimeDigital) {
this.dataCheckTimeDigital = dataCheckTimeDigital;
}
public Long getDataArriveTimeDigital() {
return dataArriveTimeDigital;
}
public void setDataArriveTimeDigital(Long dataArriveTimeDigital) {
this.dataArriveTimeDigital = dataArriveTimeDigital;
}
public String getNetMac() {
return netMac;
}
public void setNetMac(String netMac) {
this.netMac = netMac;
}
}

View File

@@ -0,0 +1,98 @@
package nis.nms.bean;
import java.util.Date;
public class DxKeySensitiveInfo {
private Long id;
private String url;
private String title;
private String summary;
private String boardName;
private String interval;
private Date publicTime;
private String ip;
private String shapShotPath;
private Long shapShotOffset;
private Long shspShotLen;
public DxKeySensitiveInfo(Long id,String url, String title, String boardName,
Date publicTime, String ip, String shapShotPath,
Long shapShotOffset, Long shspShotLen) {
this.id = id;
this.url = url;
this.title = title;
this.boardName = boardName;
this.publicTime = publicTime;
this.ip = ip;
this.shapShotPath = shapShotPath;
this.shapShotOffset = shapShotOffset;
this.shspShotLen = shspShotLen;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public String getInterval() {
return interval;
}
public void setInterval(String interval) {
this.interval = interval;
}
public Date getPublicTime() {
return publicTime;
}
public void setPublicTime(Date publicTime) {
this.publicTime = publicTime;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public String getShapShotPath() {
return shapShotPath;
}
public void setShapShotPath(String shapShotPath) {
this.shapShotPath = shapShotPath;
}
public Long getShapShotOffset() {
return shapShotOffset;
}
public void setShapShotOffset(Long shapShotOffset) {
this.shapShotOffset = shapShotOffset;
}
public Long getShspShotLen() {
return shspShotLen;
}
public void setShspShotLen(Long shspShotLen) {
this.shspShotLen = shspShotLen;
}
public String getBoardName() {
return boardName;
}
public void setBoardName(String boardName) {
this.boardName = boardName;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
}

View File

@@ -0,0 +1,100 @@
package nis.nms.bean;
public class EmailInfo {
private Long id; //接收地址
private String toAddress; //接收地址
private Integer actionType; //事件类型 值10监测恢复11监测信息异常13:监测结果超时20主动告警恢复21主动告警异常31结果失败32任务状态变更40系统运行异常恢复41系统运行异常
private String actionDesc;
private String actionIp; //事件地点
private String actionDate; //事件时间
private String content; //事件内容及结果
private Integer sendFlag; //0未发送 1已发送
private Integer sendLevel; //0紧急 1非紧急
public EmailInfo (){
}
public EmailInfo (EmailInfo info){
this.toAddress = info.getToAddress();
this.actionType = info.getActionType();
this.actionDesc = info.getActionDesc();
this.actionIp = info.getActionIp();
this.actionDate = info.getActionDate();
this.content = info.getContent();
this.sendFlag = info.getSendFlag();
this.sendLevel = info.getSendLevel();
}
public EmailInfo (Integer actionType,String actionDesc,String actionIp,String actionDate,String content,Integer sendFlag,Integer sendLevel){
this.actionType = actionType;
this.actionDesc = actionDesc;
this.actionIp = actionIp;
this.actionDate = actionDate;
this.content = content;
this.sendFlag = sendFlag;
this.sendLevel = sendLevel;
}
public String getToAddress() {
return toAddress;
}
public void setToAddress(String toAddress) {
this.toAddress = toAddress;
}
public Integer getActionType() {
return actionType;
}
public void setActionType(Integer actionType) {
this.actionType = actionType;
}
public String getActionIp() {
return actionIp;
}
public void setActionIp(String actionIp) {
this.actionIp = actionIp;
}
public String getActionDate() {
return actionDate;
}
public void setActionDate(String actionDate) {
this.actionDate = actionDate;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Integer getSendFlag() {
return sendFlag;
}
public void setSendFlag(Integer sendFlag) {
this.sendFlag = sendFlag;
}
public String getActionDesc() {
return actionDesc;
}
public void setActionDesc(String actionDesc) {
this.actionDesc = actionDesc;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getSendLevel() {
return sendLevel;
}
public void setSendLevel(Integer sendLevel) {
this.sendLevel = sendLevel;
}
}

View File

@@ -0,0 +1,36 @@
package nis.nms.bean;
public class EmailModel {
private String toAddress; //接收地址
private String subjectDesc; //主题
private String content; //邮件内容
private Integer sendFlag; //0未发送 1已发送 2即时发送
public String getToAddress() {
return toAddress;
}
public void setToAddress(String toAddress) {
this.toAddress = toAddress;
}
public String getSubjectDesc() {
return subjectDesc;
}
public void setSubjectDesc(String subjectDesc) {
this.subjectDesc = subjectDesc;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Integer getSendFlag() {
return sendFlag;
}
public void setSendFlag(Integer sendFlag) {
this.sendFlag = sendFlag;
}
}

View File

@@ -0,0 +1,104 @@
package nis.nms.bean;
public class ParamForM1 {
//-Upgrade 参数
/**
* 推送文件名
*/
private String fileName;
/**
* 推送目的地
*/
private String destPath;
/**
* 推送文件的MD5值
*/
private String md5Value;
/**
* 是否覆盖Y是N否
*/
private String isCover;
/**
* 推送文件的属主只针对Linux有效
*/
private String username;
/**
* 属主密码
*/
private String param1;
/**
* 推送文件的属群只针对Linux有效
*/
private String groupName;
/**
* 推送文件拥有的权限只针对Linux有效
*/
private String permisson;
public ParamForM1() {
super();
}
public ParamForM1(String fileName, String destPath, String md5Value,
String isCover, String username, String groupName, String permisson) {
super();
this.fileName = fileName;
this.destPath = destPath;
this.md5Value = md5Value;
this.isCover = isCover;
this.username = username;
this.groupName = groupName;
this.permisson = permisson;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public String getDestPath() {
return destPath;
}
public void setDestPath(String destPath) {
this.destPath = destPath;
}
public String getMd5Value() {
return md5Value;
}
public void setMd5Value(String md5Value) {
this.md5Value = md5Value;
}
public String getIsCover() {
return isCover;
}
public void setIsCover(String isCover) {
this.isCover = isCover;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPermisson() {
return permisson;
}
public void setPermisson(String permisson) {
this.permisson = permisson;
}
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public String getParam1() {
return param1;
}
public void setParam1(String param1) {
this.param1 = param1;
}
}

View File

@@ -0,0 +1,197 @@
package nis.nms.bean;
public class ParamForM4 {
//--可执行命令 参数
/**
* 执行文件或命令
*/
private String execCmd;
/**
* 执行文件或命令的参数序列
*/
private String [] execParams;
private String execParamsTmpStr;
/**
* 该命令是否强制执行Y是N否
*/
private String forceExec;
/**
* 常驻内存标识: Y是N否
*/
private String residentFlag;
/**
* 存放执行结果标识的文件:1、常驻内存的写入PID2、非常驻的写执行结果结果标识0 成功 1 失败)|结果描述
*/
private String execResult;
/**
* 回传标识: Y是N否
*/
private String returnFlag;
/**
* 回传文件或目录路径
*/
private String returnPath;
/**
* 最终结果获取最大等待时间(单位:分钟)
*/
private String maxWaitTime;
/**
* 执行文件或命令的用户名
*/
private String username;
/**
* 用户密码
*/
private String param1;
//--批量备份
private String backup;
private String backupTo;
private String[] except;
private String exceptTmpStr;
private String isAbs;
//--批量更新
private String source;
private String cover;
private String isCreateCover;
private String[] delete;
private String deleteTmpStr;
//--批量停用
private String pidFile;
public String getExecCmd() {
return execCmd;
}
public void setExecCmd(String execCmd) {
this.execCmd = execCmd;
}
public String[] getExecParams() {
return execParams;
}
public void setExecParams(String[] execParams) {
this.execParams = execParams;
}
public String getForceExec() {
return forceExec;
}
public void setForceExec(String forceExec) {
this.forceExec = forceExec;
}
public String getResidentFlag() {
return residentFlag;
}
public void setResidentFlag(String residentFlag) {
this.residentFlag = residentFlag;
}
public String getExecResult() {
return execResult;
}
public void setExecResult(String execResult) {
this.execResult = execResult;
}
public String getReturnFlag() {
return returnFlag;
}
public void setReturnFlag(String returnFlag) {
this.returnFlag = returnFlag;
}
public String getReturnPath() {
return returnPath;
}
public void setReturnPath(String returnPath) {
this.returnPath = returnPath;
}
public String getMaxWaitTime() {
return maxWaitTime;
}
public void setMaxWaitTime(String maxWaitTime) {
this.maxWaitTime = maxWaitTime;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getBackup() {
return backup;
}
public void setBackup(String backup) {
this.backup = backup;
}
public String getBackupTo() {
return backupTo;
}
public void setBackupTo(String backupTo) {
this.backupTo = backupTo;
}
public String[] getExcept() {
return except;
}
public void setExcept(String[] except) {
this.except = except;
}
public String[] getDelete() {
return delete;
}
public void setDelete(String[] delete) {
this.delete = delete;
}
public String getIsAbs() {
return isAbs;
}
public void setIsAbs(String isAbs) {
this.isAbs = isAbs;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String getCover() {
return cover;
}
public void setCover(String cover) {
this.cover = cover;
}
public String getIsCreateCover() {
return isCreateCover;
}
public void setIsCreateCover(String isCreateCover) {
this.isCreateCover = isCreateCover;
}
public String getPidFile() {
return pidFile;
}
public void setPidFile(String pidFile) {
this.pidFile = pidFile;
}
public String getExecParamsTmpStr() {
return execParamsTmpStr;
}
public void setExecParamsTmpStr(String execParamsTmpStr) {
this.execParamsTmpStr = execParamsTmpStr;
}
public String getExceptTmpStr() {
return exceptTmpStr;
}
public void setExceptTmpStr(String exceptTmpStr) {
this.exceptTmpStr = exceptTmpStr;
}
public String getDeleteTmpStr() {
return deleteTmpStr;
}
public void setDeleteTmpStr(String deleteTmpStr) {
this.deleteTmpStr = deleteTmpStr;
}
public String getParam1() {
return param1;
}
public void setParam1(String param1) {
this.param1 = param1;
}
}

View File

@@ -0,0 +1,190 @@
package nis.nms.bean;
import java.util.List;
public class ParamForM6 {
//-Upgrade 参数
/**
* 指定更新需要的文件,如果是相对路径,则相对推送目的地
*/
private String fileName;
/**
* 指定文件覆盖目录
*/
private String cover;
/**
* 是否创建覆盖目录
*/
private String isCreateCover;
/**
* 如果更新源文件是个压缩包Y 按绝对路径解压即在根目录下解压N 按进入备份目录解压这个属性只针对Linux有效Windows下只按进入备份目录解压
*/
private String isAbs;
/**
* 备份目录,如果是相对路径,则相对覆盖目录
*/
private List<Backup> backups;
/**
* 恢复目录
*/
private List<CoverUpdate> recoverys;
/**
* 需要删除的目录,如果是相对路径,则相对覆盖目录
*/
private String [] delete;
/**
* 进程PID文件全路径
*/
private String pidFile;
/**
* 进程启动文件全路径
*/
private String startupFile;
/**
* 执行文件的参数序列
*/
private String[] execParams;
/**
* 该命令是否强制执行Y是N否
*/
private String forceExec;
/**
* 最终结果获取最大等待时间(单位:分钟)
*/
private String maxWaitTime;
/**
* 文件的属主或运行的用户只针对Linux有效
*/
private String username;
/**
* 用记密码
*/
private String param1;
/**
* 文件的属组只针对Linux有效
*/
private String groupName;
/**
* 权限设置
*/
private String permisson;
/**
* 配合页面修改用的属性
*/
private String deleteTmpStr;
private String execParamsTmpStr;
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public String getCover() {
return cover;
}
public void setCover(String cover) {
this.cover = cover;
}
public String getPidFile() {
return pidFile;
}
public void setPidFile(String pidFile) {
this.pidFile = pidFile;
}
public String getStartupFile() {
return startupFile;
}
public void setStartupFile(String startupFile) {
this.startupFile = startupFile;
}
public String[] getDelete() {
return delete;
}
public void setDelete(String[] delete) {
this.delete = delete;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public List<Backup> getBackups() {
return backups;
}
public void setBackups(List<Backup> backups) {
this.backups = backups;
}
public String getPermisson() {
return permisson;
}
public void setPermisson(String permisson) {
this.permisson = permisson;
}
public String getIsCreateCover() {
return isCreateCover;
}
public void setIsCreateCover(String isCreateCover) {
this.isCreateCover = isCreateCover;
}
public String[] getExecParams() {
return execParams;
}
public void setExecParams(String[] execParams) {
this.execParams = execParams;
}
public String getIsAbs() {
return isAbs;
}
public void setIsAbs(String isAbs) {
this.isAbs = isAbs;
}
public String getForceExec() {
return forceExec;
}
public void setForceExec(String forceExec) {
this.forceExec = forceExec;
}
public String getMaxWaitTime() {
return maxWaitTime;
}
public void setMaxWaitTime(String maxWaitTime) {
this.maxWaitTime = maxWaitTime;
}
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public String getDeleteTmpStr() {
return deleteTmpStr;
}
public void setDeleteTmpStr(String deleteTmpStr) {
this.deleteTmpStr = deleteTmpStr;
}
public String getExecParamsTmpStr() {
return execParamsTmpStr;
}
public void setExecParamsTmpStr(String execParamsTmpStr) {
this.execParamsTmpStr = execParamsTmpStr;
}
public List<CoverUpdate> getRecoverys()
{
return recoverys;
}
public void setRecoverys(List<CoverUpdate> recoverys)
{
this.recoverys = recoverys;
}
public String getParam1() {
return param1;
}
public void setParam1(String param1) {
this.param1 = param1;
}
}

View File

@@ -0,0 +1,18 @@
package nis.nms.bean;
public class Permisson {
private String[] dirpath= new String[]{"要指定权限的文件或目录1","要指定权限的文件或目录2"};
private String permission = "指定权限数字";
public String[] getDirpath() {
return dirpath;
}
public void setDirpath(String[] dirpath) {
this.dirpath = dirpath;
}
public String getPermission() {
return permission;
}
public void setPermission(String permission) {
this.permission = permission;
}
}

View File

@@ -0,0 +1,270 @@
package nis.nms.bean;
/**
* 客户端用到的监测设置信息实体
*
*/
public class SetInfo {
/**
* 监测设置信息ID
*/
private Long id;
/**
* 检测类型
*/
private String checkTypeName;//如CPU、DISK等
private String checkTypeName1;//如CPU、DISK等
private Long checkTypeId;//检测类型的ID预留
/**
* 目标IP
*/
// private String nodeIp;//
/**
* 最大测试次数
*/
private Long checkMaxTimes;
/**
* 节点组ID
*/
// private Long groupId;
/**
*
*/
private String nodeGroupsId;
/**
* 最大测试次数
*/
private String nodeIpsId;
/**
* 时间间隔(单位:分钟)
*/
private Long checkGap;
/**
* 超时时间(单位:秒)
*/
private Long checkOutTime;
/**
* 监测状态0无效1有效
*/
private String checkState;
/**
* 监测方式0主动1被动
*/
private String checkWay;
/**
* 进程标志
*/
private String processIden;
private String processIdenName;
/**
* 进程执行文件
*/
private String processFile;
/**
* 进程执行文件路径
*/
private String processPath;
/**
* 是否系统启动NMSAgent启动/第三方自己启动默认0自启动1NMSAgent启动
*/
private String IsControlStart;
/* *//**
* 是否需下发文件0需要1不需要 默认1
*//*
private String isIssueFile;
*//**
* 文件下发是否成功;0成功1不成功 默认1
*//*
private String isIssued;
*//**
* 是否下发设置0下发1未下发 默认值为1如新添加或者修改一项设置之后设置为未下发需要完成其他配置信息后才执行一次下发
*//*
private String isIssue;*/
/**
* 控制启动时间
*/
private Long controlStartTime;
/**
*上传数据时间间隔单位分钟不能为空默认15分钟。监测数据上传到NMSServer周期。
*/
private Long uploadGap;
/**
* 计划检测时间:针对当前配置信息首次执行时间
*/
private Long planCheckTime;
/**
* 是否预置监测
* 监测类型: 0预置监测类型1三方监测类型2页面不显示如snmp_trap
*/
private String isSchedule;
// private String nodeIP2;
private String singleNodeId;
/**
* 是否SNMP检测 0objectSNMP 1SNMP4j
*/
private Long isSNMP;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getCheckTypeName() {
return checkTypeName;
}
public void setCheckTypeName(String checkTypeName) {
this.checkTypeName = checkTypeName;
}
public Long getCheckTypeId() {
return checkTypeId;
}
public Long getCheckMaxTimes() {
return checkMaxTimes;
}
public void setCheckMaxTimes(Long checkMaxTimes) {
this.checkMaxTimes = checkMaxTimes;
}
public Long getCheckGap() {
return checkGap;
}
public void setCheckGap(Long checkGap) {
this.checkGap = checkGap;
}
public Long getCheckOutTime() {
return checkOutTime;
}
public void setCheckOutTime(Long checkOutTime) {
this.checkOutTime = checkOutTime;
}
public String getCheckState() {
return checkState;
}
public void setCheckState(String checkState) {
this.checkState = checkState;
}
public String getProcessIden() {
return processIden;
}
public void setProcessIden(String processIden) {
this.processIden = processIden;
}
public String getProcessFile() {
return processFile;
}
public void setProcessFile(String processFile) {
this.processFile = processFile;
}
public String getProcessPath() {
return processPath;
}
public void setProcessPath(String processPath) {
this.processPath = processPath;
}
public void setCheckTypeId(Long checkTypeId) {
this.checkTypeId = checkTypeId;
}
public String getCheckWay() {
return checkWay;
}
public void setCheckWay(String checkWay) {
this.checkWay = checkWay;
}
public String toString() {
return "id=" + id + ", checkTypeName=" + checkTypeName + ", tableName="
+ ", checkMaxTimes=" + checkMaxTimes
+ ", checkGap=" + checkGap + ", checkOutTime=" + checkOutTime
+ ", checkState=" + checkState + ", checkWay=" + checkWay
+ ", processFile" + processFile + ", processPath="
+ processPath;
}
// public String getNodeIp() {
// return nodeIp;
// }
// public void setNodeIp(String nodeIp) {
// this.nodeIp = nodeIp;
// }
public String getIsControlStart() {
return IsControlStart;
}
public void setIsControlStart(String isControlStart) {
IsControlStart = isControlStart;
}
public Long getControlStartTime() {
return controlStartTime;
}
public void setControlStartTime(Long controlStartTime) {
this.controlStartTime = controlStartTime;
}
public Long getPlanCheckTime() {
return planCheckTime;
}
public void setPlanCheckTime(Long planCheckTime) {
this.planCheckTime = planCheckTime;
}
public Long getUploadGap() {
return uploadGap;
}
public void setUploadGap(Long uploadGap) {
this.uploadGap = uploadGap;
}
public String getIsSchedule() {
return isSchedule;
}
public void setIsSchedule(String isSchedule) {
this.isSchedule = isSchedule;
}
// public Long getGroupId() {
// return groupId;
// }
// public void setGroupId(Long groupId) {
// this.groupId = groupId;
// }
public Long getIsSNMP() {
return isSNMP;
}
public void setIsSNMP(Long isSNMP) {
this.isSNMP = isSNMP;
}
public String getNodeGroupsId() {
return nodeGroupsId;
}
public void setNodeGroupsId(String nodeGroupsId) {
this.nodeGroupsId = nodeGroupsId;
}
public String getNodeIpsId() {
return nodeIpsId;
}
public void setNodeIpsId(String nodeIpsId) {
this.nodeIpsId = nodeIpsId;
}
// public String getNodeIP2() {
// return nodeIP2;
// }
// public void setNodeIP2(String nodeIP2) {
// this.nodeIP2 = nodeIP2;
// }
//
public String getSingleNodeId() {
return singleNodeId;
}
public void setSingleNodeId(String singleNodeId) {
this.singleNodeId = singleNodeId;
}
public String getCheckTypeName1() {
return checkTypeName1;
}
public void setCheckTypeName1(String checkTypeName1) {
this.checkTypeName1 = checkTypeName1;
}
public String getProcessIdenName() {
return processIdenName;
}
public void setProcessIdenName(String processIdenName) {
this.processIdenName = processIdenName;
}
}

View File

@@ -0,0 +1,76 @@
package nis.nms.bean;
import java.text.SimpleDateFormat;
import com.zhtelecom.common.snmp.mib.MibSystem;
public class SwitchInfo extends MibSystem{
/**
*
*/
private static final long serialVersionUID = 2180134682630033989L;
private SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
private Long detectionInfoId;
private Long checkedTime;
private String checkedTimeStr;
private Long arrivedTime;
private String arrivedTimeStr;
private String upTimeStr0;
private String upTimeStr;
public Long getDetectionInfoId() {
return detectionInfoId;
}
public void setDetectionInfoId(Long detectionInfoId) {
this.detectionInfoId = detectionInfoId;
}
public Long getCheckedTime() {
return checkedTime;
}
public void setCheckedTime(Long checkedTime) {
this.checkedTime = checkedTime;
this.checkedTimeStr = format.format(checkedTime);
}
public Long getArrivedTime() {
return arrivedTime;
}
public void setArrivedTime(Long arrivedTime) {
this.arrivedTime = arrivedTime;
this.arrivedTimeStr = format.format(arrivedTime);
}
public String getCheckedTimeStr() {
return checkedTimeStr;
}
public String getArrivedTimeStr() {
return arrivedTimeStr;
}
public String getUpTimeStr() {
long time = super.getSysUpTime();
if(time==0){
return upTimeStr0;
}
String timeStr = "";
timeStr = "."+((time%1000)/10); //毫秒
time = time/1000;
timeStr= ":"+(time%60)+timeStr; //秒
time = time/60;
timeStr= ":"+(time%60)+timeStr; //分钟
time = time/60;
timeStr= " days, "+(time%24)+timeStr; //小时
time = time/24;
timeStr= time+timeStr; //天
upTimeStr = timeStr;
return upTimeStr;
}
public String getUpTimeStr0() {
return upTimeStr0;
}
public void setUpTimeStr0(String upTimeStr0) {
this.upTimeStr0 = upTimeStr0;
}
}

View File

@@ -0,0 +1,344 @@
package nis.nms.bean;
import java.text.SimpleDateFormat;
import com.zhtelecom.common.snmp.mib.MibIfEntry;
public class SwitchPortInfo extends MibIfEntry{
/**
*
*/
private static final long serialVersionUID = 1046618873706963324L;
private SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
private Double ifInOctetsSpeed;
private Double ifOutOctetsSpeed;
private String ifInOctetsSpeedStr;//包含单位
private String ifOutOctetsSpeedStr;//包含单位
private Double ifInOctetsSpeedM;
private Double ifOutOctetsSpeedM;
private Double ifInErrorsScale;
private Double ifOutErrorsScale;
private Double outpktsspeed;
private Double inpktsspeed;
private Double ifoutdiscardsperc;
private Double ifindiscardsperc;
// private Double ifindiscardsVary;//输入丢包数
// private Double ifoutdiscardsVary;//输出丢包数
// private Double ifinerrorsVary;//输入差错数
// private Double ifouterrorsVary;//输出差错数
private Long ifindiscardsVary;//输入丢包数
private Long ifoutdiscardsVary;//输出丢包数
private Long ifinerrorsVary;//输入差错数
private Long ifouterrorsVary;//输出差错数
private Long lastLongTime;
private String lastStringTime;
private String ifLastChangeStr;
private String ifTypeStr;
private String ifSpeedStr;
private Long ifHighSpeed;//输出差错数
private String speedStr;//包含单位
public String getIfTypeStr()
{
return ifTypeStr;
}
public void setIfTypeStr(String ifTypeStr)
{
this.ifTypeStr = ifTypeStr;
}
public Long getLastLongTime() {
return lastLongTime;
}
public void setLastLongTime(Long lastLongTime) {
this.lastLongTime = lastLongTime;
lastStringTime = format.format(lastLongTime);
}
public String getLastStringTime() {
return lastStringTime;
}
public void setLastStringTime(String lastStringTime) {
this.lastStringTime = lastStringTime;
}
public Double getIfInOctetsSpeed() {
return ifInOctetsSpeed;
}
public void setIfInOctetsSpeed(Double ifInOctetsSpeed) {
this.ifInOctetsSpeed = ifInOctetsSpeed;
}
public Double getIfOutOctetsSpeed() {
return ifOutOctetsSpeed;
}
public void setIfOutOctetsSpeed(Double ifOutOctetsSpeed) {
this.ifOutOctetsSpeed = ifOutOctetsSpeed;
}
public Double getIfInErrorsScale() {
return ifInErrorsScale;
}
public void setIfInErrorsScale(Double ifInErrorsScale) {
this.ifInErrorsScale = ifInErrorsScale;
}
public Double getIfOutErrorsScale() {
return ifOutErrorsScale;
}
public void setIfOutErrorsScale(Double ifOutErrorsScale) {
this.ifOutErrorsScale = ifOutErrorsScale;
}
public Double getOutpktsspeed() {
return outpktsspeed;
}
public void setOutpktsspeed(Double outpktsspeed) {
this.outpktsspeed = outpktsspeed;
}
public Double getInpktsspeed() {
return inpktsspeed;
}
public void setInpktsspeed(Double inpktsspeed) {
this.inpktsspeed = inpktsspeed;
}
public Double getIfoutdiscardsperc() {
return ifoutdiscardsperc;
}
public void setIfoutdiscardsperc(Double ifoutdiscardsperc) {
this.ifoutdiscardsperc = ifoutdiscardsperc;
}
public Double getIfindiscardsperc() {
return ifindiscardsperc;
}
public void setIfindiscardsperc(Double ifindiscardsperc) {
this.ifindiscardsperc = ifindiscardsperc;
}
public String getIfLastChangeStr()
{
return ifLastChangeStr;
}
public void setIfLastChangeStr(String ifLastChangeStr)
{
this.ifLastChangeStr = ifLastChangeStr;
}
public Long getIfindiscardsVary()
{
return ifindiscardsVary;
}
public void setIfindiscardsVary(Long ifindiscardsVary)
{
this.ifindiscardsVary = ifindiscardsVary;
}
public Long getIfoutdiscardsVary()
{
return ifoutdiscardsVary;
}
public void setIfoutdiscardsVary(Long ifoutdiscardsVary)
{
this.ifoutdiscardsVary = ifoutdiscardsVary;
}
public Long getIfinerrorsVary()
{
return ifinerrorsVary;
}
public void setIfinerrorsVary(Long ifinerrorsVary)
{
this.ifinerrorsVary = ifinerrorsVary;
}
public Long getIfouterrorsVary()
{
return ifouterrorsVary;
}
public void setIfouterrorsVary(Long ifouterrorsVary)
{
this.ifouterrorsVary = ifouterrorsVary;
}
public String getIfSpeedStr()
{
return ifSpeedStr;
}
public void setIfSpeedStr(String ifSpeedStr)
{
this.ifSpeedStr = ifSpeedStr;
}
public Double getIfInOctetsSpeedM()
{
return ifInOctetsSpeedM;
}
public void setIfInOctetsSpeedM(Double ifInOctetsSpeedM)
{
this.ifInOctetsSpeedM = ifInOctetsSpeedM;
}
public Double getIfOutOctetsSpeedM()
{
return ifOutOctetsSpeedM;
}
public void setIfOutOctetsSpeedM(Double ifOutOctetsSpeedM)
{
this.ifOutOctetsSpeedM = ifOutOctetsSpeedM;
}
public Long getIfHighSpeed() {
return ifHighSpeed;
}
public void setIfHighSpeed(Long ifHighSpeed) {
this.ifHighSpeed = ifHighSpeed;
}
public String getIfInOctetsSpeedStr()
{
return ifInOctetsSpeedStr;
}
public void setIfInOctetsSpeedStr(String ifInOctetsSpeedStr)
{
this.ifInOctetsSpeedStr = ifInOctetsSpeedStr;
}
public String getIfOutOctetsSpeedStr()
{
return ifOutOctetsSpeedStr;
}
public void setIfOutOctetsSpeedStr(String ifOutOctetsSpeedStr)
{
this.ifOutOctetsSpeedStr = ifOutOctetsSpeedStr;
}
public String getSpeedStr()
{
return speedStr;
}
public void setSpeedStr(String speedStr)
{
this.speedStr = speedStr;
}
// public Double getIfindiscardsVary()
// {
// return ifindiscardsVary;
// }
//
//
// public void setIfindiscardsVary(Double ifindiscardsVary)
// {
// this.ifindiscardsVary = ifindiscardsVary;
// }
//
//
// public Double getIfoutdiscardsVary()
// {
// return ifoutdiscardsVary;
// }
//
//
// public void setIfoutdiscardsVary(Double ifoutdiscardsVary)
// {
// this.ifoutdiscardsVary = ifoutdiscardsVary;
// }
//
//
// public Double getIfinerrorsVary()
// {
// return ifinerrorsVary;
// }
//
//
// public void setIfinerrorsVary(Double ifinerrorsVary)
// {
// this.ifinerrorsVary = ifinerrorsVary;
// }
//
//
// public Double getIfouterrorsVary()
// {
// return ifouterrorsVary;
// }
//
//
// public void setIfouterrorsVary(Double ifouterrorsVary)
// {
// this.ifouterrorsVary = ifouterrorsVary;
// }
}

View File

@@ -0,0 +1,536 @@
package nis.nms.bean;
import java.text.SimpleDateFormat;
public class SwitchPortInfoSource{
/**
*
*/
private static final long serialVersionUID = 1046618873706963324L;
private SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
private Double ifInOctetsSpeed;
private Double ifOutOctetsSpeed;
private Double ifInOctetsSpeedM;
private Double ifOutOctetsSpeedM;
private Double ifInErrorsScale;
private Double ifOutErrorsScale;
private Double outpktsspeed;
private Double inpktsspeed;
private Double ifoutdiscardsperc;
private Double ifindiscardsperc;
private Long ifindiscardsVary;//输入丢包数
private Long ifoutdiscardsVary;//输出丢包数
private Long ifinerrorsVary;//输入差错数
private Long ifouterrorsVary;//输出差错数
private Long lastLongTime;
private String lastStringTime;
private String ifLastChangeStr;
private String ifTypeStr;
private String ifSpeedStr;
private Long ifHighSpeed;//输出差错数
private int data64Flag; //64位数据标识 1是 0否
// Field descriptor #6 I
private int ifIndex;
// Field descriptor #8 Ljava/lang/String;
private java.lang.String ifDescr;
// Field descriptor #6 I
private int ifType;
// Field descriptor #6 I
private int ifMtu;
// Field descriptor #12 J
private long ifSpeed;
// Field descriptor #8 Ljava/lang/String;
private java.lang.String ifPhysAddress;
// Field descriptor #6 I
private int ifAdminStatus;
// Field descriptor #6 I
private int ifOperStatus;
// Field descriptor #12 J
private long ifLastChange;
// Field descriptor #12 J
private Double ifInOctets;
// Field descriptor #12 J
private Double ifInUcastPkts;
// Field descriptor #12 J
private Double ifInNUcastPkts;
// Field descriptor #12 J
private Double ifInDiscards;
// Field descriptor #12 J
private Double ifInErrors;
// Field descriptor #12 J
private Double ifInUnknownProtos;
// Field descriptor #12 J
private Double ifOutOctets;
// Field descriptor #12 J
private Double ifOutUcastPkts;
// Field descriptor #12 J
private Double ifOutNUcastPkts;
// Field descriptor #12 J
private Double ifOutDiscards;
// Field descriptor #12 J
private Double ifOutErrors;
// Field descriptor #12 J
private Double ifOutQLen;
// Field descriptor #8 Ljava/lang/String;
private java.lang.String ifSpecific;
public String getIfTypeStr()
{
return ifTypeStr;
}
public void setIfTypeStr(String ifTypeStr)
{
this.ifTypeStr = ifTypeStr;
}
public Long getLastLongTime() {
return lastLongTime;
}
public void setLastLongTime(Long lastLongTime) {
this.lastLongTime = lastLongTime;
lastStringTime = format.format(lastLongTime);
}
public String getLastStringTime() {
return lastStringTime;
}
public void setLastStringTime(String lastStringTime) {
this.lastStringTime = lastStringTime;
}
public Double getIfInOctetsSpeed() {
return ifInOctetsSpeed;
}
public void setIfInOctetsSpeed(Double ifInOctetsSpeed) {
this.ifInOctetsSpeed = ifInOctetsSpeed;
}
public Double getIfOutOctetsSpeed() {
return ifOutOctetsSpeed;
}
public void setIfOutOctetsSpeed(Double ifOutOctetsSpeed) {
this.ifOutOctetsSpeed = ifOutOctetsSpeed;
}
public Double getIfInErrorsScale() {
return ifInErrorsScale;
}
public void setIfInErrorsScale(Double ifInErrorsScale) {
this.ifInErrorsScale = ifInErrorsScale;
}
public Double getIfOutErrorsScale() {
return ifOutErrorsScale;
}
public void setIfOutErrorsScale(Double ifOutErrorsScale) {
this.ifOutErrorsScale = ifOutErrorsScale;
}
public Double getOutpktsspeed() {
return outpktsspeed;
}
public void setOutpktsspeed(Double outpktsspeed) {
this.outpktsspeed = outpktsspeed;
}
public Double getInpktsspeed() {
return inpktsspeed;
}
public void setInpktsspeed(Double inpktsspeed) {
this.inpktsspeed = inpktsspeed;
}
public Double getIfoutdiscardsperc() {
return ifoutdiscardsperc;
}
public void setIfoutdiscardsperc(Double ifoutdiscardsperc) {
this.ifoutdiscardsperc = ifoutdiscardsperc;
}
public Double getIfindiscardsperc() {
return ifindiscardsperc;
}
public void setIfindiscardsperc(Double ifindiscardsperc) {
this.ifindiscardsperc = ifindiscardsperc;
}
public String getIfLastChangeStr()
{
return ifLastChangeStr;
}
public void setIfLastChangeStr(String ifLastChangeStr)
{
this.ifLastChangeStr = ifLastChangeStr;
}
public Long getIfindiscardsVary()
{
return ifindiscardsVary;
}
public void setIfindiscardsVary(Long ifindiscardsVary)
{
this.ifindiscardsVary = ifindiscardsVary;
}
public Long getIfoutdiscardsVary()
{
return ifoutdiscardsVary;
}
public void setIfoutdiscardsVary(Long ifoutdiscardsVary)
{
this.ifoutdiscardsVary = ifoutdiscardsVary;
}
public Long getIfinerrorsVary()
{
return ifinerrorsVary;
}
public void setIfinerrorsVary(Long ifinerrorsVary)
{
this.ifinerrorsVary = ifinerrorsVary;
}
public Long getIfouterrorsVary()
{
return ifouterrorsVary;
}
public void setIfouterrorsVary(Long ifouterrorsVary)
{
this.ifouterrorsVary = ifouterrorsVary;
}
public String getIfSpeedStr()
{
return ifSpeedStr;
}
public void setIfSpeedStr(String ifSpeedStr)
{
this.ifSpeedStr = ifSpeedStr;
}
public Double getIfInOctetsSpeedM()
{
return ifInOctetsSpeedM;
}
public void setIfInOctetsSpeedM(Double ifInOctetsSpeedM)
{
this.ifInOctetsSpeedM = ifInOctetsSpeedM;
}
public Double getIfOutOctetsSpeedM()
{
return ifOutOctetsSpeedM;
}
public void setIfOutOctetsSpeedM(Double ifOutOctetsSpeedM)
{
this.ifOutOctetsSpeedM = ifOutOctetsSpeedM;
}
public Long getIfHighSpeed() {
return ifHighSpeed;
}
public void setIfHighSpeed(Long ifHighSpeed) {
this.ifHighSpeed = ifHighSpeed;
}
public int getIfIndex() {
return ifIndex;
}
public void setIfIndex(int ifIndex) {
this.ifIndex = ifIndex;
}
public java.lang.String getIfDescr() {
return ifDescr;
}
public void setIfDescr(java.lang.String ifDescr) {
this.ifDescr = ifDescr;
}
public int getIfType() {
return ifType;
}
public void setIfType(int ifType) {
this.ifType = ifType;
}
public int getIfMtu() {
return ifMtu;
}
public void setIfMtu(int ifMtu) {
this.ifMtu = ifMtu;
}
public long getIfSpeed() {
return ifSpeed;
}
public void setIfSpeed(long ifSpeed) {
this.ifSpeed = ifSpeed;
}
public java.lang.String getIfPhysAddress() {
return ifPhysAddress;
}
public void setIfPhysAddress(java.lang.String ifPhysAddress) {
this.ifPhysAddress = ifPhysAddress;
}
public int getIfAdminStatus() {
return ifAdminStatus;
}
public void setIfAdminStatus(int ifAdminStatus) {
this.ifAdminStatus = ifAdminStatus;
}
public int getIfOperStatus() {
return ifOperStatus;
}
public void setIfOperStatus(int ifOperStatus) {
this.ifOperStatus = ifOperStatus;
}
public long getIfLastChange() {
return ifLastChange;
}
public void setIfLastChange(long ifLastChange) {
this.ifLastChange = ifLastChange;
}
public Double getIfInOctets() {
return ifInOctets;
}
public void setIfInOctets(Double ifInOctets) {
this.ifInOctets = ifInOctets;
}
public Double getIfInUcastPkts() {
return ifInUcastPkts;
}
public void setIfInUcastPkts(Double ifInUcastPkts) {
this.ifInUcastPkts = ifInUcastPkts;
}
public Double getIfInNUcastPkts() {
return ifInNUcastPkts;
}
public void setIfInNUcastPkts(Double ifInNUcastPkts) {
this.ifInNUcastPkts = ifInNUcastPkts;
}
public Double getIfInDiscards() {
return ifInDiscards;
}
public void setIfInDiscards(Double ifInDiscards) {
this.ifInDiscards = ifInDiscards;
}
public Double getIfInErrors() {
return ifInErrors;
}
public void setIfInErrors(Double ifInErrors) {
this.ifInErrors = ifInErrors;
}
public Double getIfInUnknownProtos() {
return ifInUnknownProtos;
}
public void setIfInUnknownProtos(Double ifInUnknownProtos) {
this.ifInUnknownProtos = ifInUnknownProtos;
}
public Double getIfOutOctets() {
return ifOutOctets;
}
public void setIfOutOctets(Double ifOutOctets) {
this.ifOutOctets = ifOutOctets;
}
public Double getIfOutUcastPkts() {
return ifOutUcastPkts;
}
public void setIfOutUcastPkts(Double ifOutUcastPkts) {
this.ifOutUcastPkts = ifOutUcastPkts;
}
public Double getIfOutNUcastPkts() {
return ifOutNUcastPkts;
}
public void setIfOutNUcastPkts(Double ifOutNUcastPkts) {
this.ifOutNUcastPkts = ifOutNUcastPkts;
}
public Double getIfOutDiscards() {
return ifOutDiscards;
}
public void setIfOutDiscards(Double ifOutDiscards) {
this.ifOutDiscards = ifOutDiscards;
}
public Double getIfOutErrors() {
return ifOutErrors;
}
public void setIfOutErrors(Double ifOutErrors) {
this.ifOutErrors = ifOutErrors;
}
public Double getIfOutQLen() {
return ifOutQLen;
}
public void setIfOutQLen(Double ifOutQLen) {
this.ifOutQLen = ifOutQLen;
}
public java.lang.String getIfSpecific() {
return ifSpecific;
}
public void setIfSpecific(java.lang.String ifSpecific) {
this.ifSpecific = ifSpecific;
}
public int getData64Flag() {
return data64Flag;
}
public void setData64Flag(int data64Flag) {
this.data64Flag = data64Flag;
}
}

View File

@@ -0,0 +1,20 @@
package nis.nms.bean;
import java.io.File;
public class TempFile {
private String fileName = null;
private File File = null;
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public File getFile() {
return File;
}
public void setFile(File file) {
File = file;
}
}

View File

@@ -0,0 +1,47 @@
package nis.nms.core;
import java.util.ListResourceBundle;
public class CommonResources extends ListResourceBundle{
static final Object[][] contents = new String[][]{
// { "ms_1", "已创建" },
// { "ms_2", "进行中" },
// { "ms_3", "已完成" },
// { "ms_30", "全部成功" },
// { "ms_31", "全部失败" },
// { "ms_32", "部分成功" },
// { "ms_4", "未能执行" },
// { "ms_5", "撤销准备" },
// { "ms_6", "撤销开始" },
// { "ms_7", "撤销完成" },
// { "mt_1", "推送文件" },
// { "mt_4", "命令执行" },
// { "mt_6", "升级部署" },
// { "loop_0", "非周期任务" },
// { "loop_1", "周期任务" },
// { "ec_1", "任务开始下发" },
// { "ec_4", "任务开始下发" },
// { "ec_6", "任务开始下发"}};
{ "ms_1", "i18n_TaskResources.contents.ms_1_n81i" },
{ "ms_2", "i18n_TaskResources.contents.ms_2_n81i" },
{ "ms_3", "i18n_TaskResources.contents.ms_3_n81i" },
{ "ms_30", "i18n_TaskResources.contents.ms_30_n81i" },
{ "ms_31", "i18n_TaskResources.contents.ms_31_n81i" },
{ "ms_32", "i18n_TaskResources.contents.ms_32_n81i" },
{ "ms_4", "i18n_TaskResources.contents.ms_4_n81i" },
{ "ms_5", "i18n_TaskResources.contents.ms_5_n81i" },
{ "ms_6", "i18n_TaskResources.contents.ms_6_n81i" },
{ "ms_7", "i18n_TaskResources.contents.ms_7_n81i" },
{ "mt_1", "i18n_TaskResources.contents.mt_1_n81i" },
{ "mt_4", "i18n_TaskResources.contents.mt_4_n81i" },
{ "mt_6", "i18n_TaskResources.contents.mt_6_n81i" },
{ "loop_0", "i18n_TaskResources.contents.loop_0_n81i" },
{ "loop_1", "i18n_TaskResources.contents.loop_1_n81i" },
{ "ec_1", "i18n_TaskResources.contents.ec_1_n81i" },
{ "ec_4", "i18n_TaskResources.contents.ec_4_n81i" },
{ "ec_6", "i18n_TaskResources.contents.ec_6_n81i"}};
public Object[][] getContents() {
return contents;
}
}

View File

@@ -0,0 +1,336 @@
package nis.nms.core;
import java.util.Map;
import java.util.ResourceBundle;
import org.apache.commons.lang.StringUtils;
import nis.nms.util.BaseAction;
public class Constants {
/**
* 测试用例使用的定义Spring Context 文件集合的字符串.
*/
public static final String DEFAULT_CONTEXT = "classpath*:spring/*.xml";
/**
* 测试用例使用的定义Spring在测试时特别设置的Context 文件集合的字符串.
*/
public static final String DEFAULT_TEST_CONTEXT = "classpath*:spring/test/*.xml";
/**
* 重定向认证服务器地址.
*/
public static final String REDIRECT_LOGIN_SERVER_ADDRESS = "http://127.0.0.1/controlService/login.jsp?returnPath=http://127.0.0.1/searchEngineManagement/page/main/index.jsp&sysid=2";
/**
* ip.
*/
public static final String REDIRECT_LOGIN_SERVER_IP = "10.99.0.232";
/**
* port.
*/
public static final int REDIRECT_LOGIN_SERVER_PORT = 80;
/**
* rsid.父资源编码
*/
public static final String RESOURCE_ID = "8090";
/**
* rsid.业务的编码
*/
public static final String RESOURCE_CODE_ID = "8090";
/**
* rsid.
*/
// public static final String XML_FILE = "<?xml version='1.0' encoding='UTF-8'?>" +
// "<resources>" +
// //系统配置
// "<resource rsid='1' rsCode='82' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.sysConfig_n81i")+"' rsaddress=''>" +
// "<resource rsid='10' rsCode='83' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.userInf_n81i")+"' rsaddress='/sysManage/sysPopedomManage!execute.do?action=queryUserInfo'/>" +
// "<resource rsid='21' rsCode='84' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.userPrivilege_n81i")+"'>" +
// "<resource rsid='210' rsCode='120' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.mkManage_n81i")+"' rsaddress='/sysManage/sysPopedomManage!execute.do?action=queryMkInfo'/>" +
// "<resource rsid='211' rsCode='121' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.jsManage_n81i")+"' rsaddress='/sysManage/sysPopedomManage!execute.do?action=queryJsInfo'/>" +
// "</resource>" +
// "</resource>" +
// //业务配置
// "<resource rsid='2' rsCode='0' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.businessConfig_n81i")+"' >" +
// "<resource rsid='20' rsCode='1' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.letterInfoConfig_n81i")+"' rsaddress='/taskManage/taskDoc!configList.do'/>" +
// "<resource rsid='21' rsCode='2' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.htmlInfoConfig_n81i")+"' rsaddress=''/>" +
// "<resource rsid='22' rsCode='5' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.emailInfoConfig_n81i")+"'>" +
// "<resource rsid='220' rsCode='120' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.emailInfoConfig_n81i")+"' rsaddress=''/>" +
// "<resource rsid='221' rsCode='121' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.webEmailInfoConfig_n81i")+"' rsaddress=''/>" +
// "</resource>" +
// "<resource rsid='23' rsCode='7' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.communicateConfig_n81i")+"' >" +
// "<resource rsid='230' rsCode='8' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.msnInfoConfig_n81i")+"' rsaddress=''/>" +
// "<resource rsid='231' rsCode='9' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.yahooMsgInfoConfig_n81i")+"' rsaddress=''/>" +
// "<resource rsid='232' rsCode='8' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.feixinInfoConfig_n81i")+"' rsaddress=''/>" +
// "<resource rsid='233' rsCode='9' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.sinaUCInfoConfig_n81i")+"' rsaddress=''/>" +
// "</resource>" +
// "<resource rsid='24' rsCode='10' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.telnetInfoConfig_n81i")+"' rsaddress='' />" +
// "<resource rsid='25' rsCode='10' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.ftpInfoConfig_n81i")+"' rsaddress='' />" +
// "<resource rsid='26' rsCode='10' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.srcReportInfoConfig_n81i")+"' rsaddress=''>" +
// "<resource rsid='260' rsCode='11' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.ipInfoConfig_n81i")+"' rsaddress=''/>" +
// "<resource rsid='261' rsCode='12' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.tcpInfoConfig_n81i")+"' rsaddress=''/>" +
// "<resource rsid='262' rsCode='13' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.udpInfoConfig_n81i")+"' rsaddress=''/>" +
// "</resource>" +
// "<resource rsid='27' rsCode='10' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.busnessConfigGuide_n81i")+"' rsaddress='' />" +
// "<resource rsid='28' rsCode='15' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.configState_n81i")+"' rsaddress=''/>" +
// "</resource>" +
// //业务审核
// "<resource rsid='3' rsCode='0' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.businessCheck_n81i")+"' rsaddress=''>" +
// "<resource rsid='30' rsCode='1' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.letterInfoCheck_n81i")+"' rsaddress=''/>" +
// "<resource rsid='31' rsCode='2' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.webInfoCheck_n81i")+"' rsaddress=''/>" +
// "<resource rsid='32' rsCode='5' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.emailInfoCheck_n81i")+"'>" +
// "<resource rsid='320' rsCode='120' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.emailInfoCheck_n81i")+"' rsaddress=''/>" +
// "<resource rsid='321' rsCode='121' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.webEmailInfoCheck_n81i")+"' rsaddress=''/>" +
// "</resource>" +
// "<resource rsid='33' rsCode='7' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.communicateInfoCheck_n81i")+"' >" +
// "<resource rsid='330' rsCode='8' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.msnInfoCheck_n81i")+"' rsaddress=''/>" +
// "<resource rsid='331' rsCode='9' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.yahooMsgInfoCheck_n81i")+"' rsaddress=''/>" +
// "<resource rsid='332' rsCode='8' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.feixinInfoCheck_n81i")+"' rsaddress=''/>" +
// "<resource rsid='333' rsCode='9' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.sinaUCInfoCheck_n81i")+"' rsaddress=''/>" +
// "</resource>" +
// "<resource rsid='34' rsCode='10' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.telnetInfoCheck_n81i")+"' rsaddress='' />" +
// "<resource rsid='35' rsCode='10' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.ftpInfoCheck_n81i")+"' rsaddress='' />" +
// "<resource rsid='36' rsCode='10' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.srcReportInfoCheck_n81i")+"' rsaddress=''>" +
// "<resource rsid='360' rsCode='11' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.ipInfoCheck_n81i")+"' rsaddress=''/>" +
// "<resource rsid='361' rsCode='12' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.tcpInfoCheck_n81i")+"' rsaddress=''/>" +
// "<resource rsid='362' rsCode='13' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.udpInfoCheck_n81i")+"' rsaddress=''/>" +
// "</resource>" +
// "</resource>" +
// //业务结果
// "<resource rsid='4' rsCode='77' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.businessResult_n81i")+"' rsaddress=''>" +
// "<resource rsid='40' rsCode='32' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.businessResultView_n81i")+"' rsaddress=''/>" +
// "<resource rsid='41' rsCode='33' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.hotport_n81i")+"' rsaddress=''/>" +
// "<resource rsid='42' rsCode='34' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.mission_n81i")+"' rsaddress=''/>" +
// "</resource>" +
// //操作审计
// "<resource rsid='5' rsCode='77' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.operateCheck_n81i")+"' rsaddress=''>" +
// "<resource rsid='50' rsCode='32' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.userOperateLog_n81i")+"' rsaddress=''/>" +
// "</resource>" +
// //报表查看
// "<resource rsid='6' rsCode='37' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.reportView_n81i")+"' rsaddress=''>" +
// "<resource rsid='60' rsCode='39' rsname='"+BaseAction.getI18nText("i18n_Constants.xmlFile.businessReportView_n81i")+"' rsaddress=''/>" +
// "</resource>" +
// "</resources>";
/**
* 用户集合.
*/
public static final String USER_LIST = "userListSession";
/**
* 根节点.
*/
public static final String XML_FILE_ROOT = "resources";
/**
* 子节点.
*/
public static final String XML_FILE_NODE = "resource";
/**
* 子节点属性1.
*/
public static final String XML_FILE_NODE_RSID = "rsid";
/**
* 子节点属性2.
*/
public static final String XML_FILE_NODE_RSNAME = "rsname";
/**
* 子节点属性3.
*/
public static final String XML_FILE_NODE_NUMBER = "number";
/**
* 子节点属性4.
*/
public static final String XML_FILE_NODE_RSDESC = "rsdesc";
/**
* 子节点属性5.
*/
public static final String XML_FILE_NODE_RSADDRESS = "rsaddress";
/**
* 子节点属性6.
*/
public static final String XML_FILE_NODE_BUSINESS = "business";
/**
* 子节点属性7.
*/
public static final String XML_FILE_NODE_RSCODE = "rsid";
//===========================================================数据加密===============================================================//
public static final String Algorithm = "DESede"; //定义 加密算法,可用 DES,DESede,Blowfish
public static final byte[] keyBytes = {0x11, 0x22, 0x4F, 0x58, (byte)0x88, 0x10, 0x40, 0x38
, 0x28, 0x25, 0x79, 0x51, (byte)0xCB, (byte)0xDD, 0x55, 0x66
, 0x77, 0x29, 0x74, (byte)0x98, 0x30, 0x40, 0x36, (byte)0xE2}; //24字节的密钥
// public static final byte[] keyBytes = {
// 0x31,0x31,0x31,0x31,0x31,0x31,
// 0x31,0x31,0x31,0x31,0x31,0x31,
// 0x31,0x31,0x31,0x31,0x31,0x31,
// 0x31,0x31,0x31,0x31,0x31,0x31}; //24字节的密钥
public static Map aqzcMap ;
public static final String DETECTION_INFO_TABLE_NAME = "detection_info_new";//监测数据表名
public static final String DETECTION_WARNING_TABLE_NAME = "detection_info_warning";//告警数据表名
public static final String DI_SWITCHPORT_TABLE_NAME = "di_switchport";//交换机端口监测信息表名
public static final String DI_SYSTEM_TABLE_NAME = "di_system";//交换机系统监测信息表名
public static final int DEL_SVG_BEFORE_HOUR = 2;//删除当前时间前120分钟的svg文件
public static final String SVG_IMAGES_PATH = "images/svg/";//svg展示图片的路径
public static final String TOPO_SVG_IMAGES_PATH = "images/toposvg/";//拓扑图svg展示图片的路径
public static final String DETEC_WARNING_LEVEL_FLAG = "detecWarningLevel";//配置告警信息列表显示告警级别的字典名称
//--异常监测数据列表过滤配置菜单编码
public static final String MENU_CODE_LOGIC_TOPO= "logicTopo";//业务逻辑拓扑
public static final String MENU_CODE_ALL_WARNING_INFO = "allWarningInfo";//告警信息
public static final String MENU_CODE_SERVER_WARNING_INFO = "serverWarningInfo";//异常服务器
public static final String MENU_CODE_NE_WARNING_INFO = "netEleWarningInfo";//异常网元
public static final String MENU_CODE_EMERGENT_WARNING_INFO = "emergentwarningInfo";//报警信息
public static final String MENU_CODE_3DROOM_WARNING_INFO = "3DroomWarningInfo";//3d机房
public static final String WARN_TYPE_LEFT_WARN = "leftWarn";//报警类型:左下角报警 or 告警信息列表
public static final String WARN_TYPE_WARN_MENU = "warnMenu";//报警类型:左下角报警 or 告警信息列表
//超周期告警默认的紧急状态
public static final String DETEC_TIMEOUT_POLICE_EMERGENT;
//超周期告警默认的告警级别
public static final String DETEC_TIMEOUT_POLICE_LEVEL;
public static ResourceBundle rb = ResourceBundle.getBundle("myconfig");
// #---Email-------
public static final String EMAIL_ADDRESS ;
public static final String EMAIL_USERNAME ;
public static final String EMAIL_PASSWORD;
public static final String EMAIL_HOST ;
public static final String NMS_CLIENT_CHECKTYPENAME;//握手监测 监测类别名称
public static final String ALARM_SET_MARKER_SEPARATOR;//2014-5-20 :暂时未用。监测数据设置告警时对于指定多个标识符如多个盘符、多个CPU、多个网卡的分隔符
public static final String DETEC_STATE_INFO_FORMATE_POINT = "$@$";//用于监测数据的状态信息web界面显示的格式化的连接符
public static final String SHOW_AUTO_ALARM_FLAG = "showAutoAlarm";//是否显示主动告警的启动开关标识
public static int DEFAULT_SEARCH_DAY = 2;//默认查询历史监测数据的时间:单位天,2天
public static int DEFAULT_SEARCH_WARNINFO_HOUR = 2;//默认查询异常监测数据的时间:单位小时,2小时
public static final String ADMIN_ROLE_BH;//管理员角色编号,默认初始化编号为1
public static final String NATION_ROLE;
public static final String DEPT_MK_ID;
static {
if(rb.containsKey("dept.mk.id")){
DEPT_MK_ID=rb.getString("dept.mk.id");
}else{
DEPT_MK_ID="-1";
}
if(rb.containsKey("nation.role.jsbh")){
NATION_ROLE=rb.getString("nation.role.jsbh");
}else{
NATION_ROLE="-1";
}
if(rb.containsKey("jsbh")){
ADMIN_ROLE_BH = StringUtils.isBlank(rb.getString("jsbh"))?"1":rb.getString("jsbh").trim();
}else {
ADMIN_ROLE_BH = "1";
}
if(rb.containsKey("email.address")) {
EMAIL_ADDRESS = rb.getString("email.address");
}else {
EMAIL_ADDRESS = "";
}
if(rb.containsKey("email.userName")) {
EMAIL_USERNAME = rb.getString("email.userName");
}else {
EMAIL_USERNAME = "";
}
if(rb.containsKey("email.password")) {
EMAIL_PASSWORD = rb.getString("email.password");
}else {
EMAIL_PASSWORD = "";
}
if(rb.containsKey("email.host")) {
EMAIL_HOST = rb.getString("email.host");
}else {
EMAIL_HOST = rb.getString("email.host");
}
if(rb.containsKey("detec.nmsclient.str")) {
NMS_CLIENT_CHECKTYPENAME = rb.getString("detec.nmsclient.str");
}else {
NMS_CLIENT_CHECKTYPENAME = "nmsclient";
}
if(rb.containsKey("detec.timeout.police.emergent")) {
DETEC_TIMEOUT_POLICE_EMERGENT = rb.getString("detec.timeout.police.emergent");
}else {
DETEC_TIMEOUT_POLICE_EMERGENT = "0";//紧急
}
if(rb.containsKey("detec.timeout.police.level")) {
DETEC_TIMEOUT_POLICE_LEVEL = rb.getString("detec.timeout.police.level");
}else {
DETEC_TIMEOUT_POLICE_LEVEL = "0";//0级
}
if(rb.containsKey("alarm.set.marker.separator")) {
ALARM_SET_MARKER_SEPARATOR = rb.getString("alarm.set.marker.separator");
}else {
ALARM_SET_MARKER_SEPARATOR = "|";
}
if(rb.containsKey("default.search.history.detect.data.day")) {
String defaultSearchDayStr = rb.getString("default.search.history.detect.data.day");
try {
if(StringUtils.isNotBlank(defaultSearchDayStr)) {
DEFAULT_SEARCH_DAY = Integer.parseInt(defaultSearchDayStr.trim());
}
} catch (Exception e){
e.printStackTrace();
}
}else {
DEFAULT_SEARCH_DAY = 2;
}
if(rb.containsKey("default.search.warn.data.hour")) {
String defaultSearchDayStr = rb.getString("default.search.warn.data.hour");
try {
if(StringUtils.isNotBlank(defaultSearchDayStr)) {
DEFAULT_SEARCH_WARNINFO_HOUR = Integer.parseInt(defaultSearchDayStr.trim());
}
} catch (Exception e){
e.printStackTrace();
}
}else {
DEFAULT_SEARCH_WARNINFO_HOUR = 2;
}
}
public static String DETECT_TIMEOUT_ALARMINFO = "i18n_Constants.xmlFile.monitorInfo1_n81i"+" %d "+"i18n_Constants.xmlFile.monitorInfo2_n81i";
}

View File

@@ -0,0 +1,325 @@
/**
*
*/
package nis.nms.core;
import java.io.Reader;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import nis.nms.util.SortByStringChar;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.input.SAXBuilder;
/**
* @author Administrator
*
*/
public class MakeTree {
// public static List getResourceList(Element resources){
// List list = getList(resources);
// return list;
// }
//
// private static List getList(Element resources) {
// List list1 = new ArrayList();
// List list = new ArrayList();
// getElement(resources, list1);
// A:for(int i = 0 ; i < list1.size() ; i++ ){
// Resource resource1 = new Resource();
// resource1 = (Resource) list1.get(i);
// for( int k = 0 ; k < list1.size() ; k++ ){
// Resource resource2 = new Resource();
// resource2 = (Resource) list1.get(k);
// if( resource1.getRsCode().longValue() > resource2.getRsCode().longValue() ){//排序????
// continue A;
// }
// }
// list.add(resource1);
// list1.remove(i);
// i = -1;
// }
// return list;
// }
//递归遍历,取出所有的值,排列成一个集合
// private static Element getElement(Element resources, List list) {
// List resourceList = resources.getChildren(Constants.XML_FILE_NODE);
// Element resourcesElement = null;
// Resource resource = new Resource();
// if(resourceList != null && resourceList.size() > 0){
// for( int i = 0 ; i < resourceList.size() ; i++ ){
// resourcesElement = (Element) resourceList.get(i);
// resource = new Resource();
// getResourcePro(resourcesElement, resource);
// if(!resourcesElement.getAttributeValue(Constants.XML_FILE_NODE_RSCODE).equals("999999")){
// list.add(resource);
// }
// if(resourcesElement.getChildren(Constants.XML_FILE_NODE) != null
// && resourcesElement.getChildren(Constants.XML_FILE_NODE).size() > 0){
// getElement(resourcesElement, list);
// }
// }
// }
//
// return resourcesElement;
// }
// private static void getResourcePro(Element resources, Resource resource) {
// //rsid
// if(resources.getAttributeValue(Constants.XML_FILE_NODE_RSID) != null
// && !resources.getAttributeValue(Constants.XML_FILE_NODE_RSID).equals("")){
// resource.setRsid(new Long(resources.getAttributeValue(Constants.XML_FILE_NODE_RSID)));
// }
// //rsname
// if(resources.getAttributeValue(Constants.XML_FILE_NODE_RSNAME) != null
// && !resources.getAttributeValue(Constants.XML_FILE_NODE_RSNAME).equals("")){
// resource.setRsname(resources.getAttributeValue(Constants.XML_FILE_NODE_RSNAME));
// }
// //number
// if(resources.getAttributeValue(Constants.XML_FILE_NODE_NUMBER) != null
// && !resources.getAttributeValue(Constants.XML_FILE_NODE_NUMBER).equals("")){
// resource.setNumber(new Long(resources.getAttributeValue(Constants.XML_FILE_NODE_NUMBER)));
// }
// //rsdesc
// if(resources.getAttributeValue(Constants.XML_FILE_NODE_RSDESC) != null
// && !resources.getAttributeValue(Constants.XML_FILE_NODE_RSDESC).equals("")){
// resource.setRsdesc(resources.getAttributeValue(Constants.XML_FILE_NODE_RSDESC));
// }
// //rsaddress
// if(resources.getAttributeValue(Constants.XML_FILE_NODE_RSADDRESS) != null
// && !resources.getAttributeValue(Constants.XML_FILE_NODE_RSADDRESS).equals("")){
// resource.setRsaddress(resources.getAttributeValue(Constants.XML_FILE_NODE_RSADDRESS));
// }
// //business
// if(resources.getAttributeValue(Constants.XML_FILE_NODE_BUSINESS) != null
// && !resources.getAttributeValue(Constants.XML_FILE_NODE_BUSINESS).equals("")){
// resource.setBusiness(resources.getAttributeValue(Constants.XML_FILE_NODE_BUSINESS));
// }
// //rsCode
// if(resources.getAttributeValue(Constants.XML_FILE_NODE_RSCODE) != null
// && !resources.getAttributeValue(Constants.XML_FILE_NODE_RSCODE).equals("")
// && !resources.getAttributeValue(Constants.XML_FILE_NODE_RSCODE).equals("999999")){
// resource.setRsCode(new Long(resources.getAttributeValue(Constants.XML_FILE_NODE_RSCODE)));
// }else{
// resource.setRsCode(new Long(-1));
// }
// //parRsCode
// if(resources.getParentElement().getAttributeValue(Constants.XML_FILE_NODE_RSCODE) != null
// && !resources.getParentElement().getAttributeValue(Constants.XML_FILE_NODE_RSCODE).equals("")
// && !resources.getParentElement().getAttributeValue(Constants.XML_FILE_NODE_RSCODE).equals("999999")){
// resource.setParRsCode(new Long(resources.getParentElement().getAttributeValue(Constants.XML_FILE_NODE_RSCODE)));
// }else{
// resource.setParRsCode(new Long(-1));
// }
// }
/**
* @param args
*/
// public static void main(String[] args) {
// // TODO 自动生成方法存根
// SAXBuilder builder = new SAXBuilder();
// Element resources = null;
// try{
// //将xml字符串序列化,生成一个树型枚举对象
// Reader read = new StringReader(Constants.XML_FILE);
// Document read_doc = builder.build(read);
// resources = read_doc.getRootElement();
// List list = getResourceList(resources);
// for( int i = 0 ; i < list.size() ; i++ ){
// Resource resource = (Resource) list.get(i);
// }
// }catch(Exception e){
// e.printStackTrace();
// }
// }
// public static Element getTestElement() {
// SAXBuilder builder = new SAXBuilder();
// Element resources = null;
// try{
// //将xml字符串序列化,生成一个树型枚举对象
// Reader read = new StringReader(Constants.XML_FILE);
// Document read_doc = builder.build(read);
// resources = read_doc.getRootElement();
// }catch(Exception e){
// e.printStackTrace();
// }
// return resources;
// }
//获取一级节点列表
public static List getRootResourceList(List treeList){
List rootList = new ArrayList();
for(int i =0;i<treeList.size();i++){
Resource resource = (Resource)treeList.get(i);//0为pid,1为mkbh,2为mkmc,3为mkms,4为mkurl,5为mktb
if("0".equals(resource.getParRsCode())){
rootList.add(resource);
}
}
//Comparator comp1 = new SortByStringChar();
//Collections.sort(rootList, comp1);
return rootList;
}
//获取二或三级节点列表
public static List getotherResourceList(List treeList,String parentId){
List secondList = new ArrayList();
for(int i =0;i<treeList.size();i++){
Resource resource = (Resource)treeList.get(i);//0为pid,1为mkbh,2为mkmc,3为mkms,4为mkurl,5为mktb
if(resource.getParRsCode().equals(parentId)){
secondList.add(resource);
}
}
return secondList;
}
//根据父节点获取子节点列表
public static List getSonResourceList(String pid,List treeList){
List sonList = new ArrayList();
// List list = getResourceList(resources);
if(treeList!=null && treeList.size()>0){
List rootList = getRootResourceList(treeList);
//如果pid为空则获取第一个根节点的id
if(pid==null || "".equals(pid)){
Resource resource1 = (Resource) rootList.get(0);
pid = resource1.getRsid();
}
//找到父节点为传入pid的子节点生成list
for (int i = 0;i<treeList.size();i++){
Resource resource1 = (Resource) treeList.get(i);
if(resource1.getParRsCode().equals(pid) || resource1.getRsid().equals(pid)){
resource1 = setPosition(resource1,treeList);
sonList.add(resource1);
}
}
//找到父节点为pid的子节点后寻找子节点的子节点生成list
for(int j = 0;j<sonList.size();j++){
Resource resource2 = (Resource) sonList.get(j);
if(!resource2.getParRsCode().equals("0")){
//System.out.println("rsCode2222==>" + resource2.getRsCode());
for(int k = 0;k<treeList.size();k++){
Resource resource3 = (Resource) treeList.get(k);
// System.out.println("parRsCode3333==>" + resource3.getParRsCode() );
if(resource2.getRsCode().equals(resource3.getParRsCode())){
resource3 = setPosition(resource3,treeList);
sonList.add(resource3);
}
}
}
}
//Comparator comp1 = new SortByStringChar();
//Collections.sort(sonList, comp1);
}
return sonList;
}
//获取每个节点位置目前以4级节点为限
public static Resource setPosition(Resource resource,List list){
String[] strName = new String[4];
String sid = resource.getRsid();
String pid = resource.getParRsCode();
resource.setPosition("");//先清空位置信息
for(int i=0;i<4;i++){
for(int j = 0;j<list.size();j++){
Resource resource1 = (Resource)list.get(j);
if(resource1.getRsid().equals(sid)){
strName[i] = resource1.getRsname();
sid = resource1.getParRsCode();
break;
}
}
}
for(int i = 3;i>=0;i--){
if(strName[i]!= null && strName[i].length()>0){
if(resource.getPosition()==null || "".equals(resource.getPosition())){
resource.setPosition("["+strName[i]+"]");
}else{
resource.setPosition(resource.getPosition()+"-["+strName[i]+"]");
}
}
}
return resource;
}
//获取所有节点信息
public static List getAllResourceList(List treeList){
List sonList = new ArrayList();
if(treeList!=null && treeList.size()>0){
//找到父节点为传入pid的子节点生成list
for (int i = 0;i<treeList.size();i++){
Resource resource1 = (Resource) treeList.get(i);
/*if(resource1.getParRsCode().equals("0") || resource1.getRsid().equals("0")){
sonList.add(resource1);
}*/
if(resource1.getParRsCode().equals("0") || resource1.getRsid().equals("0")){
if(!(resource1.getParRsCode().equals("0") && resource1.getRsid().equals("0"))){
sonList.add(resource1);
}
}
}
//找到父节点为pid的子节点后寻找子节点的子节点生成list
for(int j = 0;j<sonList.size();j++){
Resource resource2 = (Resource) sonList.get(j);
for(int k = 0;k<treeList.size();k++){
Resource resource3 = (Resource) treeList.get(k);
if(resource2.getRsCode().equals(resource3.getParRsCode())){
sonList.add(resource3);
}
}
}
Comparator comp1 = new SortByStringChar();
Collections.sort(sonList, comp1);
}
return sonList;
}
public static List<Resource> getResourceSortbyVaildAndId(List<?> treeList){
List<Resource> sonList = new ArrayList<Resource>();
if (treeList != null && treeList.size() > 0) {
// 找到父节点为传入PID的子节点生成LIST
for (Object resourceObj : treeList) {
Resource resource = (Resource) resourceObj;
if(resource.getParRsCode().equals("0") || resource.getRsid().equals("0")){
if(!(resource.getParRsCode().equals("0") && resource.getRsid().equals("0"))){
sonList.add(resource);
}
}
}
// 找到父节点为PID的子节点后寻找子节点的子节点添加LIST
for (int i = 0; i < sonList.size(); i++) {
Resource parResource = sonList.get(i);
for (Object resourceObj : treeList) {
Resource resource = (Resource) resourceObj;
if (parResource.getRsCode().equals(resource.getParRsCode())) {
sonList.add(resource);
}
}
}
// 根据节点有效标志、节点编号排序先有效1、再无效0编号升序
Collections.sort(sonList, new Comparator<Resource>() {
public int compare(Resource resA, Resource resB) {
int isVaildA = resA.getIsValid();
int isVaildB = resB.getIsValid();
if (isVaildA != isVaildB) {
return -1 * (isVaildA - isVaildB);
}
String value1 = String.valueOf(resA.getRsid());
String value2 = String.valueOf(resB.getRsid());
return value1.compareTo(value2);
}
});
}
return sonList;
}
}

View File

@@ -0,0 +1,102 @@
/**
*
*/
package nis.nms.core;
import java.util.List;
/**
* @author Administrator
*
*/
public class NewResource {
private Long rsid;
private String rsname;
private Long number;
private String rsdesc;
private String rsaddress;
private String business;
private Long rsCode;
private Long parRsCode;
private List cRsList;
private String position;
public String getPosition() {
return position;
}
public void setPosition(String position) {
this.position = position;
}
public NewResource() {
}
/** full constructor */
public List getCRsList() {
return cRsList;
}
public void setCRsList(List rsList) {
cRsList = rsList;
}
public Long getParRsCode() {
return parRsCode;
}
public void setParRsCode(Long parRsCode) {
this.parRsCode = parRsCode;
}
public String getBusiness() {
return business;
}
public void setBusiness(String business) {
this.business = business;
}
public Long getNumber() {
return number;
}
public void setNumber(Long number) {
this.number = number;
}
public String getRsaddress() {
return rsaddress;
}
public void setRsaddress(String rsaddress) {
this.rsaddress = rsaddress;
}
public Long getRsCode() {
return rsCode;
}
public void setRsCode(Long rsCode) {
this.rsCode = rsCode;
}
public String getRsdesc() {
return rsdesc;
}
public void setRsdesc(String rsdesc) {
this.rsdesc = rsdesc;
}
public Long getRsid() {
return rsid;
}
public void setRsid(Long rsid) {
this.rsid = rsid;
}
public String getRsname() {
return rsname;
}
public void setRsname(String rsname) {
this.rsname = rsname;
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO 自动生成方法存根
}
}

View File

@@ -0,0 +1,140 @@
/**
*
*/
package nis.nms.core;
import java.io.Serializable;
import java.util.List;
/**
* @author Administrator
*
*/
public class Resource implements Serializable
{
private static final long serialVersionUID = 1L;
private String rsid;//主键
private String rsname;//名称
private Long number;
private String iconshow;//图标路径
private String rsdesc;//描述
private String rsaddress;//地址
private String business;
private String rsCode;
private String parRsCode;//父id
private List cRsList;
private String position;//位置
private String mktype;//模块类型 type=1 为按钮类型 其他未菜单
private String checked;
private Integer isValid; // 是否有效1有效0无效
public String getChecked() {
return checked;
}
public void setChecked(String checked) {
this.checked = checked;
}
public String getPosition() {
return position;
}
public void setPosition(String position) {
this.position = position;
}
public Resource() {
}
/** full constructor */
public List getCRsList() {
return cRsList;
}
public void setCRsList(List rsList) {
cRsList = rsList;
}
public String getParRsCode() {
return parRsCode;
}
public void setParRsCode(String parRsCode) {
this.parRsCode = parRsCode;
}
public String getBusiness() {
return business;
}
public void setBusiness(String business) {
this.business = business;
}
public Long getNumber() {
return number;
}
public void setNumber(Long number) {
this.number = number;
}
public String getRsaddress() {
return rsaddress;
}
public void setRsaddress(String rsaddress) {
this.rsaddress = rsaddress;
}
public String getRsCode() {
return rsCode;
}
public void setRsCode(String rsCode) {
this.rsCode = rsCode;
}
public String getRsdesc() {
return rsdesc;
}
public void setRsdesc(String rsdesc) {
this.rsdesc = rsdesc;
}
public String getRsid() {
return rsid;
}
public void setRsid(String rsid) {
this.rsid = rsid;
}
public String getRsname() {
return rsname;
}
public void setRsname(String rsname) {
this.rsname = rsname;
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO 自动生成方法存根
}
public String getIconshow() {
return iconshow;
}
public void setIconshow(String iconshow) {
this.iconshow = iconshow;
}
public String getMktype() {
return mktype;
}
public void setMktype(String mktype) {
this.mktype = mktype;
}
public Integer getIsValid() {
return isValid;
}
public void setIsValid(Integer isValid) {
this.isValid = isValid;
}
}

View File

@@ -0,0 +1,243 @@
package nis.nms.core;
import java.util.ArrayList;
import java.util.List;
public class Topology implements Comparable<Topology> {
/**
* 对象类型0业务系统 1父节点组 2叶子节点组 3机房 4机柜 5节点机
*/
private int type;
/**
* 对象ID
*/
private Long id;
/**
* 展现图片时用的ID
*/
private Long treeId;
/**
* 名称type=0时业务系统名称 type=1、2时节点组名称 type=3时机房编号 type=4时机柜描述 type=5对应节点名称
*/
private String name;
/**
* 运行状态 type=1 type=2 type=3 type=4是否存在异常节点机 type=5节点机是否异常 0正常 1异常
*/
private int isOk;
/**
* 子节点集合 type=0 是一级节点组的集合 type=1 是子节点组的集合 type=2 是机房的集合 type=3 是机柜的集合 type=4 是节点机的集合
*/
private List<Topology> child = new ArrayList<Topology>();
/**
* 节点组下的节点数量
*/
private int childSize;
/**
* 节点组下的正常节点数量
*/
private int okChildSize;
/**
* 节点组下的不正常节点数量
*/
private int falseChildSize;
/**
* 节点组下不正常节点的SEQID以逗号隔开
*/
private String falseSeqIds;
/**
* 节点组级别,用于返回
*/
private String groupLevel;
// 下面的用于机柜展示
/**
* 机柜编号
*/
private String ispn;
/**
* 机柜U位
*/
private Long boxUType;
/**
* 节点机IP信息
*/
private String nodeIp;
/**
* 节点机名称
*/
private String nodeName;
/**
* 节点机U位
*/
private Long nodeUType;
/**
* 节点的起始U位
*/
private Long nodeBeginUType;
/**
* 一、机柜下的节点是否是在当前打开机柜的组即是否可编辑0是 1否, -1 则是无效节点
* 二、机房下的机柜是否在当前节点组下有有效的节点,-1 无有效节点
*/
private int isEdit;
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getIsOk() {
return isOk;
}
public void setIsOk(int isOk) {
this.isOk = isOk;
}
public List<Topology> getChild() {
return child;
}
public void setChild(List<Topology> child) {
this.child = child;
}
public Long getTreeId() {
return treeId;
}
public void setTreeId(Long treeId) {
this.treeId = treeId;
}
public String getNodeIp() {
return nodeIp;
}
public void setNodeIp(String nodeIp) {
this.nodeIp = nodeIp;
}
public String getNodeName() {
return nodeName;
}
public void setNodeName(String nodeName) {
this.nodeName = nodeName;
}
public Long getNodeUType() {
return nodeUType;
}
public void setNodeUType(Long nodeUType) {
this.nodeUType = nodeUType;
}
@Override
public int compareTo(Topology topo) {
if (this.isOk > topo.getIsOk()) {
return 1;
} else if (this.isOk < topo.getIsOk()) {
return -1;
} else {
return 0;
}
}
public int getChildSize() {
return childSize;
}
public void setChildSize(int childSize) {
this.childSize = childSize;
}
public String getIspn() {
return ispn;
}
public void setIspn(String ispn) {
this.ispn = ispn;
}
public String getGroupLevel() {
return groupLevel;
}
public void setGroupLevel(String groupLevel) {
this.groupLevel = groupLevel;
}
public int getOkChildSize() {
return okChildSize;
}
public void setOkChildSize(int okChildSize) {
this.okChildSize = okChildSize;
}
public int getFalseChildSize() {
return falseChildSize;
}
public void setFalseChildSize(int falseChildSize) {
this.falseChildSize = falseChildSize;
}
public int getIsEdit() {
return isEdit;
}
public void setIsEdit(int isEdit) {
this.isEdit = isEdit;
}
public String getFalseSeqIds() {
return falseSeqIds;
}
public void setFalseSeqIds(String falseSeqIds) {
this.falseSeqIds = falseSeqIds;
}
public Long getBoxUType() {
return boxUType;
}
public void setBoxUType(Long boxUType) {
this.boxUType = boxUType;
}
public Long getNodeBeginUType() {
return nodeBeginUType;
}
public void setNodeBeginUType(Long nodeBeginUType) {
this.nodeBeginUType = nodeBeginUType;
}
}

View File

@@ -0,0 +1,301 @@
package nis.nms.datasql;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import nis.nms.util.ConnectionOracle;
import nis.nms.util.FileUtil;
import org.apache.log4j.Logger;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.SQLExec;
import org.apache.tools.ant.types.EnumeratedAttribute;
public class AntExecSql {
private Logger logger = Logger.getLogger(AntExecSql.class);
public AntExecSql() {
}
/**
* 使用默认连接更新数据库
* @param sqlpath
* @return
* @throws Exception
*/
public void updgradeData() throws Exception{
//int a = 0;
logger.debug("执行数据库更新sql开始");
String web_inf_Path=new File(KeyXMLTool.class.getResource("/").getPath()).getParent();
FileUtil fileUtil = new FileUtil();
try {
//获取classpath路径转化路径中的特殊字符为正常显示
web_inf_Path = java.net.URLDecoder.decode(web_inf_Path,"UTF-8");
String file3 = web_inf_Path+"\\updgradesql\\sql.out";
File weFilePathFile = new File(web_inf_Path);
File[] dataDirs = fileUtil.getDirectoryArray(weFilePathFile+"\\updgradesql","sql");
if(dataDirs!=null && dataDirs.length>0){
InputStream fis = ConnectionOracle.class.getClassLoader()
.getResourceAsStream("hibernate/jdbc.properties");
Properties myProperties = new Properties();
try {
myProperties.load(fis);
} catch (IOException e) {
logger.error("读取properties文件错误", e);
throw e;
} finally {
try {
fis.close();
} catch (IOException e) {
e.printStackTrace();
}
}
SQLExec sqlExec = new SQLExec();
//sqlExec.setEncoding("UTF-8");
sqlExec.setDriver(myProperties.getProperty("jdbc.driver"));
sqlExec.setUrl(myProperties.getProperty("jdbc.url"));
sqlExec.setUserid(myProperties.getProperty("jdbc.username"));
sqlExec.setPassword(myProperties.getProperty("jdbc.password"));
sqlExec.setDelimiter("/");
file3 = java.net.URLDecoder.decode(file3,"UTF-8");
File outFile = new File(file3);
for(File file:dataDirs){
sqlExec.setSrc(file);
/**/sqlExec.setOnerror((SQLExec.OnError)(EnumeratedAttribute.getInstance(SQLExec.OnError.class,
"abort")));
sqlExec.setPrint(true); // 设置是否输出
// 输出到文件 sql.out 中;不设置该属性,默认输出到控制台
sqlExec.setOutput(outFile);
sqlExec.setProject(new Project()); // 要指定这个属性,不然会出错
try {
sqlExec.execute();
logger.info("升级数据库文件:"+file.getName()+"执行完成!");
com.nms.objectSnmp.util.FileUtil.delDir(file);
logger.info("删除升级数据库文件:"+file.getName()+"执行完成!");
} catch (Exception e) {
e.printStackTrace();
// TODO: handle exception
logger.info("升级数据库文件:"+file.getName()+"执行异常!");
}
}
logger.debug("执行数据库更新sql结束");
}else{
logger.debug("执行数据库更新sql,没有找到指定目录下文件。");
}
} catch (Exception e) {
// TODO: handle exception
logger.info("执行数据库更新语句异常");
//e.printStackTrace();
throw e;
}
//return a;
}
/**
* 使用默认数据库执行sql
*
* @param sqlFile
* 要执行的sql文件
* @param outfile
* 信息输出文件
* @throws Exception
*/
public void execSqlFile(String sqlFile, boolean output, String outfile,boolean delimiter)
throws Exception {
InputStream fis = ConnectionOracle.class.getClassLoader()
.getResourceAsStream("hibernate/jdbc.properties");
Properties myProperties = new Properties();
try {
myProperties.load(fis);
} catch (IOException e) {
logger.error("Read properties file error", e);
throw e;
} finally {
try {
fis.close();
} catch (IOException e) {
e.printStackTrace();
}
}
SQLExec sqlExec = new SQLExec();
sqlExec.setEncoding("UTF-8");
sqlExec.setDriver(myProperties.getProperty("jdbc.driver"));
sqlExec.setUrl(myProperties.getProperty("jdbc.url"));
sqlExec.setUserid(myProperties.getProperty("jdbc.username"));
sqlExec.setPassword(myProperties.getProperty("jdbc.password"));
if(delimiter){
sqlExec.setDelimiter("/");
}
File sqlFile2 = new File(sqlFile);
if(!sqlFile2.exists()){
System.out.println("sql文件"+sqlFile+"不存在!");
logger.info("sql文件"+sqlFile+"不存在!");
return;
}
sqlExec.setSrc(new File(sqlFile));
sqlExec.setOnerror((SQLExec.OnError)(EnumeratedAttribute.getInstance(SQLExec.OnError.class,
"abort")));
sqlExec.setPrint(true); // 设置是否输出
// 输出到文件 sql.out 中;不设置该属性,默认输出到控制台
if (output) {
File outFile = new File(outfile);
if (!outFile.exists()) {
outFile.mkdir();
}
sqlExec.setOutput(outFile);
}
sqlExec.setProject(new Project()); // 要指定这个属性,不然会出错
try {
sqlExec.execute();
} catch (Exception e) {
// TODO: handle exception
throw e;
}
}
// public static void execSqlFile(String url, String userID, String pwd,
/**
* 初始化指定数据库 支持什么类型数据库要提供相应jar包目前支持oracle
* @param DBType 数据库类型
* @param url 数据库URL
* @param userID 用户名
* @param pwd 用户密码
* @param sqlFile sql文件
* @param output 是否输出文件
* @param outfile 输出文件
* @throws Exception
*/
public void execSqlFile(String DBType, String url, String userID,
String pwd, String sqlFile, boolean output, String outfile,boolean delimiter)
throws Exception {
SQLExec sqlExec = new SQLExec();
sqlExec.setEncoding("UTF-8");
Properties myProperties = new Properties();
// 设置数据库参数
if ("ORALCE".equals(DBType.toUpperCase())) {
sqlExec.setDriver("oracle.jdbc.driver.OracleDriver");
} else if ("SQLSERVER".equals(DBType.toUpperCase())) {
sqlExec.setDriver("");
} else if ("MYSQL".equals(DBType.toUpperCase())) {
sqlExec.setDriver("");
} else {
sqlExec.setDriver("oracle.jdbc.driver.OracleDriver");
}
sqlExec.setUrl(url);
sqlExec.setUserid(userID);
sqlExec.setPassword(pwd);
//sqlExec.setDelimiterType(";");
if(delimiter){
sqlExec.setDelimiter("/");
}
sqlExec.setSrc(new File(sqlFile));
// sqlExec.setOnerror((SQLExec.OnError)(EnumeratedAttribute.getInstance(SQLExec.OnError.class,
// "abort")));
// sqlExec.setPrint(true); //设置是否输出
sqlExec.setPrint(false); //设置是否输出
// 输出到文件 sql.out 中;不设置该属性,默认输出到控制台
if (output) {
File outFile = new File(outfile);
/*if (!outFile.exists()) {
outFile.mkdir();
}*/
sqlExec.setOutput(outFile);
}
sqlExec.setProject(new Project()); // 要指定这个属性,不然会出错
//sqlExec.setAutocommit(false);
try {
sqlExec.execute();
} catch (Exception e) {
// TODO: handle exception
throw e;
}
}
public static void main(String args[]) {
/*InputStream fis = ConnectionOracle.class.getClassLoader()
.getResourceAsStream("hibernate/jdbc.properties");
Properties myProperties = new Properties();
try {
myProperties.load(fis);
} catch (IOException e) {
System.out.println("读取properties文件错误" + e.toString());
} finally {
try {
fis.close();
} catch (IOException e) {
e.printStackTrace();
}
}*/
String url = "jdbc:oracle:thin:@10.0.6.141:1521:orcl";
String username = "bbmanager";
String pwd = "bbmanager";// sqlExec.setDriver("oracle.jdbc.driver.OracleDriver");
String errorMsg = "";
String file1 = KeyXMLTool.getFileUrl("updateinit.sql");
String file2 = KeyXMLTool.getFileUrl("updateinittri.sql");
String file3 = file1.replace("updateinit.sql", "sql.out");
File file = new File(file3);
AntExecSql antExecSql = new AntExecSql();
try {
antExecSql.updgradeData();
/*antExecSql.execSqlFile(file1, true, file3, false);
antExecSql.execSqlFile(file2, true, file3, true);*/
/**/antExecSql.execSqlFile("ORACLE", url, username, pwd, file1, true,
file3,false);
antExecSql.execSqlFile("ORACLE", url, username, pwd, file1, true,
file3,true);
// AntExecSql.execSqlFile(url,username,pwd,file2);
} catch (Exception ex) {
ex.printStackTrace();
System.out.println("error" + ex.getMessage());
errorMsg = ex.getMessage();
errorMsg = errorMsg.substring(errorMsg.indexOf("JDBC]") + 5,
errorMsg.length() - 1);
if (errorMsg.equals("Error establishing socket")) {
errorMsg = "数据库地址错误!";
}
}
}
}

View File

@@ -0,0 +1,228 @@
package nis.nms.datasql;
import org.w3c.dom.Document;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.*;
import java.io.InputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.xml.sax.SAXException;
import org.w3c.dom.NodeList;
import org.w3c.dom.Node;
import java.io.File;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import java.util.Map;
import java.util.HashMap;
public class KeyXMLTool {
private Map propertyCache=new HashMap();
private static String CMBKeyFileName="system-config.xml";
//得到WEB-INF的绝对路径
private static String web_inf_Path=new File(KeyXMLTool.class.getResource("/").getPath()).getParent();
private static String CMBKeyFilePath=web_inf_Path+"\\"+CMBKeyFileName;
private static DocumentBuilderFactory domfac=DocumentBuilderFactory.newInstance();
public static String getUrl(){
return CMBKeyFilePath;
}
public static String getFileUrl(String fileName){
String fileUrl=web_inf_Path+"\\"+fileName;
return fileUrl;
}
public static String getRootWebUrl(){
String rootWebUrl=new File(KeyXMLTool.class.getResource("/").getPath()).getParent();
return rootWebUrl;
}
/**
* 获取一Document对象
* @param fileName String
* @return Document
*/
private static Document getDocumentByFileName(final String fileName){
Document doc=null;
try {
DocumentBuilder dombuilder = domfac.newDocumentBuilder();
InputStream in=new FileInputStream(fileName);
// InputStream in=ClassLoader.getSystemResourceAsStream(fileName);
// InputStream in = KeyXMLTool.class.getResourceAsStream("/Key.xml");
doc=dombuilder.parse(in);
} catch (ParserConfigurationException ex) {
ex.printStackTrace();
} catch (FileNotFoundException ex) {
ex.printStackTrace();
} catch (IOException ex) {
ex.printStackTrace();
} catch (SAXException ex) {
ex.printStackTrace();
}
return doc;
}
public static String getPINKey(){
String pinKey=null;
Document doc=getDocumentByFileName(CMBKeyFilePath);
NodeList pinKeyNodeList=doc.getElementsByTagName("pinkey");
Node pinKeyNode=pinKeyNodeList.item(0);
pinKey=pinKeyNode.getFirstChild().getNodeValue();
return pinKey;
}
public static synchronized void setPINKEY(final String pinKey){
Document doc=getDocumentByFileName(CMBKeyFilePath);
NodeList pinKeyNodeList=doc.getElementsByTagName("pinkey");
Node pinKeyNode=pinKeyNodeList.item(0);
pinKeyNode.getFirstChild().setNodeValue(pinKey);
doc2XmlFile(doc,CMBKeyFilePath);
}
public static String getMACKEY(){
String macKey=null;
Document doc=getDocumentByFileName(CMBKeyFilePath);
NodeList pinKeyNodeList=doc.getElementsByTagName("mackey");
Node pinKeyNode=pinKeyNodeList.item(0);
macKey=pinKeyNode.getFirstChild().getNodeValue();
return macKey;
}
public static synchronized void setMACKEY(final String macKey){
Document doc=getDocumentByFileName(CMBKeyFilePath);
NodeList pinKeyNodeList=doc.getElementsByTagName("mackey");
Node pinKeyNode=pinKeyNodeList.item(0);
pinKeyNode.getFirstChild().setNodeValue(macKey);
doc2XmlFile(doc,CMBKeyFilePath);
}
/** 将document中的内容写入文件中 */
public static boolean doc2XmlFile(Document document,String filename){
boolean flag = true;
try {
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer();
/** 编码 */
//transformer.setOutputProperty(OutputKeys.ENCODING, "GB2312");
DOMSource source = new DOMSource(document);
StreamResult result = new StreamResult(new File(filename));
transformer.transform(source, result);
}catch(Exception ex)
{
flag = false;
ex.printStackTrace();
}
return flag;
}
}

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.Brand" table="BRAND" >
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_brand</param>
</generator>
<!-- <generator class="identity" /> -->
</id>
<property name="brandName" type="java.lang.String">
<column name="BRAND_NAME" length="100" />
</property>
<property name="brandDesc" type="java.lang.String">
<column name="BRAND_DESC" length="600" />
</property>
<property name="brandOid" type="java.lang.String">
<column name="BRAND_OID" length="600" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,80 @@
package nis.nms.domains;
/**
* Brand entity.
*
* @author MyEclipse Persistence Tools
*/
public class Brand implements java.io.Serializable {
// Fields
private Long id;
private String brandName;
private String brandDesc;
private String brandOid;
// Constructors
/** default constructor */
public Brand() {
}
/** full constructor */
public Brand(Long id, String brandName, String brandDesc, String brandOid) {
this.id = id;
this.brandName = brandName;
this.brandDesc = brandDesc;
this.brandOid = brandOid;
}
// Property accessors
public Long getId()
{
return id;
}
public void setId(Long id)
{
this.id = id;
}
public String getBrandName()
{
return brandName;
}
public void setBrandName(String brandName)
{
this.brandName = brandName;
}
public String getBrandDesc()
{
return brandDesc;
}
public void setBrandDesc(String brandDesc)
{
this.brandDesc = brandDesc;
}
public String getBrandOid()
{
return brandOid;
}
public void setBrandOid(String brandOid)
{
this.brandOid = brandOid;
}
}

View File

@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="nis.nms.domains.CheckTypeInfo" table="CHECK_TYPE_INFO">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_check_type_info</param>
</generator>
</id>
<property name="checkTypeName" type="java.lang.String">
<column name="CHECK_TYPE_NAME" length="64" />
</property>
<property name="checkTypeName1" type="java.lang.String">
<column name="CHECK_TYPE_NAME1" length="64" />
</property>
<property name="checkParamValue" type="java.lang.String">
<column name="CHECK_PARAM_VALUE" length="64" />
</property>
<property name="checkRemark" type="java.lang.String">
<column name="CHECK_REMARK" length="200" />
</property>
<property name="tableName" type="java.lang.String">
<column name="TABLE_NAME" length="50" />
</property>
<property name="tableComments" type="java.lang.String">
<column name="TABLE_DESC" length="50" />
</property>
<property name="creteState" type="java.lang.String">
<column name="CRETE_STATE" length="1" />
</property>
<property name="isSchedule" type="java.lang.String">
<column name="IS_SCHEDULE" length="1" />
</property>
<property name="createTime" type="java.util.Date">
<column name="CREATE_TIME" length="7" />
</property>
<property name="viewLevel" type="java.lang.Long">
<column name="VIEW_LEVEL" precision="22" scale="0" />
</property>
<property name="systemId" type="java.lang.Long">
<column name="SYSTEM_ID" precision="22" scale="0" />
</property>
<property name="groupId" type="java.lang.Long">
<column name="GROUP_ID" precision="22" scale="0" />
</property>
<property name="userId" type="java.lang.Long">
<column name="USER_ID" precision="22" scale="0" />
</property>
<property name="isSnmp" type="java.lang.Long">
<column name="IS_SNMP" precision="22" scale="0" />
</property>
<property name="snmpOID" type="java.lang.String">
<column name="OID" length="200" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,195 @@
package nis.nms.domains;
import java.util.Date;
/**
* CheckTypeInfo entity.
*
* @author MyEclipse Persistence Tools
*/
public class CheckTypeInfo implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = 1L;
private Long id;
private String checkTypeName;//监测用的类别
private String checkTypeName1;//展示给用户看的类别名
private String checkParamValue;
private String checkRemark;
private String tableName;
private String tableComments;
private String creteState;
private String isSchedule;
private Date createTime;
private Long viewLevel;
private Long systemId;
private Long groupId;
private Long userId;
private Long isSnmp;
private String snmpOID;
// Constructors
/** default constructor */
public CheckTypeInfo() {
}
/** full constructor */
public CheckTypeInfo(String checkTypeName, String checkParamValue,
String checkRemark, String tableName,String tableComments,
String creteState,String isSchedule,Long viewLevel,
Long systemId,Long groupId,Long userId,Long isSnmp,String snmpOID) {
this.checkTypeName = checkTypeName;
this.checkParamValue = checkParamValue;
this.checkRemark = checkRemark;
this.tableName = tableName;
this.tableComments = tableComments;
this.creteState = creteState;
this.isSchedule = isSchedule;
this.viewLevel = viewLevel;
this.systemId = systemId;
this.groupId = groupId;
this.userId = userId;
this.isSnmp = isSnmp;
this.snmpOID = snmpOID;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getCheckTypeName() {
return this.checkTypeName;
}
public void setCheckTypeName(String checkTypeName) {
this.checkTypeName = checkTypeName;
}
public String getCheckParamValue() {
return this.checkParamValue;
}
public void setCheckParamValue(String checkParamValue) {
this.checkParamValue = checkParamValue;
}
public String getCheckRemark() {
return this.checkRemark;
}
public void setCheckRemark(String checkRemark) {
this.checkRemark = checkRemark;
}
public String getTableName() {
return this.tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public String getTableComments() {
return tableComments;
}
public void setTableComments(String tableComments) {
this.tableComments = tableComments;
}
public String getCreteState() {
return creteState;
}
public void setCreteState(String creteState) {
this.creteState = creteState;
}
public String getIsSchedule() {
return isSchedule;
}
public void setIsSchedule(String isSchedule) {
this.isSchedule = isSchedule;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getViewLevel() {
return viewLevel;
}
public void setViewLevel(Long viewLevel) {
this.viewLevel = viewLevel;
}
public Long getGroupId() {
return groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
public Long getSystemId() {
return systemId;
}
public void setSystemId(Long systemId) {
this.systemId = systemId;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Long getIsSnmp()
{
return isSnmp;
}
public void setIsSnmp(Long isSnmp)
{
this.isSnmp = isSnmp;
}
public String getSnmpOID() {
return snmpOID;
}
public void setSnmpOID(String snmpOID) {
this.snmpOID = snmpOID;
}
public String getCheckTypeName1() {
return checkTypeName1;
}
public void setCheckTypeName1(String checkTypeName1) {
this.checkTypeName1 = checkTypeName1;
}
}

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DataPoliceRelation" table="DATA_POLICE_RELATION">
<id name="id" type="long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">SEQ_DATA_POLICE_RELATION</param>
</generator>
</id>
<many-to-one name="detectionSetInfo" class="nis.nms.domains.DetectionSetInfo" fetch="select">
<column name="DETECTION_SET_INFO_ID" precision="22" scale="0" />
</many-to-one>
<many-to-one name="metadata" class="nis.nms.domains.Metadata" fetch="select">
<column name="METADATA_ID" precision="22" scale="0" />
</many-to-one>
<property name="policeState" type="string">
<column name="POLICE_STATE" length="1" />
</property>
<property name="policeValue" type="string">
<column name="POLICE_VALUE" length="1024" />
</property>
<property name="policeUnit" type="string">
<column name="POLICE_UNIT" length="10" />
</property>
<property name="policeSymbols" type="string">
<column name="POLICE_SYMBOLS" length="10" />
</property>
<property name="policeShowInfo" type="string">
<column name="POLICE_SHOW_INFO" length="200" />
</property>
<property name="policeLevel" type="java.lang.Long">
<column name="POLICE_LEVEL" precision="22" scale="0" />
</property>
<property name="policeEmergent" type="java.lang.Long">
<column name="POLICE_EMERGENT" precision="22" scale="0" />
</property>
<property name="marker" type="string">
<column name="MARKER" length="1024" />
</property>
<property name="markerFiledId" type="java.lang.Long">
<column name="MARKER_FILED_ID" precision="22" scale="0" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,162 @@
package nis.nms.domains;
/**
* DataPoliceRelation entity. @author MyEclipse Persistence Tools
*/
public class DataPoliceRelation implements java.io.Serializable {
// Fields
private long id;
private DetectionSetInfo detectionSetInfo;
private Metadata metadata;
private String policeState;
private String policeValue;
private String policeUnit;
private String policeSymbols;
private Long policeLevel;
private String policeShowInfo;
private Long policeEmergent;
private String marker;
private Long markerFiledId;
// Constructors
/** default constructor */
public DataPoliceRelation() {
}
/** full constructor */
public DataPoliceRelation(DetectionSetInfo detectionSetInfo, Metadata metadata, String policeState, String policeValue, String policeUnit, String policeSymbols,Long policeLevel,String policeShowInfo) {
this.detectionSetInfo = detectionSetInfo;
this.metadata = metadata;
this.policeState = policeState;
this.policeValue = policeValue;
this.policeUnit = policeUnit;
this.policeSymbols = policeSymbols;
this.policeLevel = policeLevel;
this.policeShowInfo = policeShowInfo;
}
// Property accessors
public long getId() {
return this.id;
}
public void setId(long id) {
this.id = id;
}
public DetectionSetInfo getDetectionSetInfo() {
return this.detectionSetInfo;
}
public void setDetectionSetInfo(DetectionSetInfo detectionSetInfo) {
this.detectionSetInfo = detectionSetInfo;
}
public Metadata getMetadata() {
return this.metadata;
}
public void setMetadata(Metadata metadata) {
this.metadata = metadata;
}
public String getPoliceState() {
return this.policeState;
}
public void setPoliceState(String policeState) {
this.policeState = policeState;
}
public String getPoliceValue() {
return this.policeValue;
}
public void setPoliceValue(String policeValue) {
this.policeValue = policeValue;
}
public String getPoliceUnit() {
return this.policeUnit;
}
public void setPoliceUnit(String policeUnit) {
this.policeUnit = policeUnit;
}
public String getPoliceSymbols() {
return this.policeSymbols;
}
public void setPoliceSymbols(String policeSymbols) {
this.policeSymbols = policeSymbols;
}
public Long getPoliceLevel() {
return policeLevel;
}
public void setPoliceLevel(Long policeLevel) {
this.policeLevel = policeLevel;
}
public String getPoliceShowInfo() {
return policeShowInfo;
}
public void setPoliceShowInfo(String policeShowInfo) {
this.policeShowInfo = policeShowInfo;
}
public Long getPoliceEmergent()
{
return policeEmergent;
}
public void setPoliceEmergent(Long policeEmergent)
{
this.policeEmergent = policeEmergent;
}
public String getMarker()
{
return marker;
}
public void setMarker(String marker)
{
this.marker = marker;
}
public Long getMarkerFiledId()
{
return markerFiledId;
}
public void setMarkerFiledId(Long markerFiledId)
{
this.markerFiledId = markerFiledId;
}
}

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DetectInfoCpu" table="DETECT_INFO_CPU">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_detect_info_cpu</param>
</generator>
</id>
<many-to-one name="detectionInfo" class="nis.nms.domains.DetectionInfo" fetch="select">
<column name="DETECTION_INFO_ID" precision="22" scale="0" not-null="true" />
</many-to-one>
<property name="userUsedCpuPerc" type="java.lang.Long">
<column name="USER_USED_CPU_PERC" precision="22" scale="0" />
</property>
<property name="sysUsedCpuPerc" type="java.lang.Long">
<column name="SYS_USED_CPU_PERC" precision="22" scale="0" />
</property>
<property name="waitCpuPerc" type="java.lang.Long">
<column name="WAIT_CPU_PERC" precision="22" scale="0" />
</property>
<property name="freeCpuPerc" type="java.lang.Long">
<column name="FREE_CPU_PERC" precision="22" scale="0" />
</property>
<property name="totalUsedPerc" type="java.lang.Long">
<column name="TOTAL_USED_PERC" precision="22" scale="0" />
</property>
<property name="nicePerc" type="java.lang.Long">
<column name="NICE_PERC" precision="22" scale="0" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,112 @@
package nis.nms.domains;
/**
* DetectInfoCpu entity.
*
* @author MyEclipse Persistence Tools
*/
public class DetectInfoCpu implements java.io.Serializable {
// Fields
private Long id;
private DetectionInfo detectionInfo;
private Long userUsedCpuPerc;
private Long sysUsedCpuPerc;
private Long waitCpuPerc;
private Long freeCpuPerc;
private Long totalUsedPerc;
private Long nicePerc;
// Constructors
/** default constructor */
public DetectInfoCpu() {
}
/** minimal constructor */
public DetectInfoCpu(DetectionInfo detectionInfo) {
this.detectionInfo = detectionInfo;
}
/** full constructor */
public DetectInfoCpu(DetectionInfo detectionInfo, Long userUsedCpuPerc,
Long sysUsedCpuPerc, Long waitCpuPerc, Long freeCpuPerc,
Long totalUsedPerc, Long nicePerc) {
this.detectionInfo = detectionInfo;
this.userUsedCpuPerc = userUsedCpuPerc;
this.sysUsedCpuPerc = sysUsedCpuPerc;
this.waitCpuPerc = waitCpuPerc;
this.freeCpuPerc = freeCpuPerc;
this.totalUsedPerc = totalUsedPerc;
this.nicePerc = nicePerc;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public DetectionInfo getDetectionInfo() {
return this.detectionInfo;
}
public void setDetectionInfo(DetectionInfo detectionInfo) {
this.detectionInfo = detectionInfo;
}
public Long getUserUsedCpuPerc() {
return this.userUsedCpuPerc;
}
public void setUserUsedCpuPerc(Long userUsedCpuPerc) {
this.userUsedCpuPerc = userUsedCpuPerc;
}
public Long getSysUsedCpuPerc() {
return this.sysUsedCpuPerc;
}
public void setSysUsedCpuPerc(Long sysUsedCpuPerc) {
this.sysUsedCpuPerc = sysUsedCpuPerc;
}
public Long getWaitCpuPerc() {
return this.waitCpuPerc;
}
public void setWaitCpuPerc(Long waitCpuPerc) {
this.waitCpuPerc = waitCpuPerc;
}
public Long getFreeCpuPerc() {
return this.freeCpuPerc;
}
public void setFreeCpuPerc(Long freeCpuPerc) {
this.freeCpuPerc = freeCpuPerc;
}
public Long getTotalUsedPerc() {
return this.totalUsedPerc;
}
public void setTotalUsedPerc(Long totalUsedPerc) {
this.totalUsedPerc = totalUsedPerc;
}
public Long getNicePerc() {
return this.nicePerc;
}
public void setNicePerc(Long nicePerc) {
this.nicePerc = nicePerc;
}
}

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DetectInfoDisk" table="DETECT_INFO_DISK">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_detect_info_disk</param>
</generator>
</id>
<many-to-one name="detectionInfo" class="nis.nms.domains.DetectionInfo" fetch="select">
<column name="DETECTION_INFO_ID" precision="22" scale="0" />
</many-to-one>
<property name="diskRange" type="java.lang.String">
<column name="DISK_RANGE" length="3" />
</property>
<property name="totalDiskSize" type="java.lang.Long">
<column name="TOTAL_DISK_SIZE" precision="22" scale="0" />
</property>
<property name="freeDiskSize" type="java.lang.Long">
<column name="FREE_DISK_SIZE" precision="22" scale="0" />
</property>
<property name="usedDiskPerc" type="java.lang.Long">
<column name="USED_DISK_PERC" precision="22" scale="0" />
</property>
<property name="dataCheckTime" type="java.util.Date">
<column name="DATA_CHECK_TIME" length="7" />
</property>
<property name="dataArriveTime" type="java.util.Date">
<column name="DATA_ARRIVE_TIME" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,109 @@
package nis.nms.domains;
import java.util.Date;
/**
* DetectInfoDisk entity.
*
* @author MyEclipse Persistence Tools
*/
public class DetectInfoDisk implements java.io.Serializable {
// Fields
private Long id;
private DetectionInfo detectionInfo;
private String diskRange;
private Long totalDiskSize;
private Long freeDiskSize;
private Long usedDiskPerc;
private Date dataCheckTime;
private Date dataArriveTime;
// Constructors
/** default constructor */
public DetectInfoDisk() {
}
/** full constructor */
public DetectInfoDisk(DetectionInfo detectionInfo, String diskRange,
Long totalDiskSize, Long freeDiskSize, Long usedDiskPerc,
Date dataCheckTime, Date dataArriveTime) {
this.detectionInfo = detectionInfo;
this.diskRange = diskRange;
this.totalDiskSize = totalDiskSize;
this.freeDiskSize = freeDiskSize;
this.usedDiskPerc = usedDiskPerc;
this.dataCheckTime = dataCheckTime;
this.dataArriveTime = dataArriveTime;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public DetectionInfo getDetectionInfo() {
return this.detectionInfo;
}
public void setDetectionInfo(DetectionInfo detectionInfo) {
this.detectionInfo = detectionInfo;
}
public String getDiskRange() {
return this.diskRange;
}
public void setDiskRange(String diskRange) {
this.diskRange = diskRange;
}
public Long getTotalDiskSize() {
return this.totalDiskSize;
}
public void setTotalDiskSize(Long totalDiskSize) {
this.totalDiskSize = totalDiskSize;
}
public Long getFreeDiskSize() {
return this.freeDiskSize;
}
public void setFreeDiskSize(Long freeDiskSize) {
this.freeDiskSize = freeDiskSize;
}
public Long getUsedDiskPerc() {
return this.usedDiskPerc;
}
public void setUsedDiskPerc(Long usedDiskPerc) {
this.usedDiskPerc = usedDiskPerc;
}
public Date getDataCheckTime() {
return this.dataCheckTime;
}
public void setDataCheckTime(Date dataCheckTime) {
this.dataCheckTime = dataCheckTime;
}
public Date getDataArriveTime() {
return this.dataArriveTime;
}
public void setDataArriveTime(Date dataArriveTime) {
this.dataArriveTime = dataArriveTime;
}
}

View File

@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DetectInfoMemory" table="DETECT_INFO_MEMORY">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_detect_info_memory</param>
</generator>
</id>
<many-to-one name="detectionInfo" class="nis.nms.domains.DetectionInfo" fetch="select">
<column name="DETECTION_INFO_ID" precision="22" scale="0" />
</many-to-one>
<property name="freeSpaceInpagingFiles" type="java.lang.Long">
<column name="FREE_SPACE_INPAGING_FILES" precision="22" scale="0" />
</property>
<property name="sizeStoredinpagingFiles" type="java.lang.Long">
<column name="SIZE_STOREDINPAGING_FILES" precision="22" scale="0" />
</property>
<property name="totalMenmorySize" type="java.lang.Long">
<column name="TOTAL_MENMORY_SIZE" precision="22" scale="0" />
</property>
<property name="usedMenmorySize" type="java.lang.Long">
<column name="USED_MENMORY_SIZE" precision="22" scale="0" />
</property>
<property name="freeMemorySize" type="java.lang.Long">
<column name="FREE_MEMORY_SIZE" precision="22" scale="0" />
</property>
<property name="usedMemoryPerc" type="java.lang.Long">
<column name="USED_MEMORY_PERC" precision="22" scale="0" />
</property>
<property name="dataCheckTime" type="java.util.Date">
<column name="DATA_CHECK_TIME" length="7" />
</property>
<property name="dataArriveTime" type="java.util.Date">
<column name="DATA_ARRIVE_TIME" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,130 @@
package nis.nms.domains;
import java.util.Date;
/**
* DetectInfoMemory entity.
*
* @author MyEclipse Persistence Tools
*/
public class DetectInfoMemory implements java.io.Serializable {
// Fields
private Long id;
private DetectionInfo detectionInfo;
private Long freeSpaceInpagingFiles;
private Long sizeStoredinpagingFiles;
private Long totalMenmorySize;
private Long usedMenmorySize;
private Long freeMemorySize;
private Long usedMemoryPerc;
private Date dataCheckTime;
private Date dataArriveTime;
// Constructors
/** default constructor */
public DetectInfoMemory() {
}
/** full constructor */
public DetectInfoMemory(DetectionInfo detectionInfo,
Long freeSpaceInpagingFiles, Long sizeStoredinpagingFiles,
Long totalMenmorySize, Long usedMenmorySize, Long freeMemorySize,
Long usedMemoryPerc, Date dataCheckTime, Date dataArriveTime) {
this.detectionInfo = detectionInfo;
this.freeSpaceInpagingFiles = freeSpaceInpagingFiles;
this.sizeStoredinpagingFiles = sizeStoredinpagingFiles;
this.totalMenmorySize = totalMenmorySize;
this.usedMenmorySize = usedMenmorySize;
this.freeMemorySize = freeMemorySize;
this.usedMemoryPerc = usedMemoryPerc;
this.dataCheckTime = dataCheckTime;
this.dataArriveTime = dataArriveTime;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public DetectionInfo getDetectionInfo() {
return this.detectionInfo;
}
public void setDetectionInfo(DetectionInfo detectionInfo) {
this.detectionInfo = detectionInfo;
}
public Long getFreeSpaceInpagingFiles() {
return this.freeSpaceInpagingFiles;
}
public void setFreeSpaceInpagingFiles(Long freeSpaceInpagingFiles) {
this.freeSpaceInpagingFiles = freeSpaceInpagingFiles;
}
public Long getSizeStoredinpagingFiles() {
return this.sizeStoredinpagingFiles;
}
public void setSizeStoredinpagingFiles(Long sizeStoredinpagingFiles) {
this.sizeStoredinpagingFiles = sizeStoredinpagingFiles;
}
public Long getTotalMenmorySize() {
return this.totalMenmorySize;
}
public void setTotalMenmorySize(Long totalMenmorySize) {
this.totalMenmorySize = totalMenmorySize;
}
public Long getUsedMenmorySize() {
return this.usedMenmorySize;
}
public void setUsedMenmorySize(Long usedMenmorySize) {
this.usedMenmorySize = usedMenmorySize;
}
public Long getFreeMemorySize() {
return this.freeMemorySize;
}
public void setFreeMemorySize(Long freeMemorySize) {
this.freeMemorySize = freeMemorySize;
}
public Long getUsedMemoryPerc() {
return this.usedMemoryPerc;
}
public void setUsedMemoryPerc(Long usedMemoryPerc) {
this.usedMemoryPerc = usedMemoryPerc;
}
public Date getDataCheckTime() {
return this.dataCheckTime;
}
public void setDataCheckTime(Date dataCheckTime) {
this.dataCheckTime = dataCheckTime;
}
public Date getDataArriveTime() {
return this.dataArriveTime;
}
public void setDataArriveTime(Date dataArriveTime) {
this.dataArriveTime = dataArriveTime;
}
}

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DetectInfoNetdata" table="DETECT_INFO_NETDATA">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_detect_info_netdata</param>
</generator>
</id>
<many-to-one name="detectionInfo" class="nis.nms.domains.DetectionInfo" fetch="select">
<column name="DETECTION_INFO_ID" precision="22" scale="0" not-null="true" />
</many-to-one>
<property name="rxPackets" type="java.lang.Long">
<column name="RX_PACKETS" precision="22" scale="0" />
</property>
<property name="txPackets" type="java.lang.Long">
<column name="TX_PACKETS" precision="22" scale="0" />
</property>
<property name="rxBytes" type="java.lang.Long">
<column name="RX_BYTES" precision="22" scale="0" />
</property>
<property name="txBytes" type="java.lang.Long">
<column name="TX_BYTES" precision="22" scale="0" />
</property>
<property name="rxErrors" type="java.lang.Long">
<column name="RX_ERRORS" precision="22" scale="0" />
</property>
<property name="txErrors" type="java.lang.Long">
<column name="TX_ERRORS" precision="22" scale="0" />
</property>
<property name="rxDropped" type="java.lang.Long">
<column name="RX_DROPPED" precision="22" scale="0" />
</property>
<property name="txDropped" type="java.lang.Long">
<column name="TX_DROPPED" precision="22" scale="0" />
</property>
<property name="dataCheckTime" type="java.util.Date">
<column name="DATA_CHECK_TIME" length="7" />
</property>
<property name="dataArriveTime" type="java.util.Date">
<column name="DATA_ARRIVE_TIME" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,155 @@
package nis.nms.domains;
import java.util.Date;
/**
* DetectInfoNetdata entity.
*
* @author MyEclipse Persistence Tools
*/
public class DetectInfoNetdata implements java.io.Serializable {
// Fields
private Long id;
private DetectionInfo detectionInfo;
private Long rxPackets;
private Long txPackets;
private Long rxBytes;
private Long txBytes;
private Long rxErrors;
private Long txErrors;
private Long rxDropped;
private Long txDropped;
private Date dataCheckTime;
private Date dataArriveTime;
// Constructors
/** default constructor */
public DetectInfoNetdata() {
}
/** minimal constructor */
public DetectInfoNetdata(DetectionInfo detectionInfo) {
this.detectionInfo = detectionInfo;
}
/** full constructor */
public DetectInfoNetdata(DetectionInfo detectionInfo, Long rxPackets,
Long txPackets, Long rxBytes, Long txBytes, Long rxErrors,
Long txErrors, Long rxDropped, Long txDropped, Date dataCheckTime,
Date dataArriveTime) {
this.detectionInfo = detectionInfo;
this.rxPackets = rxPackets;
this.txPackets = txPackets;
this.rxBytes = rxBytes;
this.txBytes = txBytes;
this.rxErrors = rxErrors;
this.txErrors = txErrors;
this.rxDropped = rxDropped;
this.txDropped = txDropped;
this.dataCheckTime = dataCheckTime;
this.dataArriveTime = dataArriveTime;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public DetectionInfo getDetectionInfo() {
return this.detectionInfo;
}
public void setDetectionInfo(DetectionInfo detectionInfo) {
this.detectionInfo = detectionInfo;
}
public Long getRxPackets() {
return this.rxPackets;
}
public void setRxPackets(Long rxPackets) {
this.rxPackets = rxPackets;
}
public Long getTxPackets() {
return this.txPackets;
}
public void setTxPackets(Long txPackets) {
this.txPackets = txPackets;
}
public Long getRxBytes() {
return this.rxBytes;
}
public void setRxBytes(Long rxBytes) {
this.rxBytes = rxBytes;
}
public Long getTxBytes() {
return this.txBytes;
}
public void setTxBytes(Long txBytes) {
this.txBytes = txBytes;
}
public Long getRxErrors() {
return this.rxErrors;
}
public void setRxErrors(Long rxErrors) {
this.rxErrors = rxErrors;
}
public Long getTxErrors() {
return this.txErrors;
}
public void setTxErrors(Long txErrors) {
this.txErrors = txErrors;
}
public Long getRxDropped() {
return this.rxDropped;
}
public void setRxDropped(Long rxDropped) {
this.rxDropped = rxDropped;
}
public Long getTxDropped() {
return this.txDropped;
}
public void setTxDropped(Long txDropped) {
this.txDropped = txDropped;
}
public Date getDataCheckTime() {
return this.dataCheckTime;
}
public void setDataCheckTime(Date dataCheckTime) {
this.dataCheckTime = dataCheckTime;
}
public Date getDataArriveTime() {
return this.dataArriveTime;
}
public void setDataArriveTime(Date dataArriveTime) {
this.dataArriveTime = dataArriveTime;
}
}

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DetectInfoPing" table="DETECT_INFO_PING">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_detect_info_ping</param>
</generator>
</id>
<many-to-one name="detectionInfo" class="nis.nms.domains.DetectionInfo" fetch="select">
<column name="DETECTION_INFO_ID" precision="22" scale="0" />
</many-to-one>
<property name="packetsSend" type="java.lang.Long">
<column name="PACKETS_SEND" precision="22" scale="0" />
</property>
<property name="packetsReceived" type="java.lang.Long">
<column name="PACKETS_RECEIVED" precision="22" scale="0" />
</property>
<property name="packetsLost" type="java.lang.Long">
<column name="PACKETS_LOST" precision="22" scale="0" />
</property>
<property name="packetsLostRate" type="java.lang.Long">
<column name="PACKETS_LOST_RATE" precision="22" scale="0" />
</property>
<property name="timeConsumingMin" type="java.lang.Long">
<column name="TIME_CONSUMING_MIN" precision="22" scale="0" />
</property>
<property name="timeConsumingMax" type="java.lang.Long">
<column name="TIME_CONSUMING_MAX" precision="22" scale="0" />
</property>
<property name="timeConsumingAver" type="java.lang.Long">
<column name="TIME_CONSUMING_AVER" precision="22" scale="0" />
</property>
<property name="dataCheckTime" type="java.util.Date">
<column name="DATA_CHECK_TIME" length="7" />
</property>
<property name="dataArriveTime" type="java.util.Date">
<column name="DATA_ARRIVE_TIME" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,140 @@
package nis.nms.domains;
import java.util.Date;
/**
* DetectInfoPing entity.
*
* @author MyEclipse Persistence Tools
*/
public class DetectInfoPing implements java.io.Serializable {
// Fields
private Long id;
private DetectionInfo detectionInfo;
private Long packetsSend;
private Long packetsReceived;
private Long packetsLost;
private Long packetsLostRate;
private Long timeConsumingMin;
private Long timeConsumingMax;
private Long timeConsumingAver;
private Date dataCheckTime;
private Date dataArriveTime;
// Constructors
/** default constructor */
public DetectInfoPing() {
}
/** full constructor */
public DetectInfoPing(DetectionInfo detectionInfo, Long packetsSend,
Long packetsReceived, Long packetsLost, Long packetsLostRate,
Long timeConsumingMin, Long timeConsumingMax,
Long timeConsumingAver, Date dataCheckTime, Date dataArriveTime) {
this.detectionInfo = detectionInfo;
this.packetsSend = packetsSend;
this.packetsReceived = packetsReceived;
this.packetsLost = packetsLost;
this.packetsLostRate = packetsLostRate;
this.timeConsumingMin = timeConsumingMin;
this.timeConsumingMax = timeConsumingMax;
this.timeConsumingAver = timeConsumingAver;
this.dataCheckTime = dataCheckTime;
this.dataArriveTime = dataArriveTime;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public DetectionInfo getDetectionInfo() {
return this.detectionInfo;
}
public void setDetectionInfo(DetectionInfo detectionInfo) {
this.detectionInfo = detectionInfo;
}
public Long getPacketsSend() {
return this.packetsSend;
}
public void setPacketsSend(Long packetsSend) {
this.packetsSend = packetsSend;
}
public Long getPacketsReceived() {
return this.packetsReceived;
}
public void setPacketsReceived(Long packetsReceived) {
this.packetsReceived = packetsReceived;
}
public Long getPacketsLost() {
return this.packetsLost;
}
public void setPacketsLost(Long packetsLost) {
this.packetsLost = packetsLost;
}
public Long getPacketsLostRate() {
return this.packetsLostRate;
}
public void setPacketsLostRate(Long packetsLostRate) {
this.packetsLostRate = packetsLostRate;
}
public Long getTimeConsumingMin() {
return this.timeConsumingMin;
}
public void setTimeConsumingMin(Long timeConsumingMin) {
this.timeConsumingMin = timeConsumingMin;
}
public Long getTimeConsumingMax() {
return this.timeConsumingMax;
}
public void setTimeConsumingMax(Long timeConsumingMax) {
this.timeConsumingMax = timeConsumingMax;
}
public Long getTimeConsumingAver() {
return this.timeConsumingAver;
}
public void setTimeConsumingAver(Long timeConsumingAver) {
this.timeConsumingAver = timeConsumingAver;
}
public Date getDataCheckTime() {
return this.dataCheckTime;
}
public void setDataCheckTime(Date dataCheckTime) {
this.dataCheckTime = dataCheckTime;
}
public Date getDataArriveTime() {
return this.dataArriveTime;
}
public void setDataArriveTime(Date dataArriveTime) {
this.dataArriveTime = dataArriveTime;
}
}

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DetectInfoSystemDate" table="DETECT_INFO_SYSTEM_DATE">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_detect_info_system_date</param>
</generator>
</id>
<many-to-one name="detectionInfo" class="nis.nms.domains.DetectionInfo" fetch="select">
<column name="DETECTION_INFO_ID" precision="22" scale="0" />
</many-to-one>
<property name="serviceDate" type="java.util.Date">
<column name="SERVICE_DATE" length="7" />
</property>
<property name="detectDate" type="java.util.Date">
<column name="DETECT_DATE" length="7" />
</property>
<property name="timeDelay" type="java.lang.Long">
<column name="TIME_DELAY" precision="22" scale="0" />
</property>
<property name="dataCheckTime" type="java.util.Date">
<column name="DATA_CHECK_TIME" length="7" />
</property>
<property name="dataArriveTime" type="java.util.Date">
<column name="DATA_ARRIVE_TIME" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,99 @@
package nis.nms.domains;
import java.util.Date;
/**
* DetectInfoSystemDate entity.
*
* @author MyEclipse Persistence Tools
*/
public class DetectInfoSystemDate implements java.io.Serializable {
// Fields
private Long id;
private DetectionInfo detectionInfo;
private Date serviceDate;
private Date detectDate;
private Long timeDelay;
private Date dataCheckTime;
private Date dataArriveTime;
// Constructors
/** default constructor */
public DetectInfoSystemDate() {
}
/** full constructor */
public DetectInfoSystemDate(DetectionInfo detectionInfo, Date serviceDate,
Date detectDate, Long timeDelay, Date dataCheckTime,
Date dataArriveTime) {
this.detectionInfo = detectionInfo;
this.serviceDate = serviceDate;
this.detectDate = detectDate;
this.timeDelay = timeDelay;
this.dataCheckTime = dataCheckTime;
this.dataArriveTime = dataArriveTime;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public DetectionInfo getDetectionInfo() {
return this.detectionInfo;
}
public void setDetectionInfo(DetectionInfo detectionInfo) {
this.detectionInfo = detectionInfo;
}
public Date getServiceDate() {
return this.serviceDate;
}
public void setServiceDate(Date serviceDate) {
this.serviceDate = serviceDate;
}
public Date getDetectDate() {
return this.detectDate;
}
public void setDetectDate(Date detectDate) {
this.detectDate = detectDate;
}
public Long getTimeDelay() {
return this.timeDelay;
}
public void setTimeDelay(Long timeDelay) {
this.timeDelay = timeDelay;
}
public Date getDataCheckTime() {
return this.dataCheckTime;
}
public void setDataCheckTime(Date dataCheckTime) {
this.dataCheckTime = dataCheckTime;
}
public Date getDataArriveTime() {
return this.dataArriveTime;
}
public void setDataArriveTime(Date dataArriveTime) {
this.dataArriveTime = dataArriveTime;
}
}

View File

@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DetectionInfo" table="DETECTION_INFO">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_detection_info</param>
</generator>
</id>
<many-to-one name="detectionSetInfo" class="nis.nms.domains.DetectionSetInfo" fetch="select">
<column name="DETECTION_SET_INFO_ID" precision="22" scale="0" />
</many-to-one>
<property name="checkWay" type="java.lang.String">
<column name="CHECK_WAY" length="1" />
</property>
<property name="detectionStateInfo" type="java.lang.String">
<column name="DETECTION_STATE_INFO" length="256" />
</property>
<property name="performaceData" type="java.lang.String">
<column name="PERFORMACE_DATA" length="256" />
</property>
<property name="currentTimes" type="java.lang.Long">
<column name="CURRENT_TIMES" precision="22" scale="0" />
</property>
<property name="startTime" type="java.util.Date">
<column name="START_TIME" length="7" />
</property>
<property name="waitTime" type="java.lang.Long">
<column name="WAIT_TIME" precision="22" scale="0" />
</property>
<property name="delayTime" type="java.lang.Long">
<column name="DELAY_TIME" precision="22" scale="0" />
</property>
<property name="nextCheckTime" type="java.util.Date">
<column name="NEXT_CHECK_TIME" length="7" />
</property>
<property name="offLine" type="java.util.Date">
<column name="OFF_LINE" length="7" />
</property>
<property name="policeLevel" type="java.lang.Long">
<column name="POLICE_LEVEL" precision="22" scale="0" />
</property>
<property name="nodeIp" type="java.lang.String">
<column name="NODE_IP" length="64" />
</property>
<property name="detectionedState" type="java.lang.String">
<column name="DETECTIONED_STATE" length="1" />
</property>
<property name="datacheckTime" type="java.util.Date">
<column name="DATA_CHECK_TIME" length="7" />
</property>
<property name="dataArriveTime" type="java.util.Date">
<column name="DATA_ARRIVE_TIME" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,197 @@
package nis.nms.domains;
import java.util.Date;
/**
* DetectionInfo entity.
*
* @author MyEclipse Persistence Tools
*/
public class DetectionInfo implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = 1L;
private Long id;
private DetectionSetInfo detectionSetInfo;
private String checkWay;
private String detectionStateInfo;
private String performaceData;
private Long currentTimes;
private Date startTime;
private Long waitTime;
private Long delayTime;
private Date nextCheckTime;
private Date offLine;
private Long policeLevel;
private String nodeIp;
private String detectionedState;
private Date datacheckTime;
private Date dataArriveTime;
// Constructors
/** default constructor */
public DetectionInfo() {
}
/** full constructor */
public DetectionInfo(DetectionSetInfo detectionSetInfo, String checkWay,
String detectionStateInfo, String performaceData,
Long currentTimes, Date startTime, Long waitTime, Long delayTime,
Date nextCheckTime, Date offLine, Long policeLevel,
Date datacheckTime, Date dataArriveTime,String nodeIp,String detectionedState) {
this.detectionSetInfo = detectionSetInfo;
this.checkWay = checkWay;
this.detectionStateInfo = detectionStateInfo;
this.performaceData = performaceData;
this.currentTimes = currentTimes;
this.startTime = startTime;
this.waitTime = waitTime;
this.delayTime = delayTime;
this.nextCheckTime = nextCheckTime;
this.offLine = offLine;
this.policeLevel = policeLevel;
this.nodeIp = nodeIp;
this.detectionedState = detectionedState;
this.datacheckTime = datacheckTime;
this.dataArriveTime = dataArriveTime;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public DetectionSetInfo getDetectionSetInfo() {
return this.detectionSetInfo;
}
public void setDetectionSetInfo(DetectionSetInfo detectionSetInfo) {
this.detectionSetInfo = detectionSetInfo;
}
public String getCheckWay() {
return this.checkWay;
}
public void setCheckWay(String checkWay) {
this.checkWay = checkWay;
}
public String getDetectionStateInfo() {
return this.detectionStateInfo;
}
public void setDetectionStateInfo(String detectionStateInfo) {
this.detectionStateInfo = detectionStateInfo;
}
public String getPerformaceData() {
return this.performaceData;
}
public void setPerformaceData(String performaceData) {
this.performaceData = performaceData;
}
public Long getCurrentTimes() {
return this.currentTimes;
}
public void setCurrentTimes(Long currentTimes) {
this.currentTimes = currentTimes;
}
public Date getStartTime() {
return this.startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Long getWaitTime() {
return this.waitTime;
}
public void setWaitTime(Long waitTime) {
this.waitTime = waitTime;
}
public Long getDelayTime() {
return this.delayTime;
}
public void setDelayTime(Long delayTime) {
this.delayTime = delayTime;
}
public Date getNextCheckTime() {
return this.nextCheckTime;
}
public void setNextCheckTime(Date nextCheckTime) {
this.nextCheckTime = nextCheckTime;
}
public Date getOffLine() {
return this.offLine;
}
public void setOffLine(Date offLine) {
this.offLine = offLine;
}
public Long getPoliceLevel() {
return this.policeLevel;
}
public void setPoliceLevel(Long policeLevel) {
this.policeLevel = policeLevel;
}
public Date getDataArriveTime() {
return this.dataArriveTime;
}
public void setDataArriveTime(Date dataArriveTime) {
this.dataArriveTime = dataArriveTime;
}
public String getNodeIp() {
return nodeIp;
}
public void setNodeIp(String nodeIp) {
this.nodeIp = nodeIp;
}
public String getDetectionedState() {
return detectionedState;
}
public void setDetectionedState(String detectionedState) {
this.detectionedState = detectionedState;
}
public Date getDatacheckTime() {
return datacheckTime;
}
public void setDatacheckTime(Date datacheckTime) {
this.datacheckTime = datacheckTime;
}
}

View File

@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DetectionInfoNew" table="DETECTION_INFO_NEW">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_detection_info_new</param>
</generator>
</id>
<many-to-one name="detectionSetInfo" class="nis.nms.domains.DetectionSetInfo" fetch="select">
<column name="DETECTION_SET_INFO_ID" precision="22" scale="0" />
</many-to-one>
<property name="detectionInfoId" type="java.lang.Long">
<column name="DETECTION_INFO_ID" precision="22" scale="0" />
</property>
<property name="checkWay" type="java.lang.String">
<column name="CHECK_WAY" length="1" />
</property>
<property name="detectionStateInfo" type="java.lang.String">
<column name="DETECTION_STATE_INFO" length="256" />
</property>
<property name="performaceData" type="java.lang.String">
<column name="PERFORMACE_DATA" length="256" />
</property>
<property name="currentTimes" type="java.lang.Long">
<column name="CURRENT_TIMES" precision="22" scale="0" />
</property>
<property name="startTime" type="java.util.Date">
<column name="START_TIME" length="7" />
</property>
<property name="waitTime" type="java.lang.Long">
<column name="WAIT_TIME" precision="22" scale="0" />
</property>
<property name="delayTime" type="java.lang.Long">
<column name="DELAY_TIME" precision="22" scale="0" />
</property>
<property name="nextCheckTime" type="java.util.Date">
<column name="NEXT_CHECK_TIME" length="7" />
</property>
<property name="offLine" type="java.util.Date">
<column name="OFF_LINE" length="7" />
</property>
<property name="policeLevel" type="java.lang.Long">
<column name="POLICE_LEVEL" precision="22" scale="0" />
</property>
<property name="detectionedState" type="java.lang.String">
<column name="DETECTIONED_STATE" length="1" />
</property>
<property name="nodeIp" type="java.lang.String">
<column name="NODE_IP" length="64" />
</property>
<property name="datacheckTime" type="java.util.Date">
<column name="DATA_CHECK_TIME" length="7" />
</property>
<property name="dataArriveTime" type="java.util.Date">
<column name="DATA_ARRIVE_TIME" length="7" />
</property>
<property name="statusChangeTime" type="java.util.Date">
<column name="STATUS_CHANGE_TIME" length="7" />
</property>
<property name="seqId" type="java.lang.Long">
<column name="SEQ_ID" precision="22" scale="0" />
</property>
<property name="valid" type="java.lang.Long">
<column name="VALID" precision="22" scale="0" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,243 @@
package nis.nms.domains;
import java.util.Date;
/**
* DetectionInfoNew entity.
*
* @author MyEclipse Persistence Tools
*/
public class DetectionInfoNew implements java.io.Serializable {
// Fields
private static final long serialVersionUID = 1L;
private Long id;
private DetectionSetInfo detectionSetInfo;
private Long detectionInfoId;
private String checkWay;
private String detectionStateInfo;
private String performaceData;
private Long currentTimes;
private Date startTime;
private Long waitTime;
private Long delayTime;
private Date nextCheckTime;
private Date offLine;
private Long policeLevel;
private String nodeIp;
private String detectionedState;
private Date datacheckTime;
private Date dataArriveTime;
private Date statusChangeTime;
//持续时间
private String persistTime;
private Long seqId;
private Long valid;
// Constructors
public Long getValid()
{
return valid;
}
public void setValid(Long valid)
{
this.valid = valid;
}
/** default constructor */
public DetectionInfoNew() {
}
/** full constructor */
public DetectionInfoNew(DetectionSetInfo detectionSetInfo, Long detectionInfoId,String checkWay,
String detectionStateInfo,String performaceData,
Long currentTimes, Date startTime, Long waitTime, Long delayTime,
Date nextCheckTime, Date offLine, Long policeLevel,String nodeIp,
String detectionedState, Date datacheckTime, Date dataArriveTime,Date statusChangeTime,Long seqId) {
this.detectionSetInfo = detectionSetInfo;
this.detectionInfoId = detectionInfoId;
this.checkWay = checkWay;
this.detectionStateInfo = detectionStateInfo;
this.performaceData = performaceData;
this.currentTimes = currentTimes;
this.startTime = startTime;
this.waitTime = waitTime;
this.delayTime = delayTime;
this.nextCheckTime = nextCheckTime;
this.offLine = offLine;
this.policeLevel = policeLevel;
this.nodeIp = nodeIp;
this.detectionedState = detectionedState;
this.datacheckTime = datacheckTime;
this.dataArriveTime = dataArriveTime;
this.statusChangeTime = statusChangeTime;
this.seqId = seqId;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getSeqId() {
return seqId;
}
public void setSeqId(Long seqId) {
this.seqId = seqId;
}
public DetectionSetInfo getDetectionSetInfo() {
return this.detectionSetInfo;
}
public void setDetectionSetInfo(DetectionSetInfo detectionSetInfo) {
this.detectionSetInfo = detectionSetInfo;
}
public String getCheckWay() {
return this.checkWay;
}
public void setCheckWay(String checkWay) {
this.checkWay = checkWay;
}
public String getDetectionStateInfo() {
return this.detectionStateInfo;
}
public void setDetectionStateInfo(String detectionStateInfo) {
this.detectionStateInfo = detectionStateInfo;
}
public String getPerformaceData() {
return this.performaceData;
}
public void setPerformaceData(String performaceData) {
this.performaceData = performaceData;
}
public Long getCurrentTimes() {
return this.currentTimes;
}
public void setCurrentTimes(Long currentTimes) {
this.currentTimes = currentTimes;
}
public Date getStartTime() {
return this.startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Long getWaitTime() {
return this.waitTime;
}
public void setWaitTime(Long waitTime) {
this.waitTime = waitTime;
}
public Long getDelayTime() {
return this.delayTime;
}
public void setDelayTime(Long delayTime) {
this.delayTime = delayTime;
}
public Date getNextCheckTime() {
return this.nextCheckTime;
}
public void setNextCheckTime(Date nextCheckTime) {
this.nextCheckTime = nextCheckTime;
}
public Date getOffLine() {
return this.offLine;
}
public void setOffLine(Date offLine) {
this.offLine = offLine;
}
public Long getPoliceLevel() {
return this.policeLevel;
}
public void setPoliceLevel(Long policeLevel) {
this.policeLevel = policeLevel;
}
public String getNodeIp() {
return nodeIp;
}
public void setNodeIp(String nodeIp) {
this.nodeIp = nodeIp;
}
public String getDetectionedState() {
return detectionedState;
}
public void setDetectionedState(String detectionedState) {
this.detectionedState = detectionedState;
}
public Date getDatacheckTime() {
return datacheckTime;
}
public void setDatacheckTime(Date datacheckTime) {
this.datacheckTime = datacheckTime;
}
public Date getDataArriveTime() {
return this.dataArriveTime;
}
public void setDataArriveTime(Date dataArriveTime) {
this.dataArriveTime = dataArriveTime;
}
public String getPersistTime() {
return persistTime;
}
public void setPersistTime(String persistTime) {
this.persistTime = persistTime;
}
public Date getStatusChangeTime() {
return statusChangeTime;
}
public void setStatusChangeTime(Date statusChangeTime) {
this.statusChangeTime = statusChangeTime;
}
public Long getDetectionInfoId() {
return detectionInfoId;
}
public void setDetectionInfoId(Long detectionInfoId) {
this.detectionInfoId = detectionInfoId;
}
}

View File

@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DetectionInfoWarning" table="DETECTION_INFO_WARNING">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_detection_info_warning</param>
</generator>
</id>
<many-to-one name="detectionSetInfo" class="nis.nms.domains.DetectionSetInfo" fetch="select">
<column name="DETECTION_SET_INFO_ID" precision="22" scale="0" />
</many-to-one>
<property name="detectionInfoId" type="java.lang.Long">
<column name="DETECTION_INFO_ID" precision="22" scale="0" />
</property>
<property name="checkWay" type="java.lang.String">
<column name="CHECK_WAY" length="1" />
</property>
<property name="detectionStateInfo" type="java.lang.String">
<column name="DETECTION_STATE_INFO" length="256" />
</property>
<property name="performaceData" type="java.lang.String">
<column name="PERFORMACE_DATA" length="256" />
</property>
<property name="currentTimes" type="java.lang.Long">
<column name="CURRENT_TIMES" precision="22" scale="0" />
</property>
<property name="startTime" type="java.util.Date">
<column name="START_TIME" length="7" />
</property>
<property name="waitTime" type="java.lang.Long">
<column name="WAIT_TIME" precision="22" scale="0" />
</property>
<property name="seqId" type="java.lang.Long">
<column name="SEQ_ID" precision="22" scale="0" />
</property>
<property name="delayTime" type="java.lang.Long">
<column name="DELAY_TIME" precision="22" scale="0" />
</property>
<property name="nextCheckTime" type="java.util.Date">
<column name="NEXT_CHECK_TIME" length="7" />
</property>
<property name="offLine" type="java.util.Date">
<column name="OFF_LINE" length="7" />
</property>
<property name="policeLevel" type="java.lang.Long">
<column name="POLICE_LEVEL" precision="22" scale="0" />
</property>
<property name="dataCheckTime" type="java.util.Date">
<column name="DATA_CHECK_TIME" length="7" />
</property>
<property name="dataArriveTime" type="java.util.Date">
<column name="DATA_ARRIVE_TIME" length="7" />
</property>
<property name="noticeFlag" type="java.lang.String">
<column name="NOTICE_FLAG" length="1" />
</property>
<property name="detectionedState" type="java.lang.String">
<column name="DETECTIONED_STATE" length="1" />
</property>
<property name="noticeInfo" type="java.lang.String">
<column name="NOTICE_INFO" length="500" />
</property>
<property name="nodeIp" type="java.lang.String">
<column name="NODE_IP" length="64" />
</property>
<property name="statusChangeTime" type="java.util.Date">
<column name="STATUS_CHANGE_TIME" length="7" />
</property>
<property name="valid" type="java.lang.Long">
<column name="VALID" precision="22" scale="0" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,346 @@
package nis.nms.domains;
import java.util.Date;
/**
* DetectionInfoWarning entity.
*
* @author MyEclipse Persistence Tools
*/
public class DetectionInfoWarning implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = 1L;
private Long id;
private DetectionSetInfo detectionSetInfo;
private String checkWay;
private String detectionStateInfo;
private String performaceData;
private Long currentTimes;
private Date startTime;
private Long waitTime;
private Long delayTime;
private Date nextCheckTime;
private Date offLine;
private Long policeLevel;
private Date dataCheckTime;
private Date dataArriveTime;
private String noticeFlag;
private String detectionedState;
private String noticeInfo;
private String nodeIp;
private Date statusChangeTime;
private Long detectionInfoId;
private Long seqId;
private Long valid;
private String nodeSysType;
private String nodeType;
//bgcolor
private String bgcolor;
//持续时间
private String persistTime;
// Constructors
/** default constructor */
public DetectionInfoWarning() {
}
/** full constructor */
public DetectionInfoWarning(DetectionSetInfo detectionSetInfo,
String checkWay, String detectionStateInfo, String performaceData,
Long currentTimes, Date startTime, Long waitTime, Long delayTime,
Date nextCheckTime, Date offLine, Long policeLevel,
Date dataCheckTime, Date dataArriveTime, String noticeFlag,
String detectionedState, String noticeInfo, String nodeIp,
Date statusChangeTime, Long detectionInfoId, Long seqId,
String nodeSysType, String nodeType) {
this.detectionSetInfo = detectionSetInfo;
this.checkWay = checkWay;
this.detectionStateInfo = detectionStateInfo;
this.performaceData = performaceData;
this.currentTimes = currentTimes;
this.startTime = startTime;
this.waitTime = waitTime;
this.delayTime = delayTime;
this.nextCheckTime = nextCheckTime;
this.offLine = offLine;
this.policeLevel = policeLevel;
this.dataCheckTime = dataCheckTime;
this.dataArriveTime = dataArriveTime;
this.noticeFlag = noticeFlag;
this.detectionedState = detectionedState;
this.noticeInfo = noticeInfo;
this.nodeIp = nodeIp;
this.statusChangeTime = statusChangeTime;
this.detectionInfoId = detectionInfoId;
this.seqId=seqId;
this.nodeSysType = nodeSysType;
this.nodeType = nodeType;
}
public DetectionInfoWarning(Long id, DetectionSetInfo detectionSetInfo,
String checkWay, String detectionStateInfo, Long currentTimes,
Date startTime, Long policeLevel, Date dataCheckTime,
String noticeInfo, String bgcolor, String persistTime,
String nodeIp, Long seqId, String nodeSysType, String nodeType) {
this.id= id;
this.detectionSetInfo = detectionSetInfo;
this.checkWay = checkWay;
this.detectionStateInfo = detectionStateInfo;
this.currentTimes = currentTimes;
this.startTime = startTime;
this.policeLevel = policeLevel;
this.dataCheckTime = dataCheckTime;
this.noticeInfo = noticeInfo;
this.bgcolor = bgcolor;
this.persistTime = persistTime;
this.nodeIp = nodeIp;
this.seqId = seqId;
this.nodeSysType = nodeSysType;
this.nodeType = nodeType;
}
public DetectionInfoWarning(Long id, DetectionSetInfo detectionSetInfo,
String checkWay, String detectionStateInfo, Long currentTimes,
Date startTime, Long policeLevel, Date dataCheckTime,
String noticeInfo, String bgcolor, String persistTime,
String nodeIp, Long seqId, String nodeSysType, String nodeType,String performaceData) {
this.id= id;
this.detectionSetInfo = detectionSetInfo;
this.checkWay = checkWay;
this.detectionStateInfo = detectionStateInfo;
this.currentTimes = currentTimes;
this.startTime = startTime;
this.policeLevel = policeLevel;
this.dataCheckTime = dataCheckTime;
this.noticeInfo = noticeInfo;
this.bgcolor = bgcolor;
this.persistTime = persistTime;
this.nodeIp = nodeIp;
this.seqId = seqId;
this.nodeSysType = nodeSysType;
this.nodeType = nodeType;
this.performaceData = performaceData;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public DetectionSetInfo getDetectionSetInfo() {
return this.detectionSetInfo;
}
public void setDetectionSetInfo(DetectionSetInfo detectionSetInfo) {
this.detectionSetInfo = detectionSetInfo;
}
public String getCheckWay() {
return this.checkWay;
}
public void setCheckWay(String checkWay) {
this.checkWay = checkWay;
}
public String getDetectionStateInfo() {
return this.detectionStateInfo;
}
public void setDetectionStateInfo(String detectionStateInfo) {
this.detectionStateInfo = detectionStateInfo;
}
public String getPerformaceData() {
return this.performaceData;
}
public void setPerformaceData(String performaceData) {
this.performaceData = performaceData;
}
public Long getCurrentTimes() {
return this.currentTimes;
}
public void setCurrentTimes(Long currentTimes) {
this.currentTimes = currentTimes;
}
public Date getStartTime() {
return this.startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Long getWaitTime() {
return this.waitTime;
}
public void setWaitTime(Long waitTime) {
this.waitTime = waitTime;
}
public Long getDelayTime() {
return this.delayTime;
}
public void setDelayTime(Long delayTime) {
this.delayTime = delayTime;
}
public Date getNextCheckTime() {
return this.nextCheckTime;
}
public void setNextCheckTime(Date nextCheckTime) {
this.nextCheckTime = nextCheckTime;
}
public Date getOffLine() {
return this.offLine;
}
public void setOffLine(Date offLine) {
this.offLine = offLine;
}
public Long getPoliceLevel() {
return this.policeLevel;
}
public void setPoliceLevel(Long policeLevel) {
this.policeLevel = policeLevel;
}
public Date getDataArriveTime() {
return this.dataArriveTime;
}
public void setDataArriveTime(Date dataArriveTime) {
this.dataArriveTime = dataArriveTime;
}
public String getNoticeFlag() {
return this.noticeFlag;
}
public void setNoticeFlag(String noticeFlag) {
this.noticeFlag = noticeFlag;
}
public Date getDataCheckTime() {
return dataCheckTime;
}
public void setDataCheckTime(Date dataCheckTime) {
this.dataCheckTime = dataCheckTime;
}
public String getDetectionedState() {
return detectionedState;
}
public void setDetectionedState(String detectionedState) {
this.detectionedState = detectionedState;
}
public String getNoticeInfo() {
return noticeInfo;
}
public void setNoticeInfo(String noticeInfo) {
this.noticeInfo = noticeInfo;
}
public String getNodeIp() {
return nodeIp;
}
public void setNodeIp(String nodeIp) {
this.nodeIp = nodeIp;
}
public Date getStatusChangeTime() {
return statusChangeTime;
}
public void setStatusChangeTime(Date statusChangeTime) {
this.statusChangeTime = statusChangeTime;
}
public String getPersistTime() {
return persistTime;
}
public void setPersistTime(String persistTime) {
this.persistTime = persistTime;
}
public String getBgcolor() {
return bgcolor;
}
public void setBgcolor(String bgcolor) {
this.bgcolor = bgcolor;
}
public Long getDetectionInfoId() {
return detectionInfoId;
}
public void setDetectionInfoId(Long detectionInfoId) {
this.detectionInfoId = detectionInfoId;
}
public Long getSeqId() {
return seqId;
}
public void setSeqId(Long seqId) {
this.seqId = seqId;
}
public String getNodeSysType() {
return nodeSysType;
}
public void setNodeSysType(String nodeSysType) {
this.nodeSysType = nodeSysType;
}
public Long getValid()
{
return valid;
}
public void setValid(Long valid)
{
this.valid = valid;
}
public String getNodeType() {
return nodeType;
}
public void setNodeType(String nodeType) {
this.nodeType = nodeType;
}
}

View File

@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DetectionSetInfo" table="DETECTION_SET_INFO">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_detection_set_info</param>
</generator>
</id>
<many-to-one name="checkTypeInfo" class="nis.nms.domains.CheckTypeInfo" fetch="select">
<column name="CHECK_TYPE_ID" precision="22" scale="0" />
</many-to-one>
<many-to-one name="nodegroup" class="nis.nms.domains.NodegroupTable" fetch="select">
<column name="GROUP_ID" precision="22" scale="0" />
</many-to-one>
<property name="nodeIp" type="java.lang.String">
<column name="NODE_IP" length="500" />
</property>
<property name="checkGap" type="java.lang.Long">
<column name="CHECK_GAP" precision="22" scale="0" />
</property>
<property name="checkWay" type="java.lang.String">
<column name="CHECK_WAY" length="1" />
</property>
<property name="checkOutTime" type="java.lang.Long">
<column name="CHECK_OUT_TIME" precision="22" scale="0" />
</property>
<property name="checkMaxTimes" type="java.lang.Long">
<column name="CHECK_MAX_TIMES" precision="22" scale="0" />
</property>
<property name="processIden" type="java.lang.String">
<column name="PROCESS_IDEN" length="50" />
</property>
<property name="processIdenName" type="java.lang.String">
<column name="PROCESS_IDEN_NAME" length="50" />
</property>
<property name="detectionSetState" type="java.lang.String">
<column name="DETECTION_SET_STATE" length="1" />
</property>
<property name="processFile" type="java.lang.String">
<column name="PROCESS_FILE" length="64" />
</property>
<property name="processPath" type="java.lang.String">
<column name="PROCESS_PATH" length="64" />
</property>
<property name="isIssue" type="java.lang.String">
<column name="IS_ISSUE" length="1" />
</property>
<property name="isIssued" type="java.lang.String">
<column name="IS_ISSUED" length="1" />
</property>
<property name="isIssueFile" type="java.lang.String">
<column name="IS_ISSUE_FILE" length="1" />
</property>
<property name="isControlStart" type="java.lang.String">
<column name="IS_CONTROL_START" length="1" />
</property>
<property name="oid" type="java.lang.String">
<column name="OID" length="100" />
</property>
<property name="uploadGap" type="java.lang.Long">
<column name="UPLOAD_GAP" precision="22" scale="0" />
</property>
<property name="controlStartTime" type="java.util.Date">
<column name="CONTROL_START_TIME" length="7" />
</property>
<property name="planCheckTime" type="java.util.Date">
<column name="PLAN_CHECK_TIME" length="7" />
</property>
<property name="viewLevel" type="java.lang.Long">
<column name="VIEW_LEVEL" length="1" />
</property>
<property name="createUserId" type="java.lang.Long">
<column name="CREATE_USER_ID" />
</property>
<property name="createUserGroupId" type="java.lang.Long">
<column name="CREATE_USERGROUP_ID" />
</property>
<property name="systemId" type="java.lang.Long">
<column name="SYSTEM_ID" />
</property>
<property name="contactUserIds" type="java.lang.String">
<column name="CONTACT_USER_IDS" />
</property>
<property name="nodeGroupsId" type="java.lang.String">
<column name="NODE_GROUPS_ID" length="500"/>
</property>
<property name="nodeIpsId" type="java.lang.String">
<column name="NODE_IPS_ID" length="500"/>
</property>
<property name="processSearchCode" type="java.lang.String">
<column name="PROCESS_SEARCH_KEYCODE" length="64"/>
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,361 @@
package nis.nms.domains;
import java.util.Date;
/**
* DetectionSetInfo entity.
*
* @author MyEclipse Persistence Tools
*/
public class DetectionSetInfo implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = 1L;
private Long id;
private CheckTypeInfo checkTypeInfo;
private DetectionInfoNew detectionInfoNew;
private NodegroupTable nodegroup;
private String nodeIp;
private Long checkGap;
private String checkWay;
private Long checkOutTime;
private Long checkMaxTimes;
private String processIden;//监测使用的设置名(英文)
private String processIdenName;//展示使用的设置名(可汉语)
private String detectionSetState;
private String processFile;
private String processPath;
private String isIssue;
private String isIssued;
private String isIssueFile;
private String isControlStart;
private String oid;
private Long uploadGap;
private Date controlStartTime;
private Date planCheckTime;
private Long viewLevel;
private Long createUserId;
private Long createUserGroupId;
private Long systemId;
private String contactUserIds;
private String nodeGroupsId;//所选节点组id
private String nodeIpsId;//所选节点id
private String nodeGroupsName;//所选节点组id
private String nodeIpsName;//所选节点id
private String processSearchCode;
// Constructors
/** default constructor */
public DetectionSetInfo() {
}
/** full constructor */
public DetectionSetInfo(CheckTypeInfo checkTypeInfo,String nodeIp,
Long checkGap, String checkWay, Long checkOutTime,
Long checkMaxTimes, String processIden, String detectionSetState,
String processFile, String processPath, String isIssue,
String isIssued, String isIssueFile, String isControlStart,
String oid, NodegroupTable nodegroup,Long uploadGap,
Date controlStartTime,Date planCheckTime,String nodeGroupsId,String nodeIpsId,String processSearchCode) {
this.checkTypeInfo = checkTypeInfo;
this.nodeIp = nodeIp;
this.checkGap = checkGap;
this.checkWay = checkWay;
this.checkOutTime = checkOutTime;
this.checkMaxTimes = checkMaxTimes;
this.processIden = processIden;
this.detectionSetState = detectionSetState;
this.processFile = processFile;
this.processPath = processPath;
this.isIssue = isIssue;
this.isIssued = isIssued;
this.isIssueFile = isIssueFile;
this.isControlStart = isControlStart;
this.oid = oid;
this.nodegroup=nodegroup;
this.uploadGap = uploadGap;
this.controlStartTime = controlStartTime;
this.planCheckTime = planCheckTime;
this.nodeGroupsId = nodeGroupsId;
this.nodeIpsId = nodeIpsId;
this.processSearchCode = processSearchCode;
}
// Property accessors
public Long getId() {
return this.id;
}
public DetectionInfoNew getDetectionInfoNew() {
return detectionInfoNew;
}
public void setDetectionInfoNew(DetectionInfoNew detectionInfoNew) {
this.detectionInfoNew = detectionInfoNew;
}
public void setId(Long id) {
this.id = id;
}
public CheckTypeInfo getCheckTypeInfo() {
return this.checkTypeInfo;
}
public void setCheckTypeInfo(CheckTypeInfo checkTypeInfo) {
this.checkTypeInfo = checkTypeInfo;
}
public String getNodeIp() {
return this.nodeIp;
}
public void setNodeIp(String nodeIp) {
this.nodeIp = nodeIp;
}
public Long getCheckGap() {
return this.checkGap;
}
public void setCheckGap(Long checkGap) {
this.checkGap = checkGap;
}
public String getCheckWay() {
return this.checkWay;
}
public void setCheckWay(String checkWay) {
this.checkWay = checkWay;
}
public Long getCheckOutTime() {
return this.checkOutTime;
}
public void setCheckOutTime(Long checkOutTime) {
this.checkOutTime = checkOutTime;
}
public Long getCheckMaxTimes() {
return this.checkMaxTimes;
}
public void setCheckMaxTimes(Long checkMaxTimes) {
this.checkMaxTimes = checkMaxTimes;
}
public String getProcessIden() {
return this.processIden;
}
public void setProcessIden(String processIden) {
this.processIden = processIden;
}
public String getDetectionSetState() {
return this.detectionSetState;
}
public void setDetectionSetState(String detectionSetState) {
this.detectionSetState = detectionSetState;
}
public String getProcessFile() {
return this.processFile;
}
public void setProcessFile(String processFile) {
this.processFile = processFile;
}
public String getProcessPath() {
return this.processPath;
}
public void setProcessPath(String processPath) {
this.processPath = processPath;
}
public String getIsIssue() {
return isIssue;
}
public void setIsIssue(String isIssue) {
this.isIssue = isIssue;
}
public String getIsIssued() {
return isIssued;
}
public void setIsIssued(String isIssued) {
this.isIssued = isIssued;
}
public String getIsIssueFile() {
return isIssueFile;
}
public void setIsIssueFile(String isIssueFile) {
this.isIssueFile = isIssueFile;
}
public String getIsControlStart() {
return isControlStart;
}
public void setIsControlStart(String isControlStart) {
this.isControlStart = isControlStart;
}
public String getOid() {
return oid;
}
public void setOid(String oid) {
this.oid = oid;
}
public Long getUploadGap() {
return uploadGap;
}
public void setUploadGap(Long uploadGap) {
this.uploadGap = uploadGap;
}
public NodegroupTable getNodegroup() {
return nodegroup;
}
public void setNodegroup(NodegroupTable nodegroup) {
this.nodegroup = nodegroup;
}
public Date getControlStartTime() {
return controlStartTime;
}
public Date getPlanCheckTime() {
return planCheckTime;
}
public void setPlanCheckTime(Date planCheckTime) {
this.planCheckTime = planCheckTime;
}
public void setControlStartTime(Date controlStartTime) {
this.controlStartTime = controlStartTime;
}
public Long getViewLevel() {
return viewLevel;
}
public void setViewLevel(Long viewLevel) {
this.viewLevel = viewLevel;
}
public String getContactUserIds() {
return contactUserIds;
}
public void setContactUserIds(String contactUserIds) {
this.contactUserIds = contactUserIds;
}
public Long getCreateUserId() {
return createUserId;
}
public void setCreateUserId(Long createUserId) {
this.createUserId = createUserId;
}
public Long getCreateUserGroupId() {
return createUserGroupId;
}
public void setCreateUserGroupId(Long createUserGroupId) {
this.createUserGroupId = createUserGroupId;
}
public Long getSystemId() {
return systemId;
}
public void setSystemId(Long systemId) {
this.systemId = systemId;
}
public String getNodeGroupsId()
{
return nodeGroupsId;
}
public void setNodeGroupsId(String nodeGroupsId)
{
this.nodeGroupsId = nodeGroupsId;
}
public String getNodeIpsId()
{
return nodeIpsId;
}
public void setNodeIpsId(String nodeIpsId)
{
this.nodeIpsId = nodeIpsId;
}
public String getNodeGroupsName()
{
return nodeGroupsName;
}
public void setNodeGroupsName(String nodeGroupsName)
{
this.nodeGroupsName = nodeGroupsName;
}
public String getNodeIpsName()
{
return nodeIpsName;
}
public void setNodeIpsName(String nodeIpsName)
{
this.nodeIpsName = nodeIpsName;
}
public String getProcessIdenName() {
return processIdenName;
}
public void setProcessIdenName(String processIdenName) {
this.processIdenName = processIdenName;
}
public String getProcessSearchCode() {
return processSearchCode;
}
public void setProcessSearchCode(String processSearchCode) {
this.processSearchCode = processSearchCode;
}
}

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DeviceBoardsoltBoard" table="DEVICE_BOARDSOLT_BOARD">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">SEQ_DEVICE_BOARDSOLT_BOARD</param>
</generator>
</id>
<property name="deviceBrandCode" type="java.lang.String">
<column name="DEVICE_BRAND_CODE" length="64" />
</property>
<property name="deviceBoardSoltCode" type="java.lang.String">
<column name="DEVICE_BOARD_SOLT_CODE" length="64" />
</property>
<property name="deviceBoardCode" type="java.lang.String">
<column name="DEVICE_BOARD_CODE" length="64" />
</property>
<property name="deviceTypeCode" type="java.lang.String">
<column name="DEVICE_TYPE_CODE" length="64" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,77 @@
package nis.nms.domains;
/**
* DeviceBoardsoltBoard entity.
*
* @author MyEclipse Persistence Tools
*/
public class DeviceBoardsoltBoard implements java.io.Serializable {
// Fields
private Long id;
private String deviceBrandCode;
private String deviceBoardSoltCode;
private String deviceBoardCode;
private String deviceTypeCode;
// Constructors
/** default constructor */
public DeviceBoardsoltBoard() {
}
/** full constructor */
public DeviceBoardsoltBoard(String deviceBrandCode,
String deviceBoardSoltCode, String deviceBoardCode,
String deviceTypeCode) {
this.deviceBrandCode = deviceBrandCode;
this.deviceBoardSoltCode = deviceBoardSoltCode;
this.deviceBoardCode = deviceBoardCode;
this.deviceTypeCode = deviceTypeCode;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getDeviceBrandCode() {
return this.deviceBrandCode;
}
public void setDeviceBrandCode(String deviceBrandCode) {
this.deviceBrandCode = deviceBrandCode;
}
public String getDeviceBoardSoltCode() {
return this.deviceBoardSoltCode;
}
public void setDeviceBoardSoltCode(String deviceBoardSoltCode) {
this.deviceBoardSoltCode = deviceBoardSoltCode;
}
public String getDeviceBoardCode() {
return this.deviceBoardCode;
}
public void setDeviceBoardCode(String deviceBoardCode) {
this.deviceBoardCode = deviceBoardCode;
}
public String getDeviceTypeCode() {
return this.deviceTypeCode;
}
public void setDeviceTypeCode(String deviceTypeCode) {
this.deviceTypeCode = deviceTypeCode;
}
}

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DeviceBrandInfo" table="DEVICE_BRAND_INFO" >
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">SEQ_DEVICE_BRAND_INFO</param>
</generator>
</id>
<property name="deviceRandCode" type="java.lang.String">
<column name="DEVICE_RAND_CODE" length="64" not-null="true" />
</property>
<property name="deviceRandName" type="java.lang.String">
<column name="DEVICE_RAND_NAME" length="100" not-null="true" />
</property>
<property name="deviceBrandDesc" type="java.lang.String">
<column name="DEVICE_BRAND_DESC" length="500" />
</property>
<property name="addTime" type="java.util.Date">
<column name="ADD_TIME" length="7" />
</property>
<property name="addUserid" type="java.lang.Long">
<column name="ADD_USERID" precision="22" scale="0" />
</property>
<property name="lastUpdateTime" type="java.util.Date">
<column name="LAST_UPDATE_TIME" length="7" />
</property>
<property name="lastUpdateUserid" type="java.lang.Long">
<column name="LAST_UPDATE_USERID" precision="22" scale="0" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,139 @@
package nis.nms.domains;
import java.util.Date;
/**
* DeviceBrandInfo entity.
*
* @author MyEclipse Persistence Tools
*/
public class DeviceBrandInfo implements java.io.Serializable
{
// Fields
/**
*
*/
private static final long serialVersionUID = 1L;
private Long id;
private String deviceRandCode;
private String deviceRandName;
private String deviceBrandDesc;
private Date addTime;
private Long addUserid;
private Date lastUpdateTime;
private Long lastUpdateUserid;
// Constructors
/** default constructor */
public DeviceBrandInfo()
{
}
/** minimal constructor */
public DeviceBrandInfo(String deviceRandCode, String deviceRandName)
{
this.deviceRandCode = deviceRandCode;
this.deviceRandName = deviceRandName;
}
/** full constructor */
public DeviceBrandInfo(String deviceRandCode, String deviceRandName, String deviceBrandDesc,
Date addTime, Long addUserid, Date lastUpdateTime, Long lastUpdateUserid)
{
this.deviceRandCode = deviceRandCode;
this.deviceRandName = deviceRandName;
this.deviceBrandDesc = deviceBrandDesc;
this.addTime = addTime;
this.addUserid = addUserid;
this.lastUpdateTime = lastUpdateTime;
this.lastUpdateUserid = lastUpdateUserid;
}
// Property accessors
public Long getId()
{
return this.id;
}
public void setId(Long id)
{
this.id = id;
}
public String getDeviceRandCode()
{
return this.deviceRandCode;
}
public void setDeviceRandCode(String deviceRandCode)
{
this.deviceRandCode = deviceRandCode;
}
public String getDeviceRandName()
{
return this.deviceRandName;
}
public void setDeviceRandName(String deviceRandName)
{
this.deviceRandName = deviceRandName;
}
public String getDeviceBrandDesc()
{
return this.deviceBrandDesc;
}
public void setDeviceBrandDesc(String deviceBrandDesc)
{
this.deviceBrandDesc = deviceBrandDesc;
}
public Date getAddTime()
{
return this.addTime;
}
public void setAddTime(Date addTime)
{
this.addTime = addTime;
}
public Long getAddUserid()
{
return this.addUserid;
}
public void setAddUserid(Long addUserid)
{
this.addUserid = addUserid;
}
public Date getLastUpdateTime()
{
return this.lastUpdateTime;
}
public void setLastUpdateTime(Date lastUpdateTime)
{
this.lastUpdateTime = lastUpdateTime;
}
public Long getLastUpdateUserid()
{
return this.lastUpdateUserid;
}
public void setLastUpdateUserid(Long lastUpdateUserid)
{
this.lastUpdateUserid = lastUpdateUserid;
}
}

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DeviceBrandType" table="DEVICE_BRAND_TYPE" >
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">SEQ_DEVICE_BRAND_TYPE</param>
</generator>
</id>
<property name="deviceBrandCode" type="java.lang.String">
<column name="DEVICE_BRAND_CODE" length="64" />
</property>
<property name="parDeviceTypeCode" type="java.lang.String">
<column name="PAR_DEVICE_TYPE_CODE" length="64" />
</property>
<property name="subDeviceTypeCode" type="java.lang.String">
<column name="SUB_DEVICE_TYPE_CODE" length="64" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,82 @@
package nis.nms.domains;
/**
* DeviceBrandType entity.
*
* @author MyEclipse Persistence Tools
*/
public class DeviceBrandType implements java.io.Serializable
{
// Fields
/**
*
*/
private static final long serialVersionUID = 1L;
private Long id;
private String deviceBrandCode;
private String parDeviceTypeCode;
private String subDeviceTypeCode;
// Constructors
/** default constructor */
public DeviceBrandType()
{
}
/** full constructor */
public DeviceBrandType(String deviceBrandCode, String parDeviceTypeCode,
String subDeviceTypeCode)
{
this.deviceBrandCode = deviceBrandCode;
this.parDeviceTypeCode = parDeviceTypeCode;
this.subDeviceTypeCode = subDeviceTypeCode;
}
// Property accessors
public Long getId()
{
return this.id;
}
public void setId(Long id)
{
this.id = id;
}
public String getDeviceBrandCode()
{
return this.deviceBrandCode;
}
public void setDeviceBrandCode(String deviceBrandCode)
{
this.deviceBrandCode = deviceBrandCode;
}
public String getParDeviceTypeCode()
{
return this.parDeviceTypeCode;
}
public void setParDeviceTypeCode(String parDeviceTypeCode)
{
this.parDeviceTypeCode = parDeviceTypeCode;
}
public String getSubDeviceTypeCode()
{
return this.subDeviceTypeCode;
}
public void setSubDeviceTypeCode(String subDeviceTypeCode)
{
this.subDeviceTypeCode = subDeviceTypeCode;
}
}

View File

@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DeviceTypeInfo" table="DEVICE_TYPE_INFO">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">SEQ_DEVICE_TYPE_INFO</param>
</generator>
</id>
<property name="deviceTypeCode" type="java.lang.String">
<column name="DEVICE_TYPE_CODE" length="100" not-null="true" />
</property>
<property name="deviceRandCode" type="java.lang.String">
<column name="DEVICE_RAND_CODE" length="64" not-null="true" />
</property>
<property name="deviceDesc" type="java.lang.String">
<column name="DEVICE_DESC" length="500" />
</property>
<property name="showIndex" type="java.lang.Long">
<column name="SHOW_INDEX" precision="22" scale="0" />
</property>
<property name="pid" type="java.lang.String">
<column name="PID" length="100" />
</property>
<property name="figureType" type="java.lang.String">
<column name="FIGURE_TYPE" length="64" not-null="true" />
</property>
<property name="figureX" type="java.lang.Long">
<column name="FIGURE_X" precision="22" scale="0" />
</property>
<property name="figureY" type="java.lang.Long">
<column name="FIGURE_Y" precision="22" scale="0" />
</property>
<property name="figureWidth" type="java.lang.Long">
<column name="FIGURE_WIDTH" precision="22" scale="0" />
</property>
<property name="figureHeight" type="java.lang.Long">
<column name="FIGURE_HEIGHT" precision="22" scale="0" />
</property>
<property name="figureStroke" type="java.lang.String">
<column name="FIGURE_STROKE" length="20" />
</property>
<property name="figureStrokeWidth" type="java.lang.Long">
<column name="FIGURE_STROKE_WIDTH" precision="22" scale="0" />
</property>
<property name="figureFill" type="java.lang.String">
<column name="FIGURE_FILL" length="100" />
</property>
<property name="nameFormat" type="java.lang.String">
<column name="NAME_FORMAT" length="64" />
</property>
<property name="addTime" type="java.util.Date">
<column name="ADD_TIME" length="7" />
</property>
<property name="addUserid" type="java.lang.Long">
<column name="ADD_USERID" precision="22" scale="0" />
</property>
<property name="lastUpdateTime" type="java.util.Date">
<column name="LAST_UPDATE_TIME" length="7" />
</property>
<property name="lastUpdateUserid" type="java.lang.Long">
<column name="LAST_UPDATE_USERID" precision="22" scale="0" />
</property>
<property name="diTableName" type="java.lang.String">
<column name="DI_TABLE_NAME" length="50" />
</property>
<property name="indexFiled" type="java.lang.String">
<column name="INDEX_FILED" length="64" />
</property>
<property name="statusFiled" type="java.lang.String">
<column name="STATUS_FILED" length="64" />
</property>
<property name="statusSymbols" type="java.lang.String">
<column name="STATUS_SYMBOLS" length="10" />
</property>
<property name="statusValue" type="java.lang.String">
<column name="STATUS_VALUE" length="64" />
</property>
<property name="showLevel" type="java.lang.Long">
<column name="SHOW_LEVEL" precision="22" scale="0" />
</property>
<property name="isLink" type="java.lang.Long">
<column name="IS_LINK" precision="22" scale="0" />
</property>
<property name="isLeaf" type="java.lang.Long">
<column name="IS_LEAF" precision="22" scale="0" />
</property>
<property name="maxDeviceNum" type="java.lang.Long">
<column name="MAX_DEVICE_NUM" precision="22" scale="0" default="1"/>
</property>
<property name="isPositionDev" type="java.lang.Long">
<column name="IS_POSITIONDEV" precision="22" scale="0" />
</property>
<property name="hasInstance" type="java.lang.Long">
<column name="HAS_INSTANCE" precision="22" scale="0" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,479 @@
package nis.nms.domains;
import java.util.Date;
/**
* DeviceTypeInfo entity.
*
* @author MyEclipse Persistence Tools
*/
public class DeviceTypeInfo implements java.io.Serializable
{
// Fields
/**
*
*/
private static final long serialVersionUID = 1L;
private Long id;
private String deviceTypeCode;
private String deviceRandCode;
private String deviceDesc;
private Long showIndex;
private Integer showIndexStart;//批量新增时,编号开始
private Integer showIndexEnd;//批量新增时,编号结尾
private String showIndexRule;//端口编号的规则0全部1奇数2偶数
private String pid;//父设备型号:关系确定,不可变
private String canConfigPid;//可以配置的父设备:可以配置的父设备
private String parDevCode;
private String figureType;
private Long figureX;
private Long figureY;
private Long figureWidth;
private Long figureHeight;
private String figureStroke;
private Long figureStrokeWidth;
private String figureFill;
private String nameFormat;
private Date addTime;
private Long addUserid;
private Date lastUpdateTime;
private Long lastUpdateUserid;
private String diTableName;
private String indexFiled;
private String statusFiled;
private String statusSymbols;
private String statusValue;
private Long showLevel;
private Long isLink;
private Long isLeaf;
private Long maxDeviceNum;
private Long isPositionDev;
private Long hasInstance;
// Constructors
/** default constructor */
public DeviceTypeInfo()
{
}
/** minimal constructor */
public DeviceTypeInfo(String deviceTypeCode, String deviceRandCode, String figureType)
{
this.deviceTypeCode = deviceTypeCode;
this.deviceRandCode = deviceRandCode;
this.figureType = figureType;
}
/** full constructor */
public DeviceTypeInfo(String deviceTypeCode, String deviceRandCode, String deviceDesc,
Long showIndex, String pid, String figureType, Long figureX, Long figureY,
Long figureWidth, Long figureHeight, String figureStroke, Long figureStrokeWidth,
String figureFill, String nameFormat, Date addTime, Long addUserid,
Date lastUpdateTime, Long lastUpdateUserid, String diTableName, String indexFiled,
String statusFiled, String statusSymbols, String statusValue, Long showLevel,
Long isLink, Long isLeaf,Long maxDeviceNum)
{
this.deviceTypeCode = deviceTypeCode;
this.deviceRandCode = deviceRandCode;
this.deviceDesc = deviceDesc;
this.showIndex = showIndex;
this.pid = pid;
this.figureType = figureType;
this.figureX = figureX;
this.figureY = figureY;
this.figureWidth = figureWidth;
this.figureHeight = figureHeight;
this.figureStroke = figureStroke;
this.figureStrokeWidth = figureStrokeWidth;
this.figureFill = figureFill;
this.nameFormat = nameFormat;
this.addTime = addTime;
this.addUserid = addUserid;
this.lastUpdateTime = lastUpdateTime;
this.lastUpdateUserid = lastUpdateUserid;
this.diTableName = diTableName;
this.indexFiled = indexFiled;
this.statusFiled = statusFiled;
this.statusSymbols = statusSymbols;
this.statusValue = statusValue;
this.showLevel = showLevel;
this.isLink = isLink;
this.isLeaf = isLeaf;
this.maxDeviceNum = maxDeviceNum;
}
// Property accessors
public Long getId()
{
return this.id;
}
public void setId(Long id)
{
this.id = id;
}
public String getDeviceTypeCode()
{
return this.deviceTypeCode;
}
public void setDeviceTypeCode(String deviceTypeCode)
{
this.deviceTypeCode = deviceTypeCode;
}
public String getDeviceRandCode()
{
return this.deviceRandCode;
}
public void setDeviceRandCode(String deviceRandCode)
{
this.deviceRandCode = deviceRandCode;
}
public String getDeviceDesc()
{
return this.deviceDesc;
}
public void setDeviceDesc(String deviceDesc)
{
this.deviceDesc = deviceDesc;
}
public Long getShowIndex()
{
return this.showIndex;
}
public void setShowIndex(Long showIndex)
{
this.showIndex = showIndex;
}
public String getPid()
{
return this.pid;
}
public void setPid(String pid)
{
this.pid = pid;
}
public String getFigureType()
{
return this.figureType;
}
public void setFigureType(String figureType)
{
this.figureType = figureType;
}
public Long getFigureX()
{
return this.figureX;
}
public void setFigureX(Long figureX)
{
this.figureX = figureX;
}
public Long getFigureY()
{
return this.figureY;
}
public void setFigureY(Long figureY)
{
this.figureY = figureY;
}
public Long getFigureWidth()
{
return this.figureWidth;
}
public void setFigureWidth(Long figureWidth)
{
this.figureWidth = figureWidth;
}
public Long getFigureHeight()
{
return this.figureHeight;
}
public void setFigureHeight(Long figureHeight)
{
this.figureHeight = figureHeight;
}
public String getFigureStroke()
{
return this.figureStroke;
}
public void setFigureStroke(String figureStroke)
{
this.figureStroke = figureStroke;
}
public Long getFigureStrokeWidth()
{
return this.figureStrokeWidth;
}
public void setFigureStrokeWidth(Long figureStrokeWidth)
{
this.figureStrokeWidth = figureStrokeWidth;
}
public String getFigureFill()
{
return this.figureFill;
}
public void setFigureFill(String figureFill)
{
this.figureFill = figureFill;
}
public String getNameFormat()
{
return this.nameFormat;
}
public void setNameFormat(String nameFormat)
{
this.nameFormat = nameFormat;
}
public Date getAddTime()
{
return this.addTime;
}
public void setAddTime(Date addTime)
{
this.addTime = addTime;
}
public Long getAddUserid()
{
return this.addUserid;
}
public void setAddUserid(Long addUserid)
{
this.addUserid = addUserid;
}
public Date getLastUpdateTime()
{
return this.lastUpdateTime;
}
public void setLastUpdateTime(Date lastUpdateTime)
{
this.lastUpdateTime = lastUpdateTime;
}
public Long getLastUpdateUserid()
{
return this.lastUpdateUserid;
}
public void setLastUpdateUserid(Long lastUpdateUserid)
{
this.lastUpdateUserid = lastUpdateUserid;
}
public String getDiTableName()
{
return this.diTableName;
}
public void setDiTableName(String diTableName)
{
this.diTableName = diTableName;
}
public String getIndexFiled()
{
return this.indexFiled;
}
public void setIndexFiled(String indexFiled)
{
this.indexFiled = indexFiled;
}
public String getStatusFiled()
{
return this.statusFiled;
}
public void setStatusFiled(String statusFiled)
{
this.statusFiled = statusFiled;
}
public String getStatusSymbols()
{
return this.statusSymbols;
}
public void setStatusSymbols(String statusSymbols)
{
this.statusSymbols = statusSymbols;
}
public String getStatusValue()
{
return this.statusValue;
}
public void setStatusValue(String statusValue)
{
this.statusValue = statusValue;
}
public Long getShowLevel()
{
return this.showLevel;
}
public void setShowLevel(Long showLevel)
{
this.showLevel = showLevel;
}
public Long getIsLink()
{
return this.isLink;
}
public void setIsLink(Long isLink)
{
this.isLink = isLink;
}
public Long getIsLeaf()
{
return this.isLeaf;
}
public void setIsLeaf(Long isLeaf)
{
this.isLeaf = isLeaf;
}
public String getParDevCode()
{
return parDevCode;
}
public void setParDevCode(String parDevCode)
{
this.parDevCode = parDevCode;
}
public Long getMaxDeviceNum()
{
return maxDeviceNum;
}
public void setMaxDeviceNum(Long maxDeviceNum)
{
this.maxDeviceNum = maxDeviceNum;
}
public Integer getShowIndexStart()
{
return showIndexStart;
}
public void setShowIndexStart(Integer showIndexStart)
{
this.showIndexStart = showIndexStart;
}
public Integer getShowIndexEnd()
{
return showIndexEnd;
}
public void setShowIndexEnd(Integer showIndexEnd)
{
this.showIndexEnd = showIndexEnd;
}
public Long getIsPositionDev()
{
return isPositionDev;
}
public void setIsPositionDev(Long isPositionDev)
{
this.isPositionDev = isPositionDev;
}
public String getCanConfigPid()
{
return canConfigPid;
}
public void setCanConfigPid(String canConfigPid)
{
this.canConfigPid = canConfigPid;
}
public Long getHasInstance()
{
return hasInstance;
}
public void setHasInstance(Long hasInstance)
{
this.hasInstance = hasInstance;
}
public String getShowIndexRule()
{
return showIndexRule;
}
public void setShowIndexRule(String showIndexRule)
{
this.showIndexRule = showIndexRule;
}
}

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.DictionaryTable" table="DICTIONARY_TABLE">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_dictionary_table</param>
</generator>
</id>
<property name="typeNmae" type="java.lang.String">
<column name="TYPE_NMAE" length="64" />
</property>
<property name="typeDesc" type="java.lang.String">
<column name="TYPE_DESC" length="256" />
</property>
<property name="typeState" type="java.lang.Long">
<column name="TYPE_STATE" precision="22" scale="0" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,70 @@
package nis.nms.domains;
/**
* DictionaryTable entity.
*
* @author MyEclipse Persistence Tools
*/
public class DictionaryTable implements java.io.Serializable {
// Fields
private Long id;
private String typeNmae;
private String typeDesc;
private Long typeState;
// Constructors
/** default constructor */
public DictionaryTable() {
}
/** minimal constructor */
public DictionaryTable(String typeNmae) {
this.typeNmae = typeNmae;
}
/** full constructor */
public DictionaryTable(String typeNmae, String typeDesc, Long typeState) {
this.typeNmae = typeNmae;
this.typeDesc = typeDesc;
this.typeState = typeState;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getTypeNmae() {
return this.typeNmae;
}
public void setTypeNmae(String typeNmae) {
this.typeNmae = typeNmae;
}
public String getTypeDesc() {
return this.typeDesc;
}
public void setTypeDesc(String typeDesc) {
this.typeDesc = typeDesc;
}
public Long getTypeState() {
return this.typeState;
}
public void setTypeState(Long typeState) {
this.typeState = typeState;
}
}

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.EventRecordLibrary" table="EVENT_RECORD_LIBRARY">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_event_record_library</param>
</generator>
</id>
<property name="recordCommand" type="java.lang.String">
<column name="record_Command" length="100" />
</property>
<property name="recordType" type="java.lang.String">
<column name="RECORD_TYPE" length="25" />
</property>
<property name="recordContent" type="java.lang.String">
<column name="RECORD_CONTENT" />
</property>
<property name="state" type="java.lang.Long">
<column name="STATE" precision="22" scale="0" />
</property>
<property name="createTime" type="java.util.Date">
<column name="create_Time" />
</property>
<property name="nmsserverId" type="java.lang.Long">
<column name="nmsserver_id" precision="22" scale="0" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,133 @@
package nis.nms.domains;
import java.util.Date;
/**
* EventRecordLibrary entity.
*
* @author MyEclipse Persistence Tools
*/
public class EventRecordLibrary implements java.io.Serializable {
// Fields
private Long id;
private String recordType;
private String recordContent;
// private String seqIds;
private Long state;
private String recordCommand;
private Long nmsserverId;
private Date createTime; // 创建时间
// private Long pid; //父ID
// private String tableName; // 操作表
// private Long tableId; //表主键
// Constructors
/** default constructor */
public EventRecordLibrary() {
}
/** full constructor */
public EventRecordLibrary(String recordType, String recordContent,
Long state, String recordCommand) {
this.recordType = recordType;
this.recordContent = recordContent;
// this.seqIds = seqIds;
this.state = state;
this.recordCommand = recordCommand;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getRecordType() {
return this.recordType;
}
public void setRecordType(String recordType) {
this.recordType = recordType;
}
public String getRecordContent() {
return this.recordContent;
}
public void setRecordContent(String recordContent) {
this.recordContent = recordContent;
}
// public String getSeqIds() {
// return this.seqIds;
// }
//
// public void setSeqIds(String seqIds) {
// this.seqIds = seqIds;
// }
public Long getState() {
return this.state;
}
public void setState(Long state) {
this.state = state;
}
public String getRecordCommand() {
return this.recordCommand;
}
public void setRecordCommand(String recordCommand) {
this.recordCommand = recordCommand;
}
// public Long getPid() {
// return pid;
// }
//
// public void setPid(Long pid) {
// this.pid = pid;
// }
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getNmsserverId() {
return nmsserverId;
}
public void setNmsserverId(Long nmsserverId) {
this.nmsserverId = nmsserverId;
}
// public String getTableName() {
// return tableName;
// }
//
// public void setTableName(String tableName) {
// this.tableName = tableName;
// }
//
// public Long getTableId() {
// return tableId;
// }
//
// public void setTableId(Long tableId) {
// this.tableId = tableId;
// }
}

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.GorupSystemTable" table="gorup_system_table">
<id name="id" type="java.lang.Long">
<column name="id" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_gorup_system_table</param>
</generator>
</id>
<property name="userGroupId" type="java.lang.Long">
<column name="user_group_id" precision="22" scale="0" not-null="true">
</column>
</property>
<property name="systemId" type="java.lang.Long">
<column name="system_id" precision="22" scale="0" not-null="true">
</column>
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,61 @@
package nis.nms.domains;
/**
* GorupSystemTable entity.
*
* @author MyEclipse Persistence Tools
*/
public class GorupSystemTable implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = 7564412208331909546L;
private Long id;
private Long userGroupId;
private Long systemId;
// Constructors
/** default constructor */
public GorupSystemTable() {
}
/** full constructor */
public GorupSystemTable(Long userGroupId, Long systemId) {
this.userGroupId = userGroupId;
this.systemId = systemId;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getUserGroupId() {
return userGroupId;
}
public void setUserGroupId(Long userGroupId) {
this.userGroupId = userGroupId;
}
public Long getSystemId() {
return systemId;
}
public void setSystemId(Long systemId) {
this.systemId = systemId;
}
// Property accessors
}

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.LoopmissionStateTable" table="loopmission_state_table">
<id name="curMissionId" type="java.lang.Long">
<column name="Cur_mission_id" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_mission_state_table</param>
</generator>
</id>
<property name="missionId" type="java.lang.Long">
<column name="mission_id" precision="22" scale="0" not-null="true">
</column>
</property>
<property name="missionState" type="java.lang.Long">
<column name="Mission_State" precision="22" scale="0" not-null="true">
</column>
</property>
<property name="startTime" type="java.util.Date">
<column name="Start_time" length="7">
</column>
</property>
<property name="endTime" type="java.util.Date">
<column name="End_time" length="7">
</column>
</property>
<property name="failDesc" type="java.lang.String">
<column name="Fail_desc" length="256">
</column>
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,97 @@
package nis.nms.domains;
import java.util.Date;
/**
* LoopmissionStateTable entity.
*
* @author MyEclipse Persistence Tools
*/
public class LoopmissionStateTable implements java.io.Serializable {
// Fields
private Long curMissionId;
private Long missionId;
private Long missionState;
private Date startTime;
private Date endTime;
private String failDesc;
// Constructors
/** default constructor */
public LoopmissionStateTable() {
}
/** minimal constructor */
public LoopmissionStateTable(Long curMissionId, Long missionId,
Long missionState) {
this.curMissionId = curMissionId;
this.missionId = missionId;
this.missionState = missionState;
}
/** full constructor */
public LoopmissionStateTable(Long curMissionId, Long missionId,
Long missionState, Date startTime, Date endTime, String failDesc) {
this.curMissionId = curMissionId;
this.missionId = missionId;
this.missionState = missionState;
this.startTime = startTime;
this.endTime = endTime;
this.failDesc = failDesc;
}
// Property accessors
public Long getCurMissionId() {
return this.curMissionId;
}
public void setCurMissionId(Long curMissionId) {
this.curMissionId = curMissionId;
}
public Long getMissionId() {
return this.missionId;
}
public void setMissionId(Long missionId) {
this.missionId = missionId;
}
public Long getMissionState() {
return this.missionState;
}
public void setMissionState(Long missionState) {
this.missionState = missionState;
}
public Date getStartTime() {
return this.startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return this.endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public String getFailDesc() {
return this.failDesc;
}
public void setFailDesc(String failDesc) {
this.failDesc = failDesc;
}
}

View File

@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.Metadata" table="METADATA">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_metadata</param>
</generator>
</id>
<many-to-one name="checkTypeInfo" class="nis.nms.domains.CheckTypeInfo" fetch="select">
<column name="CHECK_TYPE_ID" precision="22" scale="0" />
</many-to-one>
<property name="tableName" type="string">
<column name="TABLE_NAME" length="64" />
</property>
<property name="tableComments" type="string">
<column name="TABLE_COMMENTS" length="100" />
</property>
<property name="filedName" type="string">
<column name="FILED_NAME" length="64" />
</property>
<property name="filedComments" type="string">
<column name="FILED_COMMENTS" length="100" />
</property>
<property name="filedType" type="string">
<column name="FILED_TYPE" length="20" />
</property>
<property name="createDate" type="date">
<column name="CREATE_DATE" length="7" />
</property>
<property name="createPerson" type="java.lang.Long">
<column name="CREATE_PERSON" precision="22" scale="0" />
</property>
<property name="state" type="string">
<column name="STATE" length="1" />
</property>
<property name="updateDate" type="date">
<column name="UPDATE_DATE" length="7" />
</property>
<property name="updatePerson" type="java.lang.Long">
<column name="UPDATE_PERSON" precision="22" scale="0" />
</property>
<property name="chartState" type="string">
<column name="CHART_STATE" length="1" />
</property>
<property name="showNum" type="java.lang.Long">
<column name="SHOW_NUM" precision="22" scale="0" />
</property>
<property name="isNull" type="java.lang.Long">
<column name="ISNULL" precision="22" scale="0" />
</property>
<property name="oid" type="string">
<column name="OID" length="400" />
</property>
<property name="typeId" type="string">
<column name="TYPE_ID" length="50" />
</property>
<property name="sortSign" type="java.lang.Long">
<column name="SORT_SIGN" precision="22" scale="0" default="1"/>
</property>
<set name="dataPoliceRelations" inverse="true">
<key>
<column name="METADATA_ID" precision="22" scale="0" />
</key>
<one-to-many class="nis.nms.domains.DataPoliceRelation" />
</set>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,261 @@
package nis.nms.domains;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* Metadata entity.
*
* @author MyEclipse Persistence Tools
*/
public class Metadata implements java.io.Serializable {
// Fields
private Long id;
private CheckTypeInfo checkTypeInfo;
private String tableName;
private String tableComments;
private String filedName;
private String filedComments;
private String filedType;
private String filedTypeLength;
private String filedTypeOnly;
private Date createDate;
private Long createPerson;
private String state;
private Date updateDate;
private Long updatePerson;
private String chartState;
private String oid;
private Long showNum;
private Long isNull;
private String typeId;
private Long sortSign;
private Set dataPoliceRelations = new HashSet(0);
// Constructors
/** default constructor */
public Metadata() {
}
/** full constructor */
public Metadata(CheckTypeInfo checkTypeInfo, String tableName,
String tableComments, String filedName, String filedComments,
String filedType, Date createDate, Long createPerson, String state,
Date updateDate, Long updatePerson, String chartState,String oid,
Long showNum,Long isNull,String typeId,Long sortSign ,Set dataPoliceRelations) {
this.checkTypeInfo = checkTypeInfo;
this.tableName = tableName;
this.tableComments = tableComments;
this.filedName = filedName;
this.filedComments = filedComments;
this.filedType = filedType;
this.createDate = createDate;
this.createPerson = createPerson;
this.state = state;
this.updateDate = updateDate;
this.updatePerson = updatePerson;
this.chartState = chartState;
this.oid = oid;
this.showNum = showNum;
this.isNull = isNull;
this.typeId = typeId;
this.sortSign = sortSign;
this.dataPoliceRelations = dataPoliceRelations;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public CheckTypeInfo getCheckTypeInfo() {
return this.checkTypeInfo;
}
public void setCheckTypeInfo(CheckTypeInfo checkTypeInfo) {
this.checkTypeInfo = checkTypeInfo;
}
public String getTableName() {
return this.tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public String getTableComments() {
return this.tableComments;
}
public void setTableComments(String tableComments) {
this.tableComments = tableComments;
}
public String getFiledName() {
return this.filedName;
}
public void setFiledName(String filedName) {
this.filedName = filedName;
}
public String getFiledComments() {
return this.filedComments;
}
public void setFiledComments(String filedComments) {
this.filedComments = filedComments;
}
public String getFiledType() {
return this.filedType;
}
public void setFiledType(String filedType) {
this.filedType = filedType;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Long getCreatePerson() {
return this.createPerson;
}
public void setCreatePerson(Long createPerson) {
this.createPerson = createPerson;
}
public String getState() {
return this.state;
}
public void setState(String state) {
this.state = state;
}
public Date getUpdateDate() {
return this.updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public Long getUpdatePerson() {
return this.updatePerson;
}
public void setUpdatePerson(Long updatePerson) {
this.updatePerson = updatePerson;
}
public String getChartState() {
return this.chartState;
}
public void setChartState(String chartState) {
this.chartState = chartState;
}
public Long getShowNum() {
return this.showNum;
}
public void setShowNum(Long showNum) {
this.showNum = showNum;
}
public Set getDataPoliceRelations() {
return this.dataPoliceRelations;
}
public void setDataPoliceRelations(Set dataPoliceRelations) {
this.dataPoliceRelations = dataPoliceRelations;
}
public Long getIsNull() {
return isNull;
}
public void setIsNull(Long isNull) {
this.isNull = isNull;
}
public String getOid()
{
return oid;
}
public void setOid(String oid)
{
this.oid = oid;
}
public String getTypeId()
{
return typeId;
}
public void setTypeId(String typeId)
{
this.typeId = typeId;
}
public Long getSortSign()
{
return sortSign;
}
public void setSortSign(Long sortSign)
{
this.sortSign = sortSign;
}
public String getFiledTypeLength()
{
return filedTypeLength;
}
public void setFiledTypeLength(String filedTypeLength)
{
this.filedTypeLength = filedTypeLength;
}
public String getFiledTypeOnly()
{
return filedTypeOnly;
}
public void setFiledTypeOnly(String filedTypeOnly)
{
this.filedTypeOnly = filedTypeOnly;
}
}

View File

@@ -0,0 +1,29 @@
package nis.nms.domains;
import java.util.List;
public class MetadataDictionaryVO {
private Long mId;
private String filedComments;
private List<OptionTable> listOT;
public Long getmId() {
return mId;
}
public void setmId(Long mId) {
this.mId = mId;
}
public List<OptionTable> getListOT() {
return listOT;
}
public void setListOT(List<OptionTable> listOT) {
this.listOT = listOT;
}
public String getFiledComments() {
return filedComments;
}
public void setFiledComments(String filedComments) {
this.filedComments = filedComments;
}
}

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.MissionFileInformation" table="MISSION_FILE_INFORMATION">
<id name="id" type="long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_mission_file_information</param>
</generator>
</id>
<property name="missionId" type="long">
<column name="MISSION_ID" precision="22" scale="0" />
</property>
<property name="fileName" type="string">
<column name="FILE_NAME" length="1024" />
</property>
<property name="md5Value" type="string">
<column name="MD5_VALUE" length="128" />
</property>
<property name="createTime" type="date">
<column name="CREATE_TIME" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,81 @@
package nis.nms.domains;
import java.util.Date;
/**
* MissionFileInformation entity.
*
* @author MyEclipse Persistence Tools
*/
public class MissionFileInformation implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = 3494926911304406210L;
private long id;
private long missionId;
private String fileName;
private String md5Value;
private Date createTime;
// Constructors
/** default constructor */
public MissionFileInformation() {
}
/** full constructor */
public MissionFileInformation(long missionId, String fileName,
String md5Value, Date createTime) {
this.missionId = missionId;
this.fileName = fileName;
this.md5Value = md5Value;
this.createTime = createTime;
}
// Property accessors
public long getId() {
return this.id;
}
public void setId(long id) {
this.id = id;
}
public long getMissionId() {
return this.missionId;
}
public void setMissionId(long missionId) {
this.missionId = missionId;
}
public String getFileName() {
return this.fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public String getMd5Value() {
return this.md5Value;
}
public void setMd5Value(String md5Value) {
this.md5Value = md5Value;
}
public Date getCreateTime() {
return this.createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.MissionParameterDefaults" table="mission_parameter_defaults">
<id name="id" type="java.lang.Long">
<column name="id" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_mission_parameter_defaults</param>
</generator>
</id>
<property name="missionTypeName" type="java.lang.String">
<column name="mission_type_name" length="64">
</column>
</property>
<property name="missionType" type="java.lang.Long">
<column name="mission_type" precision="22" scale="0">
</column>
</property>
<property name="viewLevel" type="java.lang.Long">
<column name="View_level" precision="22" scale="0">
</column>
</property>
<property name="groupId" type="java.lang.Long">
<column name="group_id" precision="22" scale="0">
</column>
</property>
<property name="nodeListId" type="java.lang.Long">
<column name="node_list_id" precision="22" scale="0">
</column>
</property>
<property name="systemId" type="java.lang.Long">
<column name="system_id" precision="22" scale="0">
</column>
</property>
<property name="targetPath" type="java.lang.String">
<column name="target_path" length="1024">
</column>
</property>
<property name="checkValue" type="java.lang.String">
<column name="check_value" length="128">
</column>
</property>
<property name="startTime" type="java.util.Date">
<column name="Start_time" length="7">
</column>
</property>
<property name="endTime" type="java.util.Date">
<column name="end_time" length="7">
</column>
</property>
<property name="maxReturn" type="java.lang.Long">
<column name="max_return" precision="22" scale="0">
</column>
</property>
<property name="startFlag" type="java.lang.String">
<column name="start_flag" length="1024">
</column>
</property>
<property name="endFlag" type="java.lang.String">
<column name="end_flag" length="1024">
</column>
</property>
<property name="loopFlag" type="java.lang.Long">
<column name="loop_flag" precision="22" scale="0">
</column>
</property>
<property name="loopStartDate" type="java.util.Date">
<column name="loop_start_date" length="0">
</column>
</property>
<property name="loopEndDate" type="java.util.Date">
<column name="loop_end_date" length="0">
</column>
</property>
<property name="loopDelay" type="java.lang.Long">
<column name="loop_delay">
</column>
</property>
<property name="filterKeyword" type="java.lang.String">
<column name="filter_keyword" length="1024">
</column>
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,223 @@
package nis.nms.domains;
import java.util.Date;
/**
* MissionParameterDefaults entity.
*
* @author MyEclipse Persistence Tools
*/
public class MissionParameterDefaults implements java.io.Serializable {
// Fields
private Long id;
private String missionTypeName;
private Long missionType;
private Long viewLevel;
private Long groupId;
private Long nodeListId;
private Long systemId;
private String targetPath;
private String checkValue;
private Date startTime;
private Date endTime;
private Long maxReturn;
private String startFlag;
private String endFlag;
private Long loopFlag;
private Date loopStartDate;
private Date loopEndDate;
private Long loopDelay;
private String filterKeyword;
// Constructors
/** default constructor */
public MissionParameterDefaults() {
}
/** full constructor */
public MissionParameterDefaults(String missionTypeName,
Long missionType, Long viewLevel, Long groupId,
Long nodeListId, Long systemId, String targetPath,
String checkValue, Date startTime, Date endTime, Long maxReturn,
String startFlag, String endFlag, Long loopFlag,
Date loopStartDate, Date loopEndDate, Long loopDelay,
String filterKeyword) {
this.missionTypeName = missionTypeName;
this.missionType = missionType;
this.viewLevel = viewLevel;
this.groupId = groupId;
this.nodeListId = nodeListId;
this.systemId = systemId;
this.targetPath = targetPath;
this.checkValue = checkValue;
this.startTime = startTime;
this.endTime = endTime;
this.maxReturn = maxReturn;
this.startFlag = startFlag;
this.endFlag = endFlag;
this.loopFlag = loopFlag;
this.loopStartDate = loopStartDate;
this.loopEndDate = loopEndDate;
this.loopDelay = loopDelay;
this.filterKeyword = filterKeyword;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getMissionTypeName() {
return this.missionTypeName;
}
public void setMissionTypeName(String missionTypeName) {
this.missionTypeName = missionTypeName;
}
public Long getMissionType() {
return this.missionType;
}
public void setMissionType(Long missionType) {
this.missionType = missionType;
}
public Long getViewLevel() {
return this.viewLevel;
}
public void setViewLevel(Long viewLevel) {
this.viewLevel = viewLevel;
}
public Long getGroupId() {
return this.groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
public Long getNodeListId() {
return this.nodeListId;
}
public void setNodeListId(Long nodeListId) {
this.nodeListId = nodeListId;
}
public Long getSystemId() {
return this.systemId;
}
public void setSystemId(Long systemId) {
this.systemId = systemId;
}
public String getTargetPath() {
return this.targetPath;
}
public void setTargetPath(String targetPath) {
this.targetPath = targetPath;
}
public String getCheckValue() {
return this.checkValue;
}
public void setCheckValue(String checkValue) {
this.checkValue = checkValue;
}
public Date getStartTime() {
return this.startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return this.endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public Long getMaxReturn() {
return this.maxReturn;
}
public void setMaxReturn(Long maxReturn) {
this.maxReturn = maxReturn;
}
public String getStartFlag() {
return this.startFlag;
}
public void setStartFlag(String startFlag) {
this.startFlag = startFlag;
}
public String getEndFlag() {
return this.endFlag;
}
public void setEndFlag(String endFlag) {
this.endFlag = endFlag;
}
public Long getLoopFlag() {
return this.loopFlag;
}
public void setLoopFlag(Long loopFlag) {
this.loopFlag = loopFlag;
}
public Date getLoopStartDate() {
return this.loopStartDate;
}
public void setLoopStartDate(Date loopStartDate) {
this.loopStartDate = loopStartDate;
}
public Date getLoopEndDate() {
return this.loopEndDate;
}
public void setLoopEndDate(Date loopEndDate) {
this.loopEndDate = loopEndDate;
}
public Long getLoopDelay() {
return this.loopDelay;
}
public void setLoopDelay(Long loopDelay) {
this.loopDelay = loopDelay;
}
public String getFilterKeyword() {
return this.filterKeyword;
}
public void setFilterKeyword(String filterKeyword) {
this.filterKeyword = filterKeyword;
}
}

View File

@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.MissionParameterTable1" table="mission_parameter_table1">
<id name="missionId" type="java.lang.Long">
<column name="mission_id" precision="22" scale="0" />
<!--
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_mission_parameter_table1</param>
</generator>
-->
</id>
<property name="missionDesc" type="java.lang.String">
<column name="mission_desc" length="256">
</column>
</property>
<property name="sourcePath" type="java.lang.String">
<column name="Source_path" length="1024">
</column>
</property>
<property name="targetPath" type="java.lang.String">
<column name="Target_path" length="1024" >
</column>
</property>
<property name="checkValue" type="java.lang.String">
<column name="Check_value" length="128">
</column>
</property>
<property name="nodeListId" type="java.lang.Long">
<column name="Node_list_id" precision="22" scale="0">
</column>
</property>
<property name="osLimits" type="java.lang.Long">
<column name="os_Limits">
</column>
</property>
<property name="isCreateCover" type="java.lang.String">
<column name="IS_CREATE_COVER" length="1">
</column>
</property>
<property name="commandPara" type="java.lang.String">
<column name="command_para" />
</property>
<property name="nodeGroupsId" type="java.lang.String">
<column name="NODE_GROUPS_ID" length="500" >
</column>
</property>
<property name="nodeIpsId" type="java.lang.String">
<column name="node_ips_id" length="4000" >
</column>
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,165 @@
package nis.nms.domains;
/**
* MissionParameterTable1 entity.
*
* @author MyEclipse Persistence Tools
*/
public class MissionParameterTable1 implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = -2236847794053337210L;
private Long missionId;//任务id
private String missionDesc;//任务描述
private String sourcePath;//源文件路径
private String targetPath;//目标路径
private String checkValue;//文件校验值不能为空,初步可以设定文件长度(单位字节)
private Long nodeListId;//节点组的id
private Long osLimits;
private String isCreateCover;
private String nodeListName;
private String commandPara;
private String nodeGroupsId;
private String nodeIpsId;
private String nodeListName2;
// Constructors
public String getNodeListName2() {
return nodeListName2;
}
public void setNodeListName2(String nodeListName2) {
this.nodeListName2 = nodeListName2;
}
public String getNodeIpsId() {
return nodeIpsId;
}
public void setNodeIpsId(String nodeIpsId) {
this.nodeIpsId = nodeIpsId;
}
public String getCommandPara() {
return commandPara;
}
public void setCommandPara(String commandPara) {
this.commandPara = commandPara;
}
/** default constructor */
public MissionParameterTable1() {
}
/** minimal constructor */
public MissionParameterTable1(String sourcePath, String targetPath,
String checkValue) {
this.sourcePath = sourcePath;
this.targetPath = targetPath;
this.checkValue = checkValue;
}
/** full constructor */
public MissionParameterTable1(String missionDesc, String sourcePath,
String targetPath, String checkValue, Long nodeListId,String nodeGroupsId) {
this.missionDesc = missionDesc;
this.sourcePath = sourcePath;
this.targetPath = targetPath;
this.checkValue = checkValue;
this.nodeListId = nodeListId;
this.nodeGroupsId = nodeGroupsId;
}
// Property accessors
public Long getMissionId() {
return this.missionId;
}
public void setMissionId(Long missionId) {
this.missionId = missionId;
}
public String getMissionDesc() {
return this.missionDesc;
}
public void setMissionDesc(String missionDesc) {
this.missionDesc = missionDesc;
}
public String getSourcePath() {
return this.sourcePath;
}
public void setSourcePath(String sourcePath) {
this.sourcePath = sourcePath;
}
public String getTargetPath() {
return this.targetPath;
}
public void setTargetPath(String targetPath) {
this.targetPath = targetPath;
}
public String getCheckValue() {
return this.checkValue;
}
public void setCheckValue(String checkValue) {
this.checkValue = checkValue;
}
public Long getNodeListId() {
return this.nodeListId;
}
public void setNodeListId(Long nodeListId) {
this.nodeListId = nodeListId;
}
public Long getOsLimits() {
return osLimits;
}
public void setOsLimits(Long osLimits) {
this.osLimits = osLimits;
}
public String getIsCreateCover() {
return isCreateCover;
}
public void setIsCreateCover(String isCreateCover) {
this.isCreateCover = isCreateCover;
}
public String getNodeListName() {
return nodeListName;
}
public void setNodeListName(String nodeListName) {
this.nodeListName = nodeListName;
}
public String getNodeGroupsId()
{
return nodeGroupsId;
}
public void setNodeGroupsId(String nodeGroupsId)
{
this.nodeGroupsId = nodeGroupsId;
}
}

View File

@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.MissionParameterTable2" table="mission_parameter_table2">
<id name="missionId" type="java.lang.Long">
<column name="mission_id" precision="22" scale="0" />
</id>
<property name="missionDesc" type="java.lang.String">
<column name="mission_desc" length="256">
</column>
</property>
<property name="filePath" type="java.lang.String">
<column name="file_path" length="1024" not-null="true">
</column>
</property>
<property name="startFlag" type="java.lang.String">
<column name="Start_flag" length="1024">
</column>
</property>
<property name="endFlag" type="java.lang.String">
<column name="End_flag" length="1024">
</column>
</property>
<property name="filterKeyword" type="java.lang.String">
<column name="Filter_keyword" length="1024">
</column>
</property>
<property name="maxReturn" type="java.lang.Long">
<column name="Max_return" precision="22" scale="0">
</column>
</property>
<property name="nodeListId" type="java.lang.Long">
<column name="Node_list_id" precision="22" scale="0" not-null="true">
</column>
</property>
<property name="loopFlag" type="java.lang.Long">
<column name="Loop_flag" precision="22" scale="0">
</column>
</property>
<property name="loopStartDate" type="java.util.Date">
<column name="Loop_start_date" length="7">
</column>
</property>
<property name="loopEndDate" type="java.util.Date">
<column name="Loop_end_date" length="7">
</column>
</property>
<property name="loopDelay" type="java.lang.Long">
<column name="Loop_delay">
</column>
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,162 @@
package nis.nms.domains;
import java.util.Date;
/**
* MissionParameterTable2 entity.
*
* @author MyEclipse Persistence Tools
*/
public class MissionParameterTable2 implements java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = 4061216570938158715L;
// Fields
private Long missionId;//任务id
private String missionDesc;//任务描述
private String filePath;//检测文件路径
private String startFlag;//起始标志为空表示从文件头开始,支持换行符
private String endFlag;//结束标志为空表示到文件末尾,支持换行符
private String filterKeyword;//过滤关键词支持与或表达式
private Long maxReturn;//返回结果最大长度不能为空缺省1024返回结果的最大长度
private Long nodeListId;//节点组id不能为空外键
private Long loopFlag;//是否定时任务1是0不是
private Date loopStartDate;//任务起始时间Loop_flag为1时不能为空
private Date loopEndDate;//任务结束时间Loop_flag为1时不能为空
private Long loopDelay;//任务循环周期单位为分钟Loop_flag为1时不能为空
// Constructors
/** default constructor */
public MissionParameterTable2() {
}
/** minimal constructor */
public MissionParameterTable2(String filePath, Long nodeListId) {
this.filePath = filePath;
this.nodeListId = nodeListId;
}
/** full constructor */
public MissionParameterTable2(String missionDesc, String filePath,
String startFlag, String endFlag, String filterKeyword,
Long maxReturn, Long nodeListId, Long loopFlag,
Date loopStartDate, Date loopEndDate, Long loopDelay) {
this.missionDesc = missionDesc;
this.filePath = filePath;
this.startFlag = startFlag;
this.endFlag = endFlag;
this.filterKeyword = filterKeyword;
this.maxReturn = maxReturn;
this.nodeListId = nodeListId;
this.loopFlag = loopFlag;
this.loopStartDate = loopStartDate;
this.loopEndDate = loopEndDate;
this.loopDelay = loopDelay;
}
// Property accessors
public Long getMissionId() {
return this.missionId;
}
public void setMissionId(Long missionId) {
this.missionId = missionId;
}
public String getMissionDesc() {
return this.missionDesc;
}
public void setMissionDesc(String missionDesc) {
this.missionDesc = missionDesc;
}
public String getFilePath() {
return this.filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public String getStartFlag() {
return this.startFlag;
}
public void setStartFlag(String startFlag) {
this.startFlag = startFlag;
}
public String getEndFlag() {
return this.endFlag;
}
public void setEndFlag(String endFlag) {
this.endFlag = endFlag;
}
public String getFilterKeyword() {
return this.filterKeyword;
}
public void setFilterKeyword(String filterKeyword) {
this.filterKeyword = filterKeyword;
}
public Long getMaxReturn() {
return this.maxReturn;
}
public void setMaxReturn(Long maxReturn) {
this.maxReturn = maxReturn;
}
public Long getNodeListId() {
return this.nodeListId;
}
public void setNodeListId(Long nodeListId) {
this.nodeListId = nodeListId;
}
public Date getLoopStartDate() {
return this.loopStartDate;
}
public void setLoopStartDate(Date loopStartDate) {
this.loopStartDate = loopStartDate;
}
public Date getLoopEndDate() {
return this.loopEndDate;
}
public void setLoopEndDate(Date loopEndDate) {
this.loopEndDate = loopEndDate;
}
public Long getLoopDelay() {
return this.loopDelay;
}
public void setLoopDelay(Long loopDelay) {
this.loopDelay = loopDelay;
}
public Long getLoopFlag() {
return loopFlag;
}
public void setLoopFlag(Long loopFlag) {
this.loopFlag = loopFlag;
}
}

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.MissionParameterTable3" table="mission_parameter_table3">
<id name="missionId" type="java.lang.Long">
<column name="mission_id" precision="22" scale="0" />
</id>
<property name="missionDesc" type="java.lang.String">
<column name="mission_desc" length="256" />
</property>
<property name="filePath" type="java.lang.String">
<column name="file_path" length="1024" not-null="true" />
</property>
<property name="timeFormat" type="java.lang.Long">
<column name="time_format" precision="22" scale="0" />
</property>
<property name="startTime" type="java.lang.Long">
<column name="start_time" precision="22" scale="0" />
</property>
<property name="endTime" type="java.lang.Long">
<column name="end_time" precision="22" scale="0" />
</property>
<property name="filterType" type="java.lang.Long">
<column name="filter_type" precision="22" scale="0" not-null="true" />
</property>
<property name="filterKeyword" type="java.lang.String">
<column name="filter_keyword" length="1024" />
</property>
<property name="maxReturn" type="java.lang.Long">
<column name="max_return" precision="22" scale="0" not-null="true" />
</property>
<property name="nodeListId" type="java.lang.Long">
<column name="node_list_id" precision="22" scale="0" not-null="true" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,136 @@
package nis.nms.domains;
/**
* MissionParameterTable3 entity.
*
* @author MyEclipse Persistence Tools
*/
public class MissionParameterTable3 implements java.io.Serializable {
// Fields
private Long missionId;
private String missionDesc;
private String filePath;
private Long timeFormat;
private Long startTime;
private Long endTime;
private Long filterType;
private String filterKeyword;
private Long maxReturn;
private Long nodeListId;
// Constructors
/** default constructor */
public MissionParameterTable3() {
}
/** minimal constructor */
public MissionParameterTable3(String filePath, Long filterType,
Long maxReturn, Long nodeListId) {
this.filePath = filePath;
this.filterType = filterType;
this.maxReturn = maxReturn;
this.nodeListId = nodeListId;
}
/** full constructor */
public MissionParameterTable3(String missionDesc, String filePath,
Long timeFormat, Long startTime, Long endTime, Long filterType,
String filterKeyword, Long maxReturn, Long nodeListId) {
this.missionDesc = missionDesc;
this.filePath = filePath;
this.timeFormat = timeFormat;
this.startTime = startTime;
this.endTime = endTime;
this.filterType = filterType;
this.filterKeyword = filterKeyword;
this.maxReturn = maxReturn;
this.nodeListId = nodeListId;
}
// Property accessors
public Long getMissionId() {
return this.missionId;
}
public void setMissionId(Long missionId) {
this.missionId = missionId;
}
public String getMissionDesc() {
return this.missionDesc;
}
public void setMissionDesc(String missionDesc) {
this.missionDesc = missionDesc;
}
public String getFilePath() {
return this.filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public Long getTimeFormat() {
return this.timeFormat;
}
public void setTimeFormat(Long timeFormat) {
this.timeFormat = timeFormat;
}
public Long getStartTime() {
return this.startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public Long getFilterType() {
return this.filterType;
}
public void setFilterType(Long filterType) {
this.filterType = filterType;
}
public String getFilterKeyword() {
return this.filterKeyword;
}
public void setFilterKeyword(String filterKeyword) {
this.filterKeyword = filterKeyword;
}
public Long getMaxReturn() {
return this.maxReturn;
}
public void setMaxReturn(Long maxReturn) {
this.maxReturn = maxReturn;
}
public Long getNodeListId() {
return this.nodeListId;
}
public void setNodeListId(Long nodeListId) {
this.nodeListId = nodeListId;
}
}

View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.MissionParameterTable4" table="mission_parameter_table4">
<id name="missionId" type="java.lang.Long">
<column name="mission_id" precision="22" scale="0" />
</id>
<property name="missionDesc" type="java.lang.String">
<column name="mission_desc" length="256" />
</property>
<property name="commandType" type="java.lang.Long">
<column name="command_type" precision="22" scale="0" />
</property>
<property name="commandId" type="java.lang.Long">
<column name="command_id" precision="22" scale="0" />
</property>
<property name="commandPara" type="java.lang.String">
<column name="command_para" />
</property>
<property name="filterType" type="java.lang.Long">
<column name="filter_type" precision="22" scale="0" />
</property>
<property name="filterKeyword" type="java.lang.String">
<column name="filter_keyword" length="1024" />
</property>
<property name="maxReturn" type="java.lang.Long">
<column name="max_return" precision="22" scale="0" />
</property>
<property name="nodeListId" type="java.lang.Long">
<column name="node_list_id" precision="22" scale="0" />
</property>
<property name="version" type="java.lang.Long">
<column name="version">
</column>
</property>
<property name="nodeGroupsId" type="java.lang.String">
<column name="NODE_GROUPS_ID" length="500" >
</column>
</property>
<property name="nodeIpsId" type="java.lang.String">
<column name="node_ips_id" length="4000" >
</column>
</property>
<property name="commandEName" type="java.lang.String">
<column name="COMMAND_ENAME" length="50" >
</column>
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,199 @@
package nis.nms.domains;
/**
* MissionParameterTable4 entity.
*
* @author MyEclipse Persistence Tools
*/
public class MissionParameterTable4 implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = -4973199745589122294L;
private Long missionId;
private String missionDesc;
private Long commandType;
private Long commandId;
private String commandName;
private String commandPara;
private Long filterType;
private String filterKeyword;
private Long maxReturn;
private Long nodeListId;
private Long version;
private String nodeListName;
private String nodeGroupsId;
private String nodeIpsId;
private String nodeListName2;
// Constructors
private String commandEName;
/** default constructor */
public MissionParameterTable4() {
}
/** minimal constructor */
public MissionParameterTable4(Long commandType, Long filterType,
Long maxReturn, Long nodeListId) {
this.commandType = commandType;
this.filterType = filterType;
this.maxReturn = maxReturn;
this.nodeListId = nodeListId;
}
/** full constructor */
public MissionParameterTable4(String missionDesc, Long commandType,
Long commandId, String commandPara, Long filterType,
String filterKeyword, Long maxReturn, Long nodeListId,String nodeGroupsId,String commandEName) {
this.missionDesc = missionDesc;
this.commandType = commandType;
this.commandId = commandId;
this.commandPara = commandPara;
this.filterType = filterType;
this.filterKeyword = filterKeyword;
this.maxReturn = maxReturn;
this.nodeListId = nodeListId;
this.nodeGroupsId = nodeGroupsId;
this.commandEName = commandEName;
}
// Property accessors
public Long getMissionId() {
return this.missionId;
}
public void setMissionId(Long missionId) {
this.missionId = missionId;
}
public String getMissionDesc() {
return this.missionDesc;
}
public void setMissionDesc(String missionDesc) {
this.missionDesc = missionDesc;
}
public Long getCommandType() {
return this.commandType;
}
public void setCommandType(Long commandType) {
this.commandType = commandType;
}
public Long getCommandId() {
return this.commandId;
}
public void setCommandId(Long commandId) {
this.commandId = commandId;
}
public String getCommandPara() {
return this.commandPara;
}
public void setCommandPara(String commandPara) {
this.commandPara = commandPara;
}
public Long getFilterType() {
return this.filterType;
}
public void setFilterType(Long filterType) {
this.filterType = filterType;
}
public String getFilterKeyword() {
return this.filterKeyword;
}
public void setFilterKeyword(String filterKeyword) {
this.filterKeyword = filterKeyword;
}
public Long getMaxReturn() {
return this.maxReturn;
}
public void setMaxReturn(Long maxReturn) {
this.maxReturn = maxReturn;
}
public Long getNodeListId() {
return this.nodeListId;
}
public void setNodeListId(Long nodeListId) {
this.nodeListId = nodeListId;
}
public String getCommandName() {
return commandName;
}
public void setCommandName(String commandName) {
this.commandName = commandName;
}
public Long getVersion() {
return version;
}
public void setVersion(Long version) {
this.version = version;
}
public String getNodeListName() {
return nodeListName;
}
public void setNodeListName(String nodeListName) {
this.nodeListName = nodeListName;
}
public String getNodeGroupsId()
{
return nodeGroupsId;
}
public void setNodeGroupsId(String nodeGroupsId)
{
this.nodeGroupsId = nodeGroupsId;
}
public String getNodeIpsId() {
return nodeIpsId;
}
public void setNodeIpsId(String nodeIpsId) {
this.nodeIpsId = nodeIpsId;
}
public String getNodeListName2() {
return nodeListName2;
}
public void setNodeListName2(String nodeListName2) {
this.nodeListName2 = nodeListName2;
}
public String getCommandEName() {
return commandEName;
}
public void setCommandEName(String commandEName) {
this.commandEName = commandEName;
}
}

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.MissionParameterTable5" table="mission_parameter_table5">
<id name="missionId" type="java.lang.Long">
<column name="mission_id" precision="22" scale="0" />
</id>
<property name="missionDesc" type="java.lang.String">
<column name="mission_desc" length="256" />
</property>
<property name="nodeListId" type="java.lang.Long">
<column name="node_list_id" precision="22" scale="0" not-null="true" />
</property>
<property name="commandId" type="java.lang.Long">
<column name="command_id" precision="22" scale="0" not-null="true" />
</property>
<property name="commandEName" type="java.lang.String">
<column name="COMMAND_ENAME" length="50" >
</column>
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,82 @@
package nis.nms.domains;
/**
* MissionParameterTable5 entity.
*
* @author MyEclipse Persistence Tools
*/
public class MissionParameterTable5 implements java.io.Serializable {
// Fields
private Long missionId;
private String missionDesc;
private Long nodeListId;
private Long commandId;
private String commandEName;
// Constructors
/** default constructor */
public MissionParameterTable5() {
}
/** minimal constructor */
public MissionParameterTable5(Long nodeListId, Long commandId) {
this.nodeListId = nodeListId;
this.commandId = commandId;
}
/** full constructor */
public MissionParameterTable5(String missionDesc, Long nodeListId,
Long commandId,String commandEName) {
this.missionDesc = missionDesc;
this.nodeListId = nodeListId;
this.commandId = commandId;
this.commandEName = commandEName;
}
// Property accessors
public Long getMissionId() {
return this.missionId;
}
public void setMissionId(Long missionId) {
this.missionId = missionId;
}
public String getMissionDesc() {
return this.missionDesc;
}
public void setMissionDesc(String missionDesc) {
this.missionDesc = missionDesc;
}
public Long getNodeListId() {
return this.nodeListId;
}
public void setNodeListId(Long nodeListId) {
this.nodeListId = nodeListId;
}
public Long getCommandId() {
return this.commandId;
}
public void setCommandId(Long commandId) {
this.commandId = commandId;
}
public String getCommandEName() {
return commandEName;
}
public void setCommandEName(String commandEName) {
this.commandEName = commandEName;
}
}

View File

@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.MissionParameterTable6" table="MISSION_PARAMETER_TABLE6">
<id name="missionId" type="long">
<column name="MISSION_ID" precision="22" scale="0" />
</id>
<property name="missionDesc" type="string">
<column name="MISSION_DESC" length="256" />
</property>
<property name="commandType" type="long">
<column name="COMMAND_TYPE" precision="22" scale="0" />
</property>
<property name="commandId" type="long">
<column name="COMMAND_ID" precision="22" scale="0" />
</property>
<property name="commandPara" type="java.lang.String">
<column name="COMMAND_PARA" />
</property>
<property name="nodeListId" type="long">
<column name="NODE_LIST_ID" precision="22" scale="0" />
</property>
<property name="sourcePath" type="string">
<column name="SOURCE_PATH" length="1024" />
</property>
<property name="targetPath" type="string">
<column name="TARGET_PATH" length="1024" />
</property>
<property name="checkValue" type="string">
<column name="CHECK_VALUE" length="128" />
</property>
<property name="startTime" type="java.util.Date">
<column name="START_TIME" length="7" />
</property>
<property name="version" type="java.lang.Long">
<column name="VERSION" precision="22" scale="0" />
</property>
<property name="nodeGroupsId" type="java.lang.String">
<column name="NODE_GROUPS_ID" length="500" >
</column>
</property>
<property name="nodeIpsId" type="java.lang.String">
<column name="node_ips_id" length="4000" >
</column>
</property>
<property name="oldTaskId" type="java.lang.Long">
<column name="old_Task_Id" precision="22" scale="0" />
</property>
<property name="commandEName" type="java.lang.String">
<column name="COMMAND_ENAME" length="50" >
</column>
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,210 @@
package nis.nms.domains;
import java.util.Date;
/**
* MissionParameterTable6 entity.
*
* @author MyEclipse Persistence Tools
*/
public class MissionParameterTable6 implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = 1L;
private long missionId;
private String missionDesc;
private long commandType;
private long commandId;
private String commandName;
private String commandPara;
private long nodeListId;
private String nodeListName; //节点组名称
private String sourcePath;
private String targetPath;
private String checkValue;
private Date startTime;
private Long version;
private String nodeGroupsId;
private String nodeIpsId;
private String nodeListName2; //节点名称
private Long oldTaskId;
// Constructors
private String commandEName;
/** default constructor */
public MissionParameterTable6() {
}
/** full constructor */
public MissionParameterTable6(String missionDesc, long commandType,
long commandId, String commandPara, long nodeListId,
String sourcePath, String targetPath, String checkValue,
Date startTime, long version,String nodeGroupsId,String commandEName) {
this.missionDesc = missionDesc;
this.commandType = commandType;
this.commandId = commandId;
this.commandPara = commandPara;
this.nodeListId = nodeListId;
this.sourcePath = sourcePath;
this.targetPath = targetPath;
this.checkValue = checkValue;
this.startTime = startTime;
this.version = version;
this.nodeGroupsId = nodeGroupsId;
this.commandEName = commandEName;
}
// Property accessors
public long getMissionId() {
return this.missionId;
}
public void setMissionId(long missionId) {
this.missionId = missionId;
}
public String getMissionDesc() {
return this.missionDesc;
}
public void setMissionDesc(String missionDesc) {
this.missionDesc = missionDesc;
}
public long getCommandType() {
return this.commandType;
}
public void setCommandType(long commandType) {
this.commandType = commandType;
}
public long getCommandId() {
return this.commandId;
}
public void setCommandId(long commandId) {
this.commandId = commandId;
}
public String getCommandPara() {
return this.commandPara;
}
public void setCommandPara(String commandPara) {
this.commandPara = commandPara;
}
public long getNodeListId() {
return this.nodeListId;
}
public void setNodeListId(long nodeListId) {
this.nodeListId = nodeListId;
}
public String getSourcePath() {
return this.sourcePath;
}
public void setSourcePath(String sourcePath) {
this.sourcePath = sourcePath;
}
public String getTargetPath() {
return this.targetPath;
}
public void setTargetPath(String targetPath) {
this.targetPath = targetPath;
}
public String getCheckValue() {
return this.checkValue;
}
public void setCheckValue(String checkValue) {
this.checkValue = checkValue;
}
public Date getStartTime() {
return this.startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Long getVersion() {
return this.version;
}
public void setVersion(Long version) {
this.version = version;
}
public String getCommandName() {
return commandName;
}
public void setCommandName(String commandName) {
this.commandName = commandName;
}
public String getNodeListName() {
return nodeListName;
}
public void setNodeListName(String nodeListName) {
this.nodeListName = nodeListName;
}
public String getNodeGroupsId()
{
return nodeGroupsId;
}
public void setNodeGroupsId(String nodeGroupsId)
{
this.nodeGroupsId = nodeGroupsId;
}
public String getNodeIpsId() {
return nodeIpsId;
}
public void setNodeIpsId(String nodeIpsId) {
this.nodeIpsId = nodeIpsId;
}
public String getNodeListName2() {
return nodeListName2;
}
public void setNodeListName2(String nodeListName2) {
this.nodeListName2 = nodeListName2;
}
public Long getOldTaskId() {
return oldTaskId;
}
public void setOldTaskId(Long oldTaskId) {
this.oldTaskId = oldTaskId;
}
public String getCommandEName() {
return commandEName;
}
public void setCommandEName(String commandEName) {
this.commandEName = commandEName;
}
}

View File

@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.MissionStateTable" table="mission_state_table">
<id name="missionId" type="java.lang.Long">
<column name="mission_id" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_mission_state_table</param>
</generator>
</id>
<property name="missionName" type="java.lang.String">
<column name="mission_name" length="64" not-null="true">
</column>
</property>
<property name="missionType" type="java.lang.Long">
<column name="Mission_type" precision="22" scale="0" not-null="true">
</column>
</property>
<property name="missionState" type="java.lang.Long">
<column name="Mission_State" precision="22" scale="0" not-null="true" />
</property>
<property name="viewLevel" type="java.lang.Long">
<column name="View_level" precision="22" scale="0" not-null="true">
</column>
</property>
<property name="userId" type="java.lang.Long">
<column name="user_id" precision="22" scale="0" not-null="true">
</column>
</property>
<property name="groupId" type="java.lang.Long">
<column name="group_id" precision="22" scale="0" >
</column>
</property>
<property name="createTime" type="java.util.Date">
<column name="Create_time" length="7">
</column>
</property>
<property name="startTime" type="java.util.Date">
<column name="Start_time" length="7">
</column>
</property>
<property name="endTime" type="java.util.Date">
<column name="End_time" length="7">
</column>
</property>
<property name="failDesc" type="java.lang.String">
<column name="Fail_desc">
</column>
</property>
<property name="systemId" type="java.lang.Long">
<column name="System_id">
</column>
</property>
<property name="loopFlag" type="java.lang.Long">
<column name="is_loop">
</column>
</property>
<property name="failedCount" type="java.lang.Long">
<column name="FAILED_COUNT">
</column>
</property>
<property name="loopDelay" type="java.lang.Long">
<column name="Loop_delay">
</column>
</property>
<property name="contactUserIds" type="java.lang.String">
<column name="CONTACT_USER_IDS">
</column>
</property>
<property name="autoDesc" type="java.lang.String">
<column name="auto_Desc">
</column>
</property>
<property name="isLook" type="java.lang.String">
<column name="IS_LOOK">
</column>
</property>
<property name="missionStateDesc" type="java.lang.String">
<column name="MISSION_STATE_DESC">
</column>
</property>
<property name="lookUserIds" type="java.lang.String">
<column name="LOOK_USER_ID">
</column>
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,310 @@
package nis.nms.domains;
import java.util.Date;
/**
* MissionStateTable entity.
*
* @author MyEclipse Persistence Tools
*/
public class MissionStateTable implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = -1342600696641355325L;
private Long missionId;
private String missionName;
private Long missionType;
private String missionTypeName;
private Long missionState;
private Long viewLevel;
private Long userId;
private String userIdName;
private Long groupId;
private String groupIdName;
private Date createTime;
private Date startTime;
private Date endTime;
private String failDesc;
private Long systemId;
private String systemIdName;
private Long loopFlag;
private Long loopDelay;
private String contactUserIds;
private String autoDesc;
private String missionStateDesc;
private Long failedCount;
private String isLook;
private String lookUserIds;
// Constructors
/** default constructor */
public MissionStateTable() {
}
/** minimal constructor */
public MissionStateTable(String missionName, Long missionType,
Long missionState, Long viewLevel, Long userId,
Long groupId,Long loopFlag) {
this.missionName = missionName;
this.missionType = missionType;
this.missionState = missionState;
this.viewLevel = viewLevel;
this.userId = userId;
this.groupId = groupId;
this.loopFlag = loopFlag;
}
/** full constructor */
public MissionStateTable(String missionName, Long missionType,
Long missionState, Long viewLevel, Long userId,
Long groupId, Date createTime, Date startTime, Date endTime,
String failDesc, Long systemId,Long loopFlag) {
this.missionName = missionName;
this.missionType = missionType;
this.missionState = missionState;
this.viewLevel = viewLevel;
this.userId = userId;
this.groupId = groupId;
this.createTime = createTime;
this.startTime = startTime;
this.endTime = endTime;
this.failDesc = failDesc;
this.systemId = systemId;
this.loopFlag = loopFlag;
}
/** full constructor */
public MissionStateTable(String missionName, Long missionType,
Long missionState, Long viewLevel, Long userId,
Long groupId, Date createTime, Date startTime, Date endTime,
String failDesc, Long systemId,Long loopFlag,String isLook,String lookUserIds) {
this.missionName = missionName;
this.missionType = missionType;
this.missionState = missionState;
this.viewLevel = viewLevel;
this.userId = userId;
this.groupId = groupId;
this.createTime = createTime;
this.startTime = startTime;
this.endTime = endTime;
this.failDesc = failDesc;
this.systemId = systemId;
this.loopFlag = loopFlag;
this.isLook = isLook;
this.lookUserIds = lookUserIds;
}
// Property accessors
public Long getMissionId() {
return this.missionId;
}
public void setMissionId(Long missionId) {
this.missionId = missionId;
}
public String getMissionName() {
if(this.missionName!=null&&!"".equals(this.missionName)){
return this.missionName.trim();
}else{
return this.missionName;
}
}
public void setMissionName(String missionName) {
this.missionName = missionName;
}
public Long getMissionType() {
return this.missionType;
}
public void setMissionType(Long missionType) {
this.missionType = missionType;
}
public Long getMissionState() {
return this.missionState;
}
public void setMissionState(Long missionState) {
this.missionState = missionState;
}
public Long getViewLevel() {
return this.viewLevel;
}
public void setViewLevel(Long viewLevel) {
this.viewLevel = viewLevel;
}
public Long getUserId() {
return this.userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Long getGroupId() {
return this.groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
public Date getCreateTime() {
return this.createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getStartTime() {
return this.startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return this.endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public String getFailDesc() {
if(this.failDesc!=null&&!"".equals(this.failDesc)){
return this.failDesc.trim();
}else{
return this.failDesc;
}
}
public void setFailDesc(String failDesc) {
this.failDesc = failDesc;
}
public Long getSystemId() {
return this.systemId;
}
public void setSystemId(Long systemId) {
this.systemId = systemId;
}
public String getGroupIdName() {
if(this.groupIdName!=null&&!"".equals(this.groupIdName)){
return this.groupIdName.trim();
}else{
return this.groupIdName;
}
}
public void setGroupIdName(String groupIdName) {
this.groupIdName = groupIdName;
}
public String getSystemIdName() {
return systemIdName;
}
public void setSystemIdName(String systemIdName) {
this.systemIdName = systemIdName;
}
public String getUserIdName() {
return userIdName;
}
public void setUserIdName(String userIdName) {
this.userIdName = userIdName;
}
public String getMissionTypeName() {
return missionTypeName;
}
public void setMissionTypeName(String missionTypeName) {
this.missionTypeName = missionTypeName;
}
public Long getLoopFlag() {
return loopFlag;
}
public void setLoopFlag(Long loopFlag) {
this.loopFlag = loopFlag;
}
public Long getLoopDelay() {
return loopDelay;
}
public void setLoopDelay(Long loopDelay) {
this.loopDelay = loopDelay;
}
public String getContactUserIds() {
return contactUserIds;
}
public void setContactUserIds(String contactUserIds) {
this.contactUserIds = contactUserIds;
}
public Long getFailedCount() {
return failedCount;
}
public void setFailedCount(Long failedCount) {
this.failedCount = failedCount;
}
public String getAutoDesc() {
return autoDesc;
}
public void setAutoDesc(String autoDesc) {
this.autoDesc = autoDesc;
}
public String getIsLook() {
return isLook;
}
public String getMissionStateDesc()
{
return missionStateDesc;
}
public void setIsLook(String isLook) {
this.isLook = isLook;
}
public void setMissionStateDesc(String missionStateDesc)
{
this.missionStateDesc = missionStateDesc;
}
public String getLookUserIds() {
return lookUserIds;
}
public void setLookUserIds(String lookUserIds) {
this.lookUserIds = lookUserIds;
}
}

View File

@@ -0,0 +1,149 @@
/**
* Module.java
* 版权所有(C) 2010 北京中科智源育成信息技术有限公司
* @author ZhengXi
* @date 2010-11-19
* @version V1.0
*/
package nis.nms.domains;
/**
* 桌面组件对象属性载体
*
* @author ZhengXi
* @version V1.0
*/
public class Module {
private int id; // 主键id
private String icon; // 图标路径
private String title; // 组件标题
private String url; // 访问路径
private boolean showIcon = true;// 是否在桌面显示
private boolean cashe = false;// 是否缓存
private int width; // 组件窗口宽度
private int height; // 组件窗口高度
private int top; // 组件窗口默认top
private int left; // 组件窗口默认left
private String key; // 拼音首字母字符串
private String pinyin; // 全拼字母字符串
public Module() {
}
public Module(int id, String icon, String title, String url,
boolean showIcon, boolean cashe, int width, int height, int top,
int left, String key, String pinyin) {
super();
this.id = id;
this.icon = icon;
this.title = title;
this.url = url;
this.showIcon = showIcon;
this.cashe = cashe;
this.width = width;
this.height = height;
this.top = top;
this.left = left;
this.key = key;
this.pinyin = pinyin;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public boolean isShowIcon() {
return showIcon;
}
public void setShowIcon(boolean showIcon) {
this.showIcon = showIcon;
}
public boolean isCashe() {
return cashe;
}
public void setCashe(boolean cashe) {
this.cashe = cashe;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
public int getHeight() {
return height;
}
public void setHeight(int height) {
this.height = height;
}
public int getTop() {
return top;
}
public void setTop(int top) {
this.top = top;
}
public int getLeft() {
return left;
}
public void setLeft(int left) {
this.left = left;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getPinyin() {
return pinyin;
}
public void setPinyin(String pinyin) {
this.pinyin = pinyin;
}
}

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.NmsErrorCode" table="NMS_ERROR_CODE">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_nms_error_code</param>
</generator>
</id>
<property name="errorCode" type="java.lang.String">
<column name="ERROR_CODE" length="50" not-null="true" />
</property>
<property name="errorName" type="java.lang.String">
<column name="ERROR_NAME" length="100" not-null="true" />
</property>
<property name="errorDes" type="java.lang.String">
<column name="ERROR_DES" length="200" />
</property>
<property name="errorLevel" type="java.lang.Long">
<column name="ERROR_LEVEL" precision="22" scale="0" not-null="true" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,86 @@
package nis.nms.domains;
/**
* NmsErrorCode entity.
*
* @author MyEclipse Persistence Tools
*/
public class NmsErrorCode implements java.io.Serializable {
// Fields
private Long id;
private String errorCode;
private String errorName;
private String errorDes;
private Long errorLevel;
// Constructors
/** default constructor */
public NmsErrorCode() {
}
/** minimal constructor */
public NmsErrorCode(Long id, String errorCode, String errorName,
Long errorLevel) {
this.id = id;
this.errorCode = errorCode;
this.errorName = errorName;
this.errorLevel = errorLevel;
}
/** full constructor */
public NmsErrorCode(Long id, String errorCode, String errorName,
String errorDes, Long errorLevel) {
this.id = id;
this.errorCode = errorCode;
this.errorName = errorName;
this.errorDes = errorDes;
this.errorLevel = errorLevel;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getErrorCode() {
return this.errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public String getErrorName() {
return this.errorName;
}
public void setErrorName(String errorName) {
this.errorName = errorName;
}
public String getErrorDes() {
return this.errorDes;
}
public void setErrorDes(String errorDes) {
this.errorDes = errorDes;
}
public Long getErrorLevel() {
return this.errorLevel;
}
public void setErrorLevel(Long errorLevel) {
this.errorLevel = errorLevel;
}
}

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.NmsErrorInfo" table="NMS_ERROR_INFO">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">seq_nms_error_info</param>
</generator>
</id>
<property name="errorCode" type="java.lang.String">
<column name="ERROR_CODE" length="50" />
</property>
<property name="errorTime" type="java.util.Date">
<column name="ERROR_TIME" length="7" />
</property>
<property name="errortGetip" type="java.lang.String">
<column name="ERRORT_GETIP" length="20" />
</property>
<property name="errortIp" type="java.lang.String">
<column name="ERRORT_IP" length="20" />
</property>
<property name="errorState" type="java.lang.Long">
<column name="ERROR_STATE" precision="22" scale="0" />
</property>
<property name="stateUpdateTime" type="java.util.Date">
<column name="STATE_UPDATE_TIME" length="7" />
</property>
<property name="stateUpdateUserid" type="java.lang.Long">
<column name="STATE_UPDATE_USERID" precision="22" scale="0" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,136 @@
package nis.nms.domains;
import java.util.Date;
/**
* NmsErrorInfo entity.
*
* @author MyEclipse Persistence Tools
*/
public class NmsErrorInfo implements java.io.Serializable {
// Fields
private Long id;
private String errorCode;
private Date errorTime;
private String errortGetip;
private String errortIp;
private Long errorState;
private String errorDesc;
private Date stateUpdateTime;
private Long stateUpdateUserid;
// Constructors
/** default constructor */
public NmsErrorInfo() {
}
/** minimal constructor */
public NmsErrorInfo(Long id) {
this.id = id;
}
/** full constructor */
public NmsErrorInfo(Long id, String errorCode, Date errorTime,
String errortGetip, String errortIp, Long errorState,
Date stateUpdateTime, Long stateUpdateUserid) {
this.id = id;
this.errorCode = errorCode;
this.errorTime = errorTime;
this.errortGetip = errortGetip;
this.errortIp = errortIp;
this.errorState = errorState;
this.stateUpdateTime = stateUpdateTime;
this.stateUpdateUserid = stateUpdateUserid;
}
/** full constructor */
public NmsErrorInfo(String errorCode, Date errorTime,
String errortGetip, String errortIp, Long errorState,
Date stateUpdateTime, Long stateUpdateUserid) {
this.errorCode = errorCode;
this.errorTime = errorTime;
this.errortGetip = errortGetip;
this.errortIp = errortIp;
this.errorState = errorState;
this.stateUpdateTime = stateUpdateTime;
this.stateUpdateUserid = stateUpdateUserid;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getErrorCode() {
return this.errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public Date getErrorTime() {
return this.errorTime;
}
public void setErrorTime(Date errorTime) {
this.errorTime = errorTime;
}
public String getErrortGetip() {
return this.errortGetip;
}
public void setErrortGetip(String errortGetip) {
this.errortGetip = errortGetip;
}
public String getErrortIp() {
return this.errortIp;
}
public void setErrortIp(String errortIp) {
this.errortIp = errortIp;
}
public Long getErrorState() {
return this.errorState;
}
public void setErrorState(Long errorState) {
this.errorState = errorState;
}
public Date getStateUpdateTime() {
return this.stateUpdateTime;
}
public void setStateUpdateTime(Date stateUpdateTime) {
this.stateUpdateTime = stateUpdateTime;
}
public Long getStateUpdateUserid() {
return this.stateUpdateUserid;
}
public void setStateUpdateUserid(Long stateUpdateUserid) {
this.stateUpdateUserid = stateUpdateUserid;
}
public String getErrorDesc() {
return errorDesc;
}
public void setErrorDesc(String errorDesc) {
this.errorDesc = errorDesc;
}
}

View File

@@ -0,0 +1,196 @@
package nis.nms.domains;
/**
* NodeTable entity.
*
* @author MyEclipse Persistence Tools
*/
public class NodeBoxModule implements java.io.Serializable {
// Fields
private static final long serialVersionUID = 1984053252904108229L;
private Long id;
private Long nodeId;
private String tableName; //实体节点表表名
private String nodeType; //实体节点类型
private String nodeDesc; //实体节点描述
private Long positionX; //机柜横坐标
private Long positionY; //机柜纵坐标
private String imageUrl;//机柜图片
private Long monthMark;
private Long viewType;
private String linkSplit;//关联匹配式
private String ispn;
private Long parent_id;
private String isWrining;
public NodeBoxModule() {
}
public NodeBoxModule(Long id,Long nodeId,String tableName,String nodeType, String ispn,String nodeDesc,Long positionX,
Long positionY,String imageUrl,Long monthMark,Long viewType,String linkSplit,Long parent_id) {
this.id=id;
this.nodeId = nodeId;
this.tableName = tableName;
this.nodeType = nodeType;
this.ispn = ispn;
this.nodeDesc = nodeDesc;
this.positionX = positionX;
this.positionY = positionY;
this.imageUrl = imageUrl;
this.monthMark = monthMark;
this.viewType = viewType;
this.linkSplit = linkSplit;
this.parent_id = parent_id;
}
public NodeBoxModule(Long nodeId,String tableName,String nodeType, String ispn,String nodeDesc,Long positionX,
Long positionY,String imageUrl,Long monthMark,Long viewType,String linkSplit) {
this.nodeId = nodeId;
this.tableName = tableName;
this.nodeType = nodeType;
this.ispn = ispn;
this.nodeDesc = nodeDesc;
this.positionX = positionX;
this.positionY = positionY;
this.imageUrl = imageUrl;
this.monthMark = monthMark;
this.viewType = viewType;
this.linkSplit = linkSplit;
}
public NodeBoxModule(Long id,Long nodeId,String tableName,String nodeType, String ispn,String nodeDesc,Long positionX,
Long positionY,String imageUrl,Long monthMark,Long viewType,String linkSplit,Long parent_id,String isWrining) {
this.id=id;
this.nodeId = nodeId;
this.tableName = tableName;
this.nodeType = nodeType;
this.ispn = ispn;
this.nodeDesc = nodeDesc;
this.positionX = positionX;
this.positionY = positionY;
this.imageUrl = imageUrl;
this.monthMark = monthMark;
this.viewType = viewType;
this.linkSplit = linkSplit;
this.parent_id = parent_id;
this.isWrining = isWrining;
}
public Long getNodeId() {
return nodeId;
}
public void setNodeId(Long nodeId) {
this.nodeId = nodeId;
}
public String getNodeDesc() {
return nodeDesc;
}
public void setNodeDesc(String nodeDesc) {
this.nodeDesc = nodeDesc;
}
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public Long getPositionX() {
return positionX;
}
public void setPositionX(Long positionX) {
this.positionX = positionX;
}
public Long getPositionY() {
return positionY;
}
public void setPositionY(Long positionY) {
this.positionY = positionY;
}
public Long getViewType() {
return viewType;
}
public void setViewType(Long viewType) {
this.viewType = viewType;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getMonthMark() {
return monthMark;
}
public void setMonthMark(Long monthMark) {
this.monthMark = monthMark;
}
public String getTableName() {
return tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public String getNodeType() {
return nodeType;
}
public void setNodeType(String nodeType) {
this.nodeType = nodeType;
}
public String getLinkSplit() {
return linkSplit;
}
public void setLinkSplit(String linkSplit) {
this.linkSplit = linkSplit;
}
public String getIspn() {
return ispn;
}
public void setIspn(String ispn) {
this.ispn = ispn;
}
public Long getParent_id() {
return parent_id;
}
public void setParent_id(Long parentId) {
parent_id = parentId;
}
public String getIsWrining() {
return isWrining;
}
public void setIsWrining(String isWrining) {
this.isWrining = isWrining;
}
}

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="nis.nms.domains.NodeBoxTable" table="NODE_BOX_TABLE">
<id name="nodeBoxId" type="java.lang.Long">
<column name="BOX_ID" precision="22" scale="0" />
<generator class="nis.nms.persistence.SequenceGenerator" >
<param name="sequence">SEQ_NODE_BOX_TABLE</param>
</generator>
</id>
<property name="descinfo" type="java.lang.String">
<column name="DESCINFO" length="200" />
</property>
<property name="ispn" type="java.lang.String">
<column name="ISPN" length="100" />
</property>
<property name="boxUType" type="java.lang.Long">
<column name="BOX_U_TYPE" precision="22" scale="0" />
</property>
<property name="roomIspn" type="java.lang.String">
<column name="ROOM_ISPN" length="200" />
</property>
<property name="roomRowPosition" type="java.lang.Long">
<column name="ROOM_ROW_POSITION" precision="22" scale="0" />
</property>
<property name="roomColPosition" type="java.lang.Long">
<column name="ROOM_COL_POSITION" precision="22" scale="0" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,149 @@
package nis.nms.domains;
import java.util.List;
/**
* NodeBoxTable entity.
*
* @author MyEclipse Persistence Tools
*/
public class NodeBoxTable implements java.io.Serializable {
// Fields
private static final long serialVersionUID = 1984053252904108229L;
private Long nodeBoxId;
private String descinfo;
private String ispn;
private Long boxUType;
private String roomIspn;
private Long roomRowPosition;
private Long roomColPosition;
//机柜设置机柜位置集合
private List<NodeLatticeTable> nodeLatticeList;
//机柜状态,机柜中的节点是否正常
private boolean alarm;
//机柜状态,节点组下的节点在本机柜中
private boolean hasNode;
// Constructors
/** default constructor */
public NodeBoxTable() {
}
/** minimal constructor */
public NodeBoxTable(Long nodeBoxId) {
this.nodeBoxId = nodeBoxId;
}
/** full constructor */
public NodeBoxTable(Long nodeBoxId, String descinfo, String ispn,
Long boxUType, String roomIspn, Long roomRowPosition,
Long roomColPosition) {
this.nodeBoxId = nodeBoxId;
this.descinfo = descinfo;
this.ispn = ispn;
this.boxUType = boxUType;
this.roomIspn = roomIspn;
this.roomRowPosition = roomRowPosition;
this.roomColPosition = roomColPosition;
}
// Property accessors
public Long getNodeBoxId() {
return this.nodeBoxId;
}
public void setNodeBoxId(Long nodeBoxId) {
this.nodeBoxId = nodeBoxId;
}
public String getDescinfo() {
return this.descinfo;
}
public void setDescinfo(String descinfo) {
this.descinfo = descinfo;
}
public String getIspn() {
return this.ispn;
}
public void setIspn(String ispn) {
this.ispn = ispn;
}
public Long getBoxUType() {
return this.boxUType;
}
public void setBoxUType(Long boxUType) {
this.boxUType = boxUType;
}
public String getRoomIspn() {
return this.roomIspn;
}
public void setRoomIspn(String roomIspn) {
this.roomIspn = roomIspn;
}
public Long getRoomRowPosition() {
return this.roomRowPosition;
}
public void setRoomRowPosition(Long roomRowPosition) {
this.roomRowPosition = roomRowPosition;
}
public Long getRoomColPosition() {
return this.roomColPosition;
}
public void setRoomColPosition(Long roomColPosition) {
this.roomColPosition = roomColPosition;
}
public List<NodeLatticeTable> getNodeLatticeList()
{
return nodeLatticeList;
}
public void setNodeLatticeList(List<NodeLatticeTable> nodeLatticeList)
{
this.nodeLatticeList = nodeLatticeList;
}
public boolean isAlarm()
{
return alarm;
}
public void setAlarm(boolean alarm)
{
this.alarm = alarm;
}
public boolean isHasNode()
{
return hasNode;
}
public void setHasNode(boolean hasNode)
{
this.hasNode = hasNode;
}
}

View File

@@ -0,0 +1,103 @@
package nis.nms.domains;
public class NodeBoxTableVo implements java.io.Serializable{
private static final long serialVersionUID = 1L;
private String descinfo;
private String ispn;
private Long boxUType;
private String roomIspn;
private Long roomRowPosition;
private Long roomColPosition;
//导入结点时,数据错误提示信息
private String showError;
public NodeBoxTableVo() {
}
/** full constructor */
public NodeBoxTableVo(String descinfo, String ispn,
Long boxUType, String roomIspn, Long roomRowPosition,
Long roomColPosition,String showError) {
super();
this.descinfo = descinfo;
this.ispn = ispn;
this.boxUType = boxUType;
this.roomIspn = roomIspn;
this.roomRowPosition = roomRowPosition;
this.roomColPosition = roomColPosition;
this.showError = showError;
}
public String getDescinfo() {
return descinfo;
}
public void setDescinfo(String descinfo) {
this.descinfo = descinfo;
}
public String getIspn() {
return ispn;
}
public void setIspn(String ispn) {
this.ispn = ispn;
}
public Long getBoxUType() {
return boxUType;
}
public void setBoxUType(Long boxUType) {
this.boxUType = boxUType;
}
public String getRoomIspn() {
return roomIspn;
}
public void setRoomIspn(String roomIspn) {
this.roomIspn = roomIspn;
}
public Long getRoomRowPosition() {
return roomRowPosition;
}
public void setRoomRowPosition(Long roomRowPosition) {
this.roomRowPosition = roomRowPosition;
}
public Long getRoomColPosition() {
return roomColPosition;
}
public void setRoomColPosition(Long roomColPosition) {
this.roomColPosition = roomColPosition;
}
public String getShowError() {
return showError;
}
public void setShowError(String showError) {
this.showError = showError;
}
}

Some files were not shown because too many files have changed in this diff Show More