checkNotNull(getBetweenAttemptsTimeoutMillis(), betweenAttemptsTimeoutMillisJmxAttribute);
checkCondition(getBetweenAttemptsTimeoutMillis() > 0, "must be > 0", betweenAttemptsTimeoutMillisJmxAttribute);
-// if (getNetconfTopology() == null) {
-// checkNotNull(getDomRegistry(), domRegistryJmxAttribute);
-// checkNotNull(getClientDispatcher(), clientDispatcherJmxAttribute);
-// checkNotNull(getBindingRegistry(), bindingRegistryJmxAttribute);
-// checkNotNull(getProcessingExecutor(), processingExecutorJmxAttribute);
-// }
-
// Check username + password in case of ssh
if(getTcpOnly() == false) {
checkNotNull(getUsername(), usernameJmxAttribute);
@Override
public java.lang.AutoCloseable createInstance() {
- initDependenciesFromTopology();
+ initDependencies();
final RemoteDeviceId id = new RemoteDeviceId(getIdentifier(), getSocketAddress());
final ExecutorService globalProcessingExecutor = processingExecutor.getExecutor();
return new SalConnectorCloseable(listener, salFacade);
}
- private void initDependenciesFromTopology() {
-// topology = getNetconfTopologyDependency();
-
-// domRegistry = topology.getDomRegistryDependency();
-// clientDispatcher = topology.getNetconfClientDispatcherDependency();
-// bindingRegistry = topology.getBindingAwareBroker();
-// processingExecutor = topology.getProcessingExecutorDependency();
-// keepaliveExecutor = topology.getKeepaliveExecutorDependency();
-// sharedSchemaRepository = topology.getSharedSchemaRepository().getSharedSchemaRepository();
-// eventExecutor = topology.getEventExecutorDependency();
-
-// initFilesystemSchemaSourceCache(sharedSchemaRepository);
+ private void initDependencies() {
domRegistry = getDomRegistryDependency();
clientDispatcher = getClientDispatcherDependency();
bindingRegistry = getBindingRegistryDependency();
keepaliveExecutor = getKeepaliveExecutorDependency();
}
- LOG.warn("No topology defined in config, using default-shared-schema-repo");
if (DEFAULT_SCHEMA_REPOSITORY == null) {
DEFAULT_SCHEMA_REPOSITORY = new SharedSchemaRepository("default shared schema repo");
}
import ietf-inet-types {prefix inet; revision-date "2010-09-24";}
description
- "Service definition for Binding Aware MD-SAL.";
+ "Config definition for Netconf Connector modules";
revision "2015-08-03" {
description
- "Add netconf topology from which dependencies are inherited, change
- existing dependencies to non-mandatory to preserve backwards compatibility";
+ "Non-mandatory keepalive executor";
}
revision "2013-10-28" {
container binding-registry {
uses config:service-ref {
refine type {
- mandatory false;
+ mandatory true;
config:required-identity md-sal-binding:binding-broker-osgi-registry;
}
}
container event-executor {
uses config:service-ref {
refine type {
- mandatory false;
+ mandatory true;
config:required-identity netty:netty-event-executor;
}
}
container processing-executor {
uses config:service-ref {
refine type {
- mandatory false;
+ mandatory true;
config:required-identity th:threadpool;
}
}
mandatory false;
config:required-identity th:scheduled-threadpool;
}
+ refine name {
+ mandatory false;
+ }
}
description "Dedicated solely to keepalive execution";