3094 Commits

Author SHA1 Message Date
Jian Li
c67ca3cf7a Make results of application codec and swagger doc desc consistent
Application codec returns permissions, requiredApps and features
in string format. However, based on swagger doc, the codec is
supposed to return array. This commit fixes the type inconsistent
issue raised in application rest api.

Change-Id: If47338b287518a981c98ff89ca543802579c7610
2016-01-21 23:21:54 +00:00
Madan Jampani
32347e0351 pom clean up and Remove unsed code
Change-Id: Ifdd44b91c92a2cb469e6d204d1e91e6f8e0a9f9e
2016-01-21 14:05:58 -08:00
Madan Jampani
f4c8850e37 Refactor change: Moved all distributed primitive implementation classes into onos-core-primitives bundle
Change-Id: Icd5dbd4133cb2f21bd403bcd598e6012813e6bfd
2016-01-21 12:50:27 -08:00
Madan Jampani
ad3c5269ef Using provider pattern for cluster metadata.
Change-Id: I5a572b3df9149be959dde9868a9c594dec26a3e0
2016-01-20 23:01:29 +00:00
HIGUCHI Yuta
3cb7ff9e35 Add helper to build DefaultAnnotations based on existing Annotations
Change-Id: Ibbc598f90888aa60dc32ed84a79bda4d4cc615ff
2016-01-20 22:27:40 +00:00
Jian Li
115991625f Bump up Karaf to 3.0.5
This commit bumps up karaf to 3.0.5.
This commit also bumps up the jetty to 8.1.18.v20150929.

Change-Id: I52849c38b535205db8c4e00e799b332f63b7e3f2
2016-01-20 22:11:10 +00:00
Sho SHIMIZU
2c0ae12dd6 Always use ImmutableList.of() when returning an empty list
Change-Id: I54abee905abacea32f5c49ead2e98a2caf116fbe
2016-01-20 21:28:13 +00:00
Jian Li
01b0f595fc [ONOS-3634] Provide default category name and make url nullable
Change-Id: Id6d0404cc1e46cdd4f54f2ff64ca69313bec9281
2016-01-20 21:17:38 +00:00
Jian Li
6282c809b8 [ONOS-3634] Add REST API for extended application properties
Change-Id: I61f91075ac3bd527d0e10436e14ed496f55ef593
2016-01-20 11:52:48 -08:00
Jian Li
8bcb4f23ce [ONOS-3634] Remove readme tag from app.xml
Change-Id: I536f54f74586a0bb5c671564f71b44a0a871d5f6
2016-01-20 18:55:28 +00:00
Sho SHIMIZU
d1a33b6b77 Rename instance field
Change-Id: I00ecd3fe74806dc800af1f48153b18941755a0d2
2016-01-19 18:42:01 -08:00
Simon Hunt
051e9faa1b ONOS-3780: Table model now handles two column sorts.
Change-Id: I8899d56fdca2084e4a7ca0392c21d14f1bc6ea62
2016-01-20 01:30:24 +00:00
Jian Li
c35415ddcd [ONOS-3634] Enhance app to have a category, icon, URL and readme
This commmit enhances application to have category, icon, URL and
readme. The web GUI and CLI will be implemented in separate commits

