Add aaa-12 类级别的任务划分
RCA: SOL: 修改人:dongxiancun 检视人:dongxiancun
This commit is contained in:
parent
728c67c12a
commit
261d9fe0df
|
@ -16,15 +16,21 @@ public class HuaweiDriverProvider {
|
|||
private static final Logger LOG = LoggerFactory.getLogger(HuaweiDriverProvider.class);
|
||||
|
||||
private final DataBroker dataBroker;
|
||||
private HuaweiDriverRegister register = null; //胡军
|
||||
private HuaweiNetconfSpeaker netconfSpeaker = null; //肖男
|
||||
|
||||
public HuaweiDriverProvider(final DataBroker dataBroker) {
|
||||
this.dataBroker = dataBroker;
|
||||
this.register = new HuaweiDriverRegister(this.dataBroker);
|
||||
this.netconfSpeaker = new HuaweiNetconfSpeaker(this.dataBroker);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method called when the blueprint container is created.
|
||||
*/
|
||||
public void init() {
|
||||
//注册驱动信息
|
||||
register.register();
|
||||
LOG.info("HuaweiDriverProvider Session Initiated");
|
||||
}
|
||||
|
||||
|
@ -32,6 +38,8 @@ public class HuaweiDriverProvider {
|
|||
* Method called when the blueprint container is destroyed.
|
||||
*/
|
||||
public void close() {
|
||||
//移除驱动注册信息
|
||||
register.unregister();
|
||||
LOG.info("HuaweiDriverProvider Closed");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* Copyright © 2019 CMCC Corporation and others. All rights reserved.
|
||||
*
|
||||
* This program and the accompanying materials are made available under the
|
||||
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
|
||||
* and is available at http://www.eclipse.org/legal/epl-v10.html
|
||||
*/
|
||||
package com.cmcc.cmhi.huawei.impl;
|
||||
|
||||
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class HuaweiDriverRegister {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(HuaweiDriverRegister.class);
|
||||
|
||||
private final DataBroker dataBroker;
|
||||
|
||||
public HuaweiDriverRegister(DataBroker dataBroker) {
|
||||
this.dataBroker = dataBroker;
|
||||
}
|
||||
|
||||
public void register() {
|
||||
// TODO Auto-generated method stub
|
||||
LOG.info("HuaweiDriverRegister has completed registration!");
|
||||
}
|
||||
|
||||
public void unregister() {
|
||||
// TODO Auto-generated method stub
|
||||
LOG.info("HuaweiDriverRegister has completed unregistration!");
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright © 2019 CMCC Corporation and others. All rights reserved.
|
||||
*
|
||||
* This program and the accompanying materials are made available under the
|
||||
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
|
||||
* and is available at http://www.eclipse.org/legal/epl-v10.html
|
||||
*/
|
||||
package com.cmcc.cmhi.huawei.impl;
|
||||
|
||||
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
|
||||
|
||||
public class HuaweiNetconfSpeaker {
|
||||
|
||||
private final DataBroker dataBroker;
|
||||
|
||||
public HuaweiNetconfSpeaker(DataBroker dataBroker) {
|
||||
this.dataBroker = dataBroker;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue