Sho SHIMIZU
9db6da6c5b
Add DiscreteResourceCodec for PortNumber
...
Change-Id: Iedda1a0ba46b3d044f127334a8abdb419dabcd9f
(cherry picked from commit cbd103dfc8057432bb5bef63cd9a3adafe9c06ad)
2016-06-02 00:28:04 +00:00
Sho SHIMIZU
758cf63a80
Reduce the memory usage by RangeSet in backing data structure
...
- Typically resource query is more frequent than resource registration.
This patch optimizes memory usage for resource query rather than registration
Change-Id: Ic680c09c83b4299e80d4493d01e642081549fa24
(cherry picked from commit fd18ded046b9135a7fdc7e58c3fbafea9c835fe8)
2016-06-02 00:25:26 +00:00
Sho SHIMIZU
59512bfc70
Rename to match the name of classes that are supplied to codec
...
Change-Id: I4b67ce8343cd0227728c55ba9a0181855464ecc6
(cherry picked from commit a0f6530e1ba05274e0638db4556393243da6ff37)
2016-06-01 22:17:58 +00:00
Sho SHIMIZU
88bb539064
Make DiscreteResourceCodecs package private
...
Change-Id: I4db1440729ce78e4fd64d3fe43e942f6d39e779c
(cherry picked from commit 078b6b819d56d949b206037aedac56d9eb596611)
2016-06-01 21:55:09 +00:00
Sho SHIMIZU
eeef6f4ca5
Refactor: Move DiscreteResourceCodecs to impl package
...
Change-Id: I2ee85d9207615208ce88d04b5fbfaa153cab323a
(cherry picked from commit 74bd8a4f1bc6f81362e33a8cf389aa1048d81a49)
2016-06-01 21:42:35 +00:00
Sho SHIMIZU
2795d63edd
Make serialized resources more compact to omit redundant parent resource ID
...
Change-Id: Icafe92f35bded405dd39e57ad8380bca82a6d720
(cherry picked from commit d68739b5839e1d2be907d3806e2c742df9da95fd)
2016-06-01 20:29:00 +00:00
Brian Stanke
2617dac983
ONOS-4590 - This has been noticed also in ONOS-3633 - Fixing an issue with intents.
...
Pending intents were not being removed from the Gossip intent store as the
intentData object did not match what was stored during the remove.
General cause: intent resubmission loops when installation time exceeds cleanup
polling interval
Change-Id: Id50baade9807c102b7cbff9a4667e048f57698bb
2016-06-01 19:36:29 +00:00
Jon Hall
dabee68864
Improvements to ECMapImpl to increase consistency
...
- When a new map is created, initiate advertisements with peers
- Increase High Load threshold to an average of 1 op per slot
- Attempts to mitigate [ONOS-4569]
Change-Id: I0412d17b55804e4bc095347256e94a49a344c0cc
2016-05-31 23:46:47 +00:00
Madan Jampani
630e7acfad
Migrating to latest Atomix
...
Change-Id: Ie636d1b2623b7f83572dca0d70bd56734379e61a
2016-05-31 21:07:57 +00:00
Sho SHIMIZU
f503a62372
Rename NonEncodableDiscreteResources to GenericDiscreteResources
...
Change-Id: Ib610895b3e2251af1ae5b1cae2b9b8f378a8d920
(cherry picked from commit 18b27e2b73b8e6f9e97997e381a73051f41797f6)
2016-05-31 20:04:16 +00:00
Sho SHIMIZU
65de9619e7
Compaction of discrete resources with range based representation
...
This resolves ONOS-4281
Change-Id: I0739ba94cc0b3ce617e2db44307fef396dcfb942
(cherry picked from commit 34e2c1c223ec62c85c2613c0d899a0cc06b63f33)
2016-05-31 19:59:05 +00:00
Sho SHIMIZU
e4f76edbae
Add a set of discrete resources that can be encoded as interger
...
This is for ONOS-4281
Change-Id: I83de45368485a3c4f6c052b64ef82e846c0553e3
(cherry picked from commit 8a70393458fbaff16a26859d11dbc62f49f469b3)
2016-05-31 19:53:41 +00:00
Sho SHIMIZU
f57d600fa9
Add a DiscreteResources sub type representing an empty set
...
This is for ONOS-4281
Change-Id: Ic4b6e2f00555681bb2af39dc1cf764d325ae8744
(cherry picked from commit abdf2df31ce11ed1fa8ee3ee83c6df41dbb2be4e)
2016-05-31 19:50:56 +00:00
Sho SHIMIZU
6ec2ecaf38
Add Codecs class holding DiscreteResourceCodecs
...
This is for ONOS-4281
Change-Id: I156f23aa7027381cdd4453631654d7eaa33858dd
(cherry picked from commit 32c07af24e7119f71cca87196cde76eacacd0f32)
2016-05-31 19:03:02 +00:00
Madan Jampani
a82b2171a4
Fix PartitionedAsyncLeaderElector to ensure status change listeners are properly handled
...
Change-Id: I9fa1268ba07734130ab7618e2110c053499bf1f1
2016-05-26 19:06:23 -07:00
Madan Jampani
d7ff34d6f2
Ensure one can add/remove status change listeners for LeaderElectors
...
Change-Id: Ief362489fe9b563606f07d52c300629af23b6372
2016-05-26 18:21:26 -07:00
alshabib
ef10b73d0d
fixing a build failure that snuck in.
...
Change-Id: I54c295885df9c150b4526da263f50246ed5e05d1
2016-05-26 16:10:28 -07:00
Aaron Kruglikov
44a1fef950
Updating multimap API and commands and providing implementation.
...
Change-Id: Iff49b429cfc7c0142f3ab2e1dde1a32e85f20e87
2016-05-26 19:59:16 +00:00
Sho SHIMIZU
a4861d4d6d
Simplify expressions
...
Change-Id: I690c65054618c8cf62f8845529377b467d390db5
(cherry picked from commit 9b79bb78244a2184100633374824fc2d32fa3d60)
2016-05-26 19:54:32 +00:00
Sho SHIMIZU
09cd615830
Remove unused variable
...
Change-Id: Id592c0f558dce002e7009a828e054915f9aee4b6
(cherry picked from commit f62ea737f362213f34a6b1ca17c0fbd13c8a19fb)
2016-05-26 19:14:38 +00:00
HIGUCHI Yuta
f093cf231f
Potential fix for ONOS-4521.
...
- Assumption is that problem is triggered, when response is already
received before setting the completion stage to capture execution thread.
Change-Id: I17fdc82be1f6083ed3075858433b347b2caed4cf
(cherry picked from commit 2cb8d3e9774b01648cc5ef4dc8ade101c8811480)
2016-05-26 16:23:12 +00:00
Jonathan Hart
73518ac98a
Put configs back to pending state when the config factory is removed.
...
Addresses one of the causes of ONOS-4605 - not sure if there are others.
Change-Id: I2897e84a10b13ac00d5a03c31b7a08daae57d8cb
2016-05-25 19:10:27 +00:00
Sho SHIMIZU
02e6e20c9d
Add facade object called UnifiedDiscreteResources
...
This is for ONOS-4281
Change-Id: I04649932fdb8983492878732a04c93a21b4cafe7
(cherry picked from commit ac6ff6e1984e0351938467be7677072888258c7d)
2016-05-25 18:18:44 +00:00
Jonathan Hart
80fe442f93
Add more logging to try and track down the root cause of ONOS-4605.
...
Change-Id: Ife0663ca16565b990fbae97182e97c33f0df60ae
2016-05-24 18:47:37 -07:00
Madan Jampani
a4be184595
New ComponentConfigStore that uses a ConsistentMap configured with sequential consistency
...
Change-Id: Ic24e6c59b1cec2b3b8ee8690cd8e4dfaec5ed476
2016-05-24 16:11:39 -07:00
Brian O'Connor
e642f7cf7b
Bumping version to 1.7.0-SNAPSHOT
...
Change-Id: Id105bf08ecbdac6d4e214ae035b4220aea90f29f
2016-05-23 18:35:29 -07:00
Charles Chan
eefdedfb50
Remove redundent byte[].class registration
...
Also added names to some serializer for debugging purpose
Change-Id: I0997b61a5d08df84c85ca28f6a5ed23417fb8c22
2016-05-24 00:09:42 +00:00
Jon Hall
d198b8827a
[ONOS-3591] Anti-Entropy speed up via push/pull interaction
...
Adds an UpdateRequest message. This contains a set of keys that a node
is missing updates for. The receiver will then send an UpdateEntry for
each missing key to the requester.
Change-Id: I2115f4a05833b51ae14d1191f09f083b5251f8ec
2016-05-23 20:48:44 +00:00
HIGUCHI Yuta
8eb6ba155b
Consolidate code clones in Persistent* tests.
...
Change-Id: Ib46e300a3b3af36eab923e43f1b1faee7b1e2d38
2016-05-23 18:18:21 +00:00
Sho SHIMIZU
94e8a16212
Write Javadoc for DiscreteResources
...
Change-Id: I94442852d889b91801ae334171f6a97b94a0954a
2016-05-20 09:54:19 -07:00
Thomas Vachuska
f5896bead5
Fixed javadoc error.
...
Change-Id: I39bf0d2929eabb2895cdbe779ed19d471fcdd18d
2016-05-19 14:30:50 -07:00
Sho SHIMIZU
32f57e9943
Introduce abstract interface for set of discrete resources
...
Change-Id: Iddbed1a2dd0c6ce3d7288371a47a7b0aeba46803
2016-05-19 17:50:16 +00:00
HIGUCHI Yuta
163efb5060
Some improvements around EventuallyConsistentMapBuilder serializer handling.
...
- Allow directly passing KryoNamespace
- Add some registration id gap before ECMap's internal registration
- Some improvements for ease of registration issue investigation
-- Add friendly name to ECMap's internal KryoNamespace
-- Add backtrace information
Change-Id: I7c87b3aefbaea4b2ed12b38c3e0813e9d195c7a9
2016-05-19 16:38:52 +00:00
Madan Jampani
39b3b19799
Deprecate MastershipService::getDevicesOf method
...
Change-Id: I79ac1cbd7765229d39a5e2c614c98f17760f52a1
2016-05-19 16:23:43 +00:00
HIGUCHI Yuta
3a84b32b1f
Serializer related fixes
...
- DefaultGroupId is part of API
- KryoNamespace is thread-safe, use same instance.
Change-Id: I492f48c2ae9239edb5742c00231cd24b4d6db6a3
2016-05-19 15:48:52 +00:00
HIGUCHI Yuta
03666a3d08
Remove duplicate registrations.
...
- MapEvent.class, MapEvent.Type.class, Versioned.class part of API,
and all the existing caller was supplying API as base namespace.
- MeterId, MapUpdate part of API
- Default{Device, Port} part of API
- WallClockTimestamp is always added by ECMap
Change-Id: I654c892549e6dddbe5e1f86dbb41d1ca4e84611f
2016-05-19 15:23:17 +00:00
HIGUCHI Yuta
e72906522a
Deprecate KryoSerializer.
...
Change-Id: I2403b95c2d7a8af69dff55a0e40a35b223127c85
2016-05-19 15:19:38 +00:00
HIGUCHI Yuta
b2d0fd8380
KryoNamespace improvements
...
- Ignore duplicate Namespace registration
- Add friendly name for helping logging
- ONOS-4528
Change-Id: Id78f2a0f6e9715a7880875039825e294a68592a9
2016-05-19 15:18:23 +00:00
Jian Li
3276d1569a
Bump up osgi, jetty-websocket, math3, antlr4, common-io, influxdb-java
...
osgi-core: 4.3.1 -> 5.0.0
osgi-compendium: 4.3.1 -> 5.0.0
jetty-websocket: 8.1.18.v20150929 -> 8.1.19.v20160209
commons-math3: 3.2 -> 3.6.1
antlr4-runtime: 4.5 -> 4.5.3
commons-io: 2.2 -> 2.4
influxdb-java: 2.1 -> 2.2
Change-Id: Ie4ab08326327b64685cb6809d73927cab4278364
2016-05-18 17:17:43 -07:00
HIGUCHI Yuta
6972ae67e2
[ONOS-4513] Remove optical dependency from store/dist
...
- Ensure only generic port description will go into the DeviceStore
Change-Id: I7ba6c1680c2d5e3a5579337193c620c89f5f7f41
2016-05-18 21:07:15 +00:00
Sho SHIMIZU
b85000deee
Define a class representing a set of discrete resources
...
Change-Id: Iaafc5ca68ae3b1330e6c8b0b2476d835a42731b6
2016-05-18 20:47:43 +00:00
Sho SHIMIZU
3120d82b3c
Remove argument which is not necessarily passed
...
Change-Id: I87ded889afbb2be2693166de0eb3104a24c82084
2016-05-17 17:58:50 +00:00
Sho SHIMIZU
e9298da4ef
Remove unused method
...
Change-Id: Ie0f340b750bc8b2eb36d334446857d73129b713b
2016-05-17 17:58:30 +00:00
HIGUCHI Yuta
c0f5045e63
Remove some of unnecessary register calls.
...
Partial fix for ONOS-4528
- String, primitives, and it's boxed type is pre-registered.
https://github.com/EsotericSoftware/kryo#registration
- Ip4Address part of MISC ⊂ API
- DefaultPortStatistics, DeviceId part of API
Change-Id: Iabf4b497f3680245bd8897c41c573febe936ff3d
2016-05-16 17:55:20 +00:00
Jon Hall
1f13d64858
Fix NPE caused by pushing events about nodes no longer in the cluster
...
Change-Id: I7a1da3d7824b07b446194d651ef4945f1305bce3
2016-05-16 17:28:21 +00:00
Sho SHIMIZU
8fb4ad7433
Create default contstructor for serialization
...
Change-Id: Id21367b5fab38946f88dfee1a58d97eee0c0a0fc
2016-05-13 15:53:44 -07:00
Sho SHIMIZU
38bcfcfd35
Stop passing duplicate original continuous resource
...
Change-Id: I3608b1cd362cca5e3c0534b6dfb18a7204c42aef
2016-05-13 15:48:54 -07:00
Sho SHIMIZU
dffe3b808f
Change hasEnoughResource() to instance method from static method
...
Change-Id: Ib6de1bfc2b7e65677c3685ac3c2f51391204d9cf
2016-05-13 15:46:19 -07:00
Sho SHIMIZU
7ecf5ea64a
Rename class by replacing Store with SubStore
...
Change-Id: I3775d930f593eab983a8da8a4823bae8d45645cb
2016-05-13 15:28:59 -07:00
Sho SHIMIZU
efb75110ee
Move the resource allocation details into ContinuousResourceAllocation
...
Change-Id: If5b6a86c92f27cc7acf65e6e397f72afd3a4cb41
2016-05-13 15:24:34 -07:00