Change-Id: Ib02716d7118cc617b24f196f2213ea1fe99a34be
2016-01-20 00:30:35 +00:00
Hyunsun Moon
52b933632a Added a new method to create a port
Change-Id: I78db8cf5e1ab66d1497a8f9b706eef2202d50071
2016-01-20 00:28:52 +00:00
Sho SHIMIZU
70b88d8670 Tighten precontinoal checks
Change-Id: If2bca48023d26655398e35f7e917bb617ce57963
2016-01-19 23:06:20 +00:00
Sho SHIMIZU
c88b85e944 Rearrange the method declaration order
Change-Id: I00e09be8d1f743a846d96c791cfcf40b104f5cc3
2016-01-19 13:51:51 -08:00
Sho SHIMIZU
67f92819e3 Remove obsolete comments
Change-Id: I62fa18795f2f75a55609157c09866989ad9f22da
2016-01-19 13:51:51 -08:00
Sho SHIMIZU
8f2b777406 Refactor: Remove try-catch by using CompletableFuture#exceptionally()
Change-Id: I728fbcfe8fc4a81da2b08e6dddc1fa63add694a3
2016-01-19 21:39:08 +00:00
Sho SHIMIZU
489aa9ba23 Refactor: Use CompletableFuture instead of Executor#execute()
Change-Id: I97a155498e01c43d8adc83a55dbc2022732c862d
2016-01-19 21:04:37 +00:00
Sho SHIMIZU
96b39e2988 Remove a method checking if non-null by using Optional
Change-Id: Iec8d9016e09c6637574bf5b6f1aab5d8bfbec07a
2016-01-19 11:48:57 -08:00
Madan Jampani
a090a118ef Added DistributedPrimitive interface
Added AsyncDistributedSet that provides async set operations

Change-Id: I83494075a7973694ea6b7445ff4799b7a1a50641
2016-01-19 19:37:37 +00:00
Sho SHIMIZU
27e1b923ac Make return value null-safe
Change-Id: Ia56fac56ef8c036328ef6804386c0f86bd157f8f
2016-01-19 19:31:34 +00:00
Madan Jampani
8474fdd384 Fix how default partitions are created
Change-Id: Icb4881fb87b982d88502a0201175dbc2bc209c9c
2016-01-19 18:31:00 +00:00
Madan Jampani
f6c6a3015a Fix incorrect input verification check in ClusterMetadata
Change-Id: I921ae8a8ba8c35bd91f27d2d1d985096f023c211
2016-01-18 14:33:45 -08:00
Sho SHIMIZU
69305abc0d Remove blank lines
Change-Id: I2d5b7ef13ce3820b2ba296e7112f10165275d9ba
2016-01-15 18:31:51 -08:00
Sho SHIMIZU
9fa6b8b23c Improve null safety by returning an empty list
Change-Id: I88e673b1ed0b9edfe86c9b1b4004ad9b95271d29
2016-01-16 01:20:20 +00:00
Sho SHIMIZU
9aee1f56ac Refactor: Consolidate multiple map() invocations to single invocation
Change-Id: I53bd6a80f34469eb23874f91dd52a895e0f5a2dc
2016-01-16 01:19:45 +00:00
Jian Li
8baf44783b [ONOS-3722] Augment TableModel to support annotations
Change-Id: Ie90fa6b26887ddd5afb03eb116304c16f10396ff
2016-01-16 00:40:14 +00:00
Andrea Campanella
d8d92db11d ONOS-3754 Create driver/behavior for Ciena waveserver
Change-Id: I2e8741f0ad858eb712f7fe4f4a5fdf5e146aefd6
2016-01-15 23:58:53 +00:00
Andrea Campanella
b75b488fdb ONOS-3760 Injection of mfg/hw/sw/serial in BasicDeviceConfig
Change-Id: I7f2269039e0cdabbee85cdad178c4ca27cdc2dce
2016-01-15 23:58:21 +00:00
Sho SHIMIZU
05abf1388e Refactor: Generate CompletableFuture first, then process it
Change-Id: I1ef5961a863b855ce2687fcbacd2159c77cb64ce
2016-01-15 22:30:01 +00:00
Jian Li
69f6663f3a [WIP][ONOS-3722] Augment TableModel with Annotations Mechanism
Change-Id: I815ce0b0fde254dd730153c34905d9454f019d9a
2016-01-15 22:16:08 +00:00
Sho SHIMIZU
b0c4a0796e Refactor: Decompose creating CompletableFuture and process intent
Change-Id: I09de2965b7fbf593c1baf3b2e95ab15437f9a092
2016-01-15 22:14:36 +00:00
Sho SHIMIZU
b814773209 Restrict the visibility of methods only accessed from the same package
Change-Id: Ia735baeb6035df597773dfbe260831e97656a9fa
2016-01-15 22:14:02 +00:00
Sho SHIMIZU
c95ec3e0dc Refactor: Inline method
Change-Id: Iafa70a7a728a3e701a2f62c4b9c015504bdcfabd
2016-01-15 21:02:01 +00:00
Sho SHIMIZU
594fb2ad77 Refactor: Extract two methods from submitIntentData()
Change-Id: I2c75039bed836ec3695bee1c8a7664bea8779d9e
2016-01-15 21:01:40 +00:00
Sho SHIMIZU
26cc180736 Restrict class visibility
Change-Id: I8dfc35cd811045b698c8e05c2dff71b6fff38acc
2016-01-15 21:01:15 +00:00
Sho SHIMIZU
e0981724df Refactor: Use Tools.allOf() to wait until all tasks become completed
Change-Id: I2f032e4d8dd525c4dd40d7ad954dca8c5d33b159
2016-01-15 20:12:57 +00:00
Madan Jampani
ab7e7cd285 First round of ClusterMetadata improvements:
Introduced a PartitionId type for identifying partitions
    Introduced a admin service for making metadata updates
    Update cluster.json format to specify all partitions (including p0) and changed partitionId to be an int.

