parent
4d5b893eb1
commit
13638acb07
|
@ -45,7 +45,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
|
|||
/**
|
||||
* The Dispose service group.
|
||||
*/
|
||||
private final Hashtable<Long, ServiceInfo> disposeServiceGroup = new Hashtable<>();
|
||||
private final Hashtable<String, ServiceInfo> disposeServiceGroup = new Hashtable<>();
|
||||
|
||||
/**
|
||||
* The Obj prefix.
|
||||
|
@ -65,6 +65,19 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
|
|||
*/
|
||||
private long timerCnt = 0;
|
||||
|
||||
/**
|
||||
* Sync dp tech device info.
|
||||
*/
|
||||
private void syncDpTechDeviceInfo() {
|
||||
disposeServiceGroup.values().forEach(v -> {
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
private String getProtectObjectName(String serviceId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Init cleanup devices.
|
||||
*/
|
||||
|
|
|
@ -40,5 +40,5 @@ public interface ServiceGroupMapper {
|
|||
* @param serviceId the service id
|
||||
* @return the int
|
||||
*/
|
||||
int delServiceGroupByServiceId(@Param("serviceId") Long serviceId);
|
||||
int delServiceGroupByServiceId(@Param("serviceId") String serviceId);
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ public class ServiceInfo {
|
|||
/**
|
||||
* The Service id.
|
||||
*/
|
||||
private Long serviceId;
|
||||
private String serviceId;
|
||||
|
||||
/**
|
||||
* The Service type.
|
||||
|
|
|
@ -135,7 +135,7 @@ DROP TABLE IF EXISTS `service_group`;
|
|||
CREATE TABLE `service_group`
|
||||
(
|
||||
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '业务ID唯一标识符',
|
||||
`serviceId` int(11) UNSIGNED NOT NULL COMMENT '业务ID',
|
||||
`serviceId` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务ID',
|
||||
`serviceType` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务类型:SERVER,WEB,DNS,GAME',
|
||||
`serviceBandwidth` int(11) NOT NULL COMMENT '业务带宽,单位M',
|
||||
`serviceIp` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务IP地址,逗号分割',
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<mapper namespace="com.dispose.mapper.ServiceGroupMapper">
|
||||
<resultMap id="service_grp" type="com.dispose.pojo.entity.ServiceInfo">
|
||||
<id column="id" property="id"/>
|
||||
<id column = "serviceId" property="serviceId"/>
|
||||
<result column = "serviceId" property="serviceId"/>
|
||||
<result column="serviceType" property="serviceType"/>
|
||||
<result column="serviceBandwidth" property="serviceBandwidth"/>
|
||||
<result column="serviceIp" property="serviceIp"/>
|
||||
|
|
|
@ -211,7 +211,7 @@ DROP TABLE IF EXISTS `service_group`;
|
|||
CREATE TABLE `service_group`
|
||||
(
|
||||
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '业务ID唯一标识符',
|
||||
`serviceId` int(11) UNSIGNED NOT NULL COMMENT '业务ID',
|
||||
`serviceId` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务ID',
|
||||
`serviceType` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务类型:SERVER,WEB,DNS,GAME',
|
||||
`serviceBandwidth` int(11) NOT NULL COMMENT '业务带宽,单位M',
|
||||
`serviceIp` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务IP地址,逗号分割',
|
||||
|
|
Loading…
Reference in New Issue