949 Commits

Author SHA1 Message Date
Thomas Vachuska
b1380af356 Merge "Follow javadoc convention" 2014-11-12 15:43:48 -08:00
Thomas Vachuska
98ebd1bb6d Merge "Unit tests for FlowId class." 2014-11-12 15:43:01 -08:00
Thomas Vachuska
c379fa54d4 Merge "Remove null check because of guarantee of non-null" 2014-11-12 15:42:26 -08:00
Madan Jampani
def2c65d9b Support for expiring Database entries
Registering database entry expiration tracker with DatabaseStateMachine

Support for publishing database state machine snapshot installation events.
Expiry tracker will listen to these events to bootstrap its local state.

Change-Id: I8bf22c8d7bab38624341350ccc083c5ca2fcb117
2014-11-12 15:37:10 -08:00
Ray Milkey
506455f368 Unit tests for FlowId class.
Change-Id: Ic281d5a17da9d8623473a0dfe2b29ba3cd07724f
2014-11-12 15:19:42 -08:00
Ray Milkey
02093df742 Move unit tests to be in the same package as the classes they are testing
Change-Id: I785d70753dd9e02083ac32ed78ecba5515aa9f71
2014-11-12 14:27:43 -08:00
Yuta HIGUCHI
71b9d09c84 ClusterMessagingProtocolClient: lazily bind to NodeId
fixes ONOS-185

Change-Id: Ibbe9624509964d7c3e7ac2c95c171e5cb20b0634
2014-11-12 13:36:36 -08:00
Sho SHIMIZU
aaaa9630a6 Remove null check because of guarantee of non-null
Change-Id: I447532cae2f8cf801a8560e20e74df94f2f5e5ec
2014-11-12 13:34:05 -08:00
Madan Jampani
9b37d578ef Using net.jodah.expiringmap.ExpiringMap for tracking ttl expiration of database entries.
Minor javadoc updates.
2014-11-12 11:53:24 -08:00
Sho SHIMIZU
bdaea83127 Follow javadoc convention
Change-Id: I8c6a99289225033a48b815053a7e5213fd1aeb9c
2014-11-12 11:29:38 -08:00
Yuta HIGUCHI
d6ffa6a5ef ClusterMessagingProtocol: fix error message
Change-Id: I6123bfcbe1c668864691c87caaba0874fc3188e2
2014-11-12 10:58:03 -08:00
Yuta HIGUCHI
9e11ac0c46 MastershipManager: lower log level
Change-Id: Iad51d87740ca08d3286be9bbb02b408cf8c4e97d
2014-11-12 10:40:59 -08:00
Yuta HIGUCHI
13a6f5a40b DatabaseManager: add FIXME for log path
Change-Id: I8daf762cd48bb4d53374fcdd40dc2f6747114303
2014-11-12 10:40:59 -08:00
Thomas Vachuska
2292567fc6 Fixing a defect where logical port numbers are listed as part of CLI arg completion.
Fixing a defect where devices imported with device id in uppercase are considered as different from those discovered in lowercase.
Fixed javadocs error from a rebase.

Change-Id: I76741022fb95d10a9a16fc9ce6d6443b166822ab
2014-11-12 02:35:01 -08:00
Madan Jampani
c65d8debb7 Checkstyle corrections. 2014-11-12 02:18:28 -08:00
Madan Jampani
c22123dec7 Removed dead code 2014-11-12 02:12:19 -08:00
Madan Jampani
7aad23394e Replace Collections.unmodifiableList with guava ImmutableList 2014-11-12 01:57:07 -08:00
Madan Jampani
bd1f026526 Registering new batch read/write request classes with kryo 2014-11-12 01:51:25 -08:00
Madan Jampani
932c6ba1c6 Fixed wrong import 2014-11-12 01:36:04 -08:00
Madan Jampani
3865cd9be5 Disabling expiring map until the osgi issue is understood. 2014-11-12 01:24:19 -08:00
Madan Jampani
44e6a540a5 More checkstyle fixes. 2014-11-12 01:06:51 -08:00
Madan Jampani
23af4fc065 Fixed checkstyle issues 2014-11-12 00:54:18 -08:00
Madan Jampani
12390c1203 Reworked DatabaseService API.
Initial implementation of LockManager.
2014-11-12 00:35:56 -08:00
Madan Jampani
c980085ce3 Merge branch 'master' of ssh://gerrit.onlab.us:29418/onos-next 2014-11-12 00:33:29 -08:00
Yuta HIGUCHI
f1ccee8d59 FlowRule : handle Future failure and timeouts.
Change-Id: Ie945b7ee936ae48ec3205592c309baebe8538ce0
2014-11-11 20:40:40 -08:00
Thomas Vachuska
dee20dd35a Merge "Filter paths not satisfying the specified constraints" 2014-11-11 19:17:33 -08:00
Yuta HIGUCHI
63323fd036 DeviceManager: background process checking mastership
Change-Id: I215a2f6b585077847821b9e36953c53e43fde6c3
2014-11-11 18:47:48 -08:00
Sho SHIMIZU
9909d177f5 Filter paths not satisfying the specified constraints
Change-Id: I683ba7cdfa3b792dda51a0bb45d7b000666c8c54
2014-11-11 18:34:45 -08:00
Thomas Vachuska
d8aea86250 Merge "Refactor: improve null safety by using empty list instead of null" 2014-11-11 18:29:24 -08:00
Thomas Vachuska
503aafc1bc Merge "Make constraint objects serializable by Kryo" 2014-11-11 18:25:12 -08:00
Sho SHIMIZU
c3df36be97 Refactor: improve null safety by using empty list instead of null
Change-Id: I443942ef82819e0c27df2c2acd45eb9106038992
2014-11-11 18:21:21 -08:00
Thomas Vachuska
2498c0b549 Merge "Fixing flow rule batches" 2014-11-11 17:16:51 -08:00
Thomas Vachuska
9b2da21522 Fixing flow rule batches
Problem should now be fixed. Hashing on enums last is a bad
idea because the enum value could be 0.

Change-Id: Ib29e90b393b5285be2807729b52e69b121340f09
2014-11-11 17:08:14 -08:00
Sho SHIMIZU
cd4bac85e4 Make constraint objects serializable by Kryo
Change-Id: I15e5a14b16fc1ab0416570fec176f18b713727a0
2014-11-11 17:07:25 -08:00
Thomas Vachuska
591cf2776b Merge "Refactor: move method to get annotated double value" 2014-11-11 16:51:50 -08:00
Sho SHIMIZU
97a64cd7a8 Refactor: move method to get annotated double value
- Move to AnnotationKeys to remove code duplication

Change-Id: Icf8b4322fc88e43ab531402d0e403a38d186f48e
2014-11-11 16:31:21 -08:00
Ray Milkey
930fc663c5 Add unit tests fir DefaultFlowEntry class
Also fixed a bug where the error DefaultFlowEntry was not setting the
timestamp.

Change-Id: Ic23e91926605ea7c166b244d8352b58347844a5f
2014-11-11 16:13:28 -08:00
Pavlin Radoslavov
190f8f9d5c Fix a typo in a comment.
Change-Id: Ieebe534475c704d423ace478ab05f398fd16897d
2014-11-11 15:56:14 -08:00
Thomas Vachuska
23aa49fb9e Merge "Use DeviceId instead of ElementId in WaypointConstraint for consistency" 2014-11-11 14:58:12 -08:00
Sho SHIMIZU
fe129db595 Aggregate definition of annotation key for latency into a single file
Change-Id: Id0b9089ec60e6f144ff42c40d0e1b19b280c4271
2014-11-11 14:24:51 -08:00
Sho SHIMIZU
fa2cd3ba65 Use DeviceId instead of ElementId in WaypointConstraint for consistency
- More consistent with ObstacleConstraint

Change-Id: I0988de74a4917ed91580f078c1dae653c030e5bc
2014-11-11 14:10:32 -08:00
Madan Jampani
32fe7805d7 Fixed javadoc comments for Lock. 2014-11-11 11:16:47 -08:00
Ray Milkey
1e20711a9c Unit tests for the DefaultFlowRule class
- added a method to the immutable class checker for
  immutable classes used as base classes
- fixed a typo in spelling of a constructor parameter
  in DefaultFlowRule

Change-Id: I8991c1eadcc990040bb97a02c1027b4708a4f58d
2014-11-11 11:11:05 -08:00
Madan Jampani
1e791e1228 Merge branch 'master' of ssh://gerrit.onlab.us:29418/onos-next 2014-11-11 10:49:43 -08:00
Madan Jampani
f73fb040a3 Added LockService interface. 2014-11-11 10:49:05 -08:00
Yuta HIGUCHI
f846844802 DatabaseClient: fixed to use copycat instance instead
Change-Id: If13ec051f362e0d3bc8311dc30e2c0f70e55c42e
2014-11-11 10:39:26 -08:00
Thomas Vachuska
21e03649dd Cleaning up Javadocs.
Change-Id: I41d075e3e6f6a26b340ce21a5baa8b238dc069ad
2014-11-11 10:23:08 -08:00
Yuta HIGUCHI
60731cb2b1 DatabaseService subsystem: add admin commands, etc.
Change-Id: I24124579f5e0b03ccbf35a03230ae5a7aff95f22
2014-11-11 09:20:20 -08:00
Yuta HIGUCHI
c53411edd0 DatabaseManager: removing Raft Member management code
Change-Id: Id7d773459e40e0ad51fa56026465b067f09b5b92
2014-11-11 09:20:20 -08:00
Yuta HIGUCHI
48ee992fc0 Adding async backups to MastershipStore
Change-Id: I36acece744b67a129a1073e08cd90690a91836ce
2014-11-11 09:20:19 -08:00