Change-Id: Ia0617f1ed0ce886680dcee4f5396a4bbdfa225da
2016-01-15 19:32:09 +00:00
Sho SHIMIZU
d755893862 Refactor: Inline invocations and remove methods
Change-Id: I004cab89f9d65cf9acc6721ef5865a8cb66dc61d
2016-01-15 19:21:56 +00:00
Sho SHIMIZU
38a4798ea0 Refactor: Reduce number of invocations of Stream#collect()
Change-Id: Idde16505cbe0a1e56e2b651678a0169df0d06bf7
2016-01-15 19:07:57 +00:00
Naoki Shiota
4ce97ffbf9 Fixed a bug that ComponentConfigManager#preSet never affect OSGi configuration.
Change-Id: If94c841142ce4dc5e430f7d639f2c2d22039e90a
2016-01-15 19:07:08 +00:00
Brian Stanke
7dee11ea4c ONOS-1770 DefaultDistributedSet.toArray(T[]) does not support array size different than set size.
Change-Id: Ibf3e32ac466e1142a17457b52e091897326d8ba8
2016-01-15 18:46:17 +00:00
Sho SHIMIZU
98c0a39e92 Apply more functional style
Change-Id: Ief6349fdb84e96d0cf2c432e3a6905fd403a87f3
2016-01-14 18:40:53 -08:00
Marc De Leenheer
118f671b73 Power config API (ONOS-2866).
Change-Id: I50a405d63f95fa8024585c71885ac79dca7e7c78
2016-01-14 22:47:37 +00:00
Sho SHIMIZU
8fa670a8f9 Refactor: Rename ResourcePath to Resource for a better name
Also the followings
- Rename variables from path to resource
- Update Javadoc

Change-Id: I07da7e7d13882f2134a3687c66ed91a9de5b0849
2016-01-14 20:54:42 +00:00
Sho SHIMIZU
ab541a5dbd Refactor: Use Stream API instead of explicit loop
Change-Id: I6ed6aba185a0ce3680fe0612de801a466a848d78
2016-01-14 20:38:45 +00:00
Sho SHIMIZU
5fb1ea31f3 Use the word "id" not "key" to get the names matched
Change-Id: Ie55b62d559bccc4a4cf3a8aad1876b5ae2c22f7d
2016-01-14 20:35:53 +00:00
Sho SHIMIZU
ad8ab27309 Refactor: Use CompletableFuture instead of Future
Change-Id: I7bf71a31a6c870c59783caa638c47bc040f655c8
2016-01-14 19:06:01 +00:00
Sho SHIMIZU
38f561c1df Fix bug that a list is mistakenly added as an element of another list
Change-Id: I1e4847b572e55bbf85f99ed8ef8df96da1f7bd7f
2016-01-14 09:07:47 -08:00