helenyrwu
a1c41154de
Distribute failover event with topic
...
Change-Id: I8629e7e19ebd4a18f95b32ad3ce1eba7ddf4ecc6
2016-08-22 16:11:39 +00:00
Madan Jampani
ae538ff419
ONOS-5101: Ensure app activation order reflects the dependency order
...
Change-Id: I77e0579436d80643b8262f0ec5ad6efb57936a0b
2016-08-19 12:49:28 -07:00
Yuta HIGUCHI
d08e2e97f1
Binary incompatible serializer changes
...
- If the field type is fixed and the type is final, Class info can be omitted
- Annotations serializer to use optimization based on the fact Map<String, String> and non-null key/value
- Reduce number of Map copy required for ImmutableMap serializer
- Reduce number of array copy behind Immutable{List, Set} serializer
Change-Id: Ie467a943a33fbfb43b289b8b71ad91ee5890bfb0
2016-08-19 17:26:57 +00:00
Yuta HIGUCHI
a5cda89971
Reduce number of Map lookups
...
Change-Id: I6ea71c120e9143dabdb44dfd86b78f570647eb4b
2016-08-19 16:51:24 +00:00
Jonathan Hart
6f4d586421
Disable NettyMessagingManager test which is failing sporadically
...
Change-Id: Iffb518c80a5b06354c8966c621cc1190fb104499
2016-08-19 16:47:36 +00:00
Yuta HIGUCHI
f24b88c87e
Fix map type mismatch
...
Change-Id: Iadda7707b4ab4f01b5026d314f25a10748d94915
2016-08-18 13:54:46 -07:00
Madan Jampani
13f6515c70
Distributed topic primitive
...
Change-Id: Ia3ccd84c33075f297d7e6b9bc205efe92aec9bea
2016-08-18 20:46:55 +00:00
Yuta HIGUCHI
c012dda796
Workaround for NoClassDefFound issue in Netty.
...
SimpleChannelInboundHandler generates `message` instance check code on the fly,
using JavaAssist. Which was not working, when a new Connection was created on the thread
outside of NettyMessagingManager bundle, which did not have access to netty classes.
- Implemented equivalent for SimpleChannelInboundHandler<InternaleMessage>
without specifying type parameter, avoiding on the fly code generation.
Other changes:
- Add a method in IpAddress to return InetAddress instance.
Change-Id: Ie97294a5650683457b9395e773269c5232d8e602
2016-08-18 19:06:00 +00:00
helenyrwu
89470f1d99
Group event indicating failover of previously used live port
...
Change-Id: I32749b38d5e4fab93fa97bbf6587bd0dc91db88c
2016-08-18 16:56:47 +00:00
Yuta HIGUCHI
0de4ba9401
Remove duplicate version specifications
...
Change-Id: I0fe6027e66815ab2e7db5e090dd5aea39b3c36e1
2016-08-18 15:59:50 +00:00
Sho SHIMIZU
695bac68ec
Check if the logger is configured as trace when logging as trace
...
Change-Id: I58738913b18198fe8a01b313e776e20c6a21f1d0
2016-08-17 16:35:32 +00:00
Sho SHIMIZU
53bcc24715
Follow JUnit 4 style instead of JUnit 3 style
...
Change-Id: I594e458c4c609dab06179a04462284f2b3565674
2016-08-17 16:31:54 +00:00
Yuta HIGUCHI
c2e6815ddc
Use Java 8 Map#compute when possible
...
Change-Id: Ida300c054449047096f355f09b3843e4934dcd18
2016-08-16 22:45:15 +00:00
Yuta HIGUCHI
4859b3ab6f
Fix for Host2Host Intent issue.
...
- installing HostToHostIntent was failing on multi-instance cluster
Change-Id: Ib473a49459c333bfbe74fbcec8363473739cf424
2016-08-16 12:58:23 -07:00
Sho SHIMIZU
21d00698f1
Remove explicit type parameters which can be inferred
...
Change-Id: I62cd4df252bab6208e1b1cd37f8f8757b0cfc17e
2016-08-16 18:07:05 +00:00
Sho SHIMIZU
1578042b4d
Use for-each statement
...
Change-Id: Ib89f3372caebc30542739c0eba62f67ef56a4d4e
2016-08-16 08:57:59 -07:00
Yuta HIGUCHI
f05db4017e
Fix for Netty wiring issue after 4.0 bump.
...
- After updating Netty 4.0 version,
we sometimes see java.lang.NoClassDefFoundError: io/netty/util/internal/TypeParameterMatcher
with backtrace insisting there's some dynamic class resolution inside Netty.
It might be side-effect of recent native-epoll support inside karaf?
https://github.com/netty/netty/issues/5119
- Add DynamicImport-Package for io.netty to allow deferred wiring
http://felix.apache.org/documentation/tutorials-examples-and-presentations/apache-felix-osgi-faq.html#how-to-provide-optional-services
- Add a way to pass DynamicImport-Package on BUCK build
Change-Id: I50ec3400e940c56fb52563d84659ebb30c302235
2016-08-16 00:59:48 +00:00
Sho SHIMIZU
ee5d121524
Don't use Boolean constructor
...
Change-Id: I962e1aed5d9acc3f141bf14a64c0a5af3aa6f4e7
2016-08-13 01:21:22 +00:00
Sho SHIMIZU
19af19d123
Use JDK's Optional instead of Guava's Optional
...
Change-Id: Ia37b2977ede215363374e292b5565f007f1d6483
2016-08-12 16:50:51 -07:00
Sho SHIMIZU
fad6dbcfd3
Remove explicit use of method reference
...
Change-Id: Idb08d28d66b4285a738b2bf98e1c61882d179da1
2016-08-12 23:06:22 +00:00
Sho SHIMIZU
e0b7d16e20
Remove unused import statements
...
Change-Id: I4ff6cba3a880dd324c4b991270e7d7a9d3a89844
2016-08-12 23:04:58 +00:00
Sho SHIMIZU
99e90cd7f5
Replace anonymous class with lambda expression
...
Change-Id: Icb3c5b6146a4a0a11d0d2300b395689f9286dfb9
2016-08-12 23:04:32 +00:00
Sho SHIMIZU
d86c807cf5
Remove methods just calling its super
...
Change-Id: I8eaa1b8e7efb70c51b0bf8877f7d77eddf8e66a2
2016-08-12 22:46:53 +00:00
Sho SHIMIZU
5c396e3cf3
Remove explicit use of the default value
...
Change-Id: I27efdfbb7703f49b7ca13b12fcc71fa20bccf6a7
2016-08-12 15:19:12 -07:00
Sho SHIMIZU
431cafdfd0
Remove final modifier from a private method
...
Change-Id: I2be844b5e2b6e27ead5056c0563207e4336fc4a1
2016-08-12 22:05:38 +00:00
Sho SHIMIZU
3437bdb069
Fix dangling Javadoc comments
...
Change-Id: I828f9bdf0c2b2205b9239c2ef5c85aadd83bb3f0
2016-08-12 14:57:37 -07:00
Yuta HIGUCHI
ed1ca66399
Attempt to fix sporadic NettyMessagingManagerTest failure.
...
Change-Id: Iae570c329a3fe0e7e46f9caf13a5b283a2153ed4
2016-08-11 23:16:58 +00:00
Thomas Vachuska
bddbb25618
Added a temporary fix for out-of-order app activation event delivery.
...
Cleaning up app subsystem code a tiny bit as well.
Change-Id: I5df7d4c6d62d122653331474fb079648e779d595
2016-08-10 23:56:57 +00:00
Sho SHIMIZU
a09e1bbdbd
Use Collection#forEach() instead of Stream#forEach() for simplicity
...
Change-Id: I0a1aea4bdb5d305c50273e6ff749fe71bd2a295a
2016-08-09 17:44:13 +00:00
Sho SHIMIZU
ef835c9d46
Make ResourceService API more flexible in parameter
...
Change-Id: Ic8b803cc6ae3b2798de525bfd6545ac5c57e8fdd
2016-08-09 00:17:51 +00:00
Jonathan Hart
679d24d193
Unit test for Kryo namespaces to prevent people overflowing the namespaces.
...
Change-Id: If37283da60d59558c87e2997690b4578952ad3bf
2016-08-05 14:45:45 -07:00
Thomas Vachuska
1ca7e9fdfd
Fixing cyclic component dependency issue.
...
Change-Id: I7951df92b4a81f09f8ec3c1ae376a7d1125655df
2016-08-05 10:21:41 -07:00
sangyun-han
9f0af2db68
Add ComponentConfigService for @Modified
...
- DistributedClusterStore
- DistributedPacketStore
- DistributedFlowStatisticStore
- DistributedStatisticStore
Change-Id: Ibacd569ba509616ea3000ddfd83d501bd0b8b4ff
2016-08-05 14:28:49 +00:00
Hyunsun Moon
b5f4f2787a
Fixed packet request for multiple devices
...
Currently, it only installs the reuqest to the first registered device.
Change-Id: Ie376760be26544a9f8ece98d76e962cf536ca7cb
2016-08-04 20:06:24 +00:00
Yuta HIGUCHI
7f2c6f9b25
Use karaf/OSGi bundle data path for persistence
...
Change-Id: If5a4eb1fb63ca3455200c29e9981c7a0f2dd044e
2016-08-04 00:37:37 +00:00
Ray Milkey
bb23e0b5fb
Fix Javadoc warnings
...
Change-Id: Icf8b6b6f77ea80d3975aa975226a178145067adf
2016-08-03 14:29:51 -07:00
Thomas Vachuska
c10a9488e3
Fixed potential NPE in flow store.
...
Change-Id: Id4f7887ddf4826f556a62e1a1cd395bc22e882f2
2016-08-03 18:15:17 +00:00
Jayasree Ghosh
2d45985953
ONOS-4751-Fix:creating GroupType INDIRECT, multiple bucket(REST API)
...
Change-Id: Ic8d5a04b8b00ca43bfadbb3019aa5d72e799da6f
2016-08-03 16:56:38 +00:00
Brian O'Connor
05acd64e10
ECMap: Avoid new mapvalue if raw values are equal
...
Change-Id: I84fa9bcada9ea9da1e0c43f61106a9d91fc60e62
2016-08-03 15:05:51 +00:00
Jonathan Hart
f8ba88154c
Remove duplicate kryo registrations for classes that are already registered in API
...
Change-Id: I36ced2f5ff72010e0bd008200bb512c12e45ab39
2016-07-29 00:42:27 +00:00
Thomas Vachuska
698ba661fc
Fixed NPE in distributed network config store that can result from requesting config classes when there is a pending configuration.
...
Change-Id: I82eb332c3d7a214491362553617b12435bf42fb8
2016-07-28 18:57:35 +00:00
Madan Jampani
819d61dfb8
Work queue improvements
...
- Fixed logic to ensure only session to which task is currently assigned can complete it
- Support destroy method to reset work queue state
- Removed deprecated DistributedQueue primitive
Change-Id: I4e1d5be4eb142115130acf15ff34035cb9319a1a
2016-07-28 04:22:28 +00:00
Jon Hall
7a8bfc6caa
[ONOS-4460] Relinquish device role when partitioned away from cluster
...
Change-Id: I578029614cced96a2d4503e4fe3052c927f051ab
2016-07-28 00:37:14 +00:00
Madan Jampani
f3ab42462a
Lower netty reply timeout to 250ms
...
Change-Id: Id125a2b37458a0c31c7fbf5ba03a9d4b38283c48
2016-07-28 00:25:57 +00:00
Thiago Santos
877914d664
[ONOS-4931] fix doc of FlowEntry.life(), add life(TimeUnit)
...
Fix the doc: life() returns the time in seconds, not milliseconds.
Add new method life(TimeUnit) that allows specifying the timeunit to
receive the life value as as seconds might not be enough for
all applications and OpenFlow can provide this value to nanoseconds resolution
(in its spec).
Change-Id: Ia6a7573797249e0edc04e03c7204a550a2823742
2016-07-26 21:32:46 +00:00
Yuta HIGUCHI
aa2f2f6a35
Workaround for compiler warnings
...
Change-Id: Ie20112bb6d69422724bebef8deed680393c19c70
2016-07-26 18:05:11 +00:00
Aaron Kruglikov
6a164354d8
Changing tree map interface to only allow a value type parameter, key is always string.
...
Change-Id: I727e62401998fec63acf9e584cfb79a6ed02b569
2016-07-25 12:57:11 -07:00
Aaron Kruglikov
3e29f66193
Adding additional TreeMap resources
...
Change-Id: I103a8c5e6fb1c5e7a6ae0942e0b746367da18736
2016-07-25 17:43:54 +00:00
Yuta HIGUCHI
1624df1f30
Assigning names to various threads
...
- specify nearby logger when possible
Change-Id: Ia8925ab1459c4d1da922becd0e201388d44d4294
2016-07-22 22:56:26 +00:00
Madan Jampani
c6d69f7d0c
FlowRuleStore: Configurable backup count
...
Change-Id: Ida4d3669e28e66350f4809539a48a456b6ec43c7
2016-07-22 17:36:06 +00:00