Remove odl-controller-exp-netty-config Remove all of configuration remnants, as there is just a single downstream user. JIRA: CONTROLLER-2092 Change-Id: I2d0bb01cfd061c2f0086fcc80b27e6b0a336e5dc Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Promote OSGiGlobalEventExecutor Drop @Beta annotation. Change-Id: I15e93a4645dd586fe80aab36e6d27495508fda82 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Modernize AutoCloseableEventExecutor Remove unneeded indirection through a class, so that we can eliminate a suppression. Change-Id: I52710d8a85a2081afe4b325d57acef70d434acce Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Convert netty-event-executor-config to OSGi DS This is an extremely simple forwarder, convert it to OSGi DS. JIRA: CONTROLLER-1882 Change-Id: Iff74bad52a78adcb6398b09300f6bfa7457dea7d Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bump odlparent to 6.0.0 This bumps odlparent to 6.0.0 as part of Magnesium MRI. Change-Id: I084c6a32c4facafd85e3b87c6d8a9a29a33848a8 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Move BP xml files to standard OSGI-INF/blueprint We originally used org/opendaylight/blueprint in case we needed to customize how BP bundles are processed but this wasn't needed. So let's move to the standard BP dir. We'll keep the BlueprintBundleTracker as is for backwards compatibility - the only change was to modify it to look in both dirs for BP xml files when restarting the container for a bundle. Change-Id: I777e831ef4d8293b49d7aa6c8cdecec96b97937f Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
Remove CSS features Change-Id: I963daed0f5cc379edeaa98054890dcde0b75cf54 Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
netty-event-executor-config: final parameters This automatically-generated patch flags all appropriate parameters as final (including caught exceptions). Change-Id: I53e5803a91a723714f4c9b5a2299c869d81b5a9a Signed-off-by: Stephen Kitt <skitt@redhat.com>
Mechanical code cleanup (config) * Remove unnecessary type specifiers (use Java 7 <>) * Remove unnecessary "extends Object" declarations * Remove unnecessary semi-colons * Merge identical catch blocks * Remove redundant modifiers: - enum constructors are private by default - interface properties are public static final by default - interface methods are public abstract by default - interfaces are abstract by default - inner interfaces are static by default - inner classes in interfaces are public static by default Change-Id: Iefd8363a5eb120fdd43a4632b9e3db0e7e347dba Signed-off-by: Stephen Kitt <skitt@redhat.com>
Deprecate netty config modules Marked the md-sal dom/binding config yang modules, 01-md-sal.xml and associated Module classes as deprecated. Change-Id: I5c2b531ac489b3ce06e54078f28ad0ea76a35670 Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Modify config Module impls to co-exist with blueprint Modified various config system Module implementation classes which have corresponding instances created and advertised via blueprint to obtain the instance in createInstance from the OSGi registry. The instance may not be available yet so it will wait. I added a WaitingServiceTracker class to encapsulate this logic using a ServiceTracker. For those modules that don't advertise services, createInstance simply returns a noop AutoCloseable since the components are created via blueprint. I also added the new disable-osgi-service-registration flag to the corresponding service yang identities to prevent the CSS from duplicating the service registrations. This patch also adds the blueprint bundle to the mdsal features and "turns on" blueprint. Change-Id: I60099c82a2a248fc233ad930c4808d6ab19ea881 Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Add blueprint wiring for netty configs Wiring for netty-threadgroup-config, netty-timer-config, and netty-event-executor-config. Change-Id: I759b222c6f3fcad1cacbc4aeb1af4cec19faff0d Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Fix checkstyle warnings in netty-event-executor-config. Change-Id: I955f3b546aee0ba7d4269ec62c25158b25d92d50 Signed-off-by: Marian Dubai <mdubai@cisco.com>
Close Bug:443 - Implement ImmediateEventExecutor wrapper to config-subsystem. Change-Id: I7b633407ce186507379c0008408deae3775fd0df Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Stop config-manager as first bundle when shutting down container. If config-manager is stopped after a configured module's bundle has been stopped, config-manager will be unable to cleanly close other instances, so it needs to be stopped as first bundle. GlobalEventExecutorModule (netty-global-event-executor) is singleton, enforce it in only allowing one instance called 'singleton'. Make shutdown grace period smaller in order to close netty threads sooner that shutdown issues System.exit(1). Change-Id: I042c606a5bedc49492784dcb0a5ad4dcbdcb0939 Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Add missing headers to config, netconf subsystems Only java files Change-Id: If434e47d42265ed4e71507ac4998554aa6d434ab Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Fixed GlobalEventExecutorCloseable - override "unsupported opearaion" methods. Change-Id: Ic0c65cc596bdf6ba1bbbada576052f11805a202e Signed-off-by: Milos Fabian <milfabia@cisco.com>
Added config SI for io.netty.util.Timer and config module wrapper for HashedWheelTimer, moved netty's config SIs into netty-config-api. Added and fixed dependencies to distribution pom.xml. Change-Id: Iea5fc62c44b92ebb45348f8115c7b3aae8f85cb9 Signed-off-by: Milos Fabian <milfabia@cisco.com>
Added config service interface for netty EventExecutor, module implementation of GlobalEventExecutor. Change-Id: I64064320705b116e42360831e3f53481388f5dbb Signed-off-by: Milos Fabian <milfabia@cisco.com>