3083 Commits

Author SHA1 Message Date
Ray Milkey
cc6310fc9c Unit test for default partition class
Also added javadocs to DefaultPartition constructors

Change-Id: I4ba37800d61b82fabc60fd5a226850d3a3536913
2016-02-16 14:43:27 -08:00
Madan Jampani
fc98177d07 Updates to ConsistentMap and LeaderElector state machines
Change-Id: I7734b253a56fef7300a8a094a3cfc8c1b45c2453
2016-02-16 21:13:49 +00:00
Sho SHIMIZU
171a9380a2 Refactor: extract the same procedures
Change-Id: If28960f4e9fddc3276091fd04e2b624e6168dc5c
2016-02-16 17:36:31 +00:00
Madan Jampani
7e55c66aca StorageManager with associated new primitive builders
Change-Id: Ic5d7048cda5ea5e7e86df2d2390c16eea850cd83
2016-02-15 21:18:21 -08:00
Madan Jampani
2f9cc71264 Copycat transport enhancements
Change-Id: I50e9eb0f419b2aa10deff6d54f58649688788faa
2016-02-16 04:17:55 +00:00
Madan Jampani
39fff107c4 Method name refactor in DistributedPrimitive + Builder for AsyncLeaderElector
Change-Id: I59be6e66665c0b12d02106bd5c722e9fa38dd7a1
2016-02-15 03:49:12 +00:00
Sho SHIMIZU
37a038b4dd Update Javadoc
Change-Id: Ieefd3650c1f11875d22602174a7bdf9537acf0d6
2016-02-12 18:28:41 -08:00
Brian Stanke
9bf8d7c9b7 ONOS-3655 - Adding username and password support into the device key subsystem.
Change-Id: I196984479126ae3776093a0bded4b3c820a3eab8
2016-02-12 20:06:46 +00:00
Sho SHIMIZU
900392463c Reduce the nubmer of access to consistent map for performance
Change-Id: Ia57edfca4e0b5f264e181ed5bbaef74ebb46724a
2016-02-12 01:42:27 +00:00
Madan Jampani
10666e5a31 Fix registration order in kryo
Change-Id: I051124ecb7bb55276c253af18f0c47df4a68c875
2016-02-12 01:06:45 +00:00
Sho SHIMIZU
0e1a47635f Add precondition check to guarantee non-null
Change-Id: I2691fb980ee57befce14a870a2a9f7317e06ea18
2016-02-11 23:00:14 +00:00
Jonathan Hart
1d00639523 Move multicast CLI commands into the core with the core mcast system.
Change-Id: If442803cf530cfeb949e7fbce34f74db082f30c1
2016-02-11 22:54:20 +00:00
Sho SHIMIZU
f17ae287a4 Refactor: Move logic for continuous resource to another method
Change-Id: I04136c933398891bf347f14874e93825ce3f2e33
2016-02-11 21:44:35 +00:00
Sho SHIMIZU
3163a64dbf Remove an unnecessary blank line
Change-Id: Ia17602bd8c1a0507aeca26ac212e6be322f61a5d
2016-02-11 21:41:47 +00:00
Sho SHIMIZU
a6a6fd3886 Fast path in the resource store for discrete resource
Change-Id: I179376f8a6b43b1f2867212b2456c17b9b5602f5
2016-02-11 21:16:38 +00:00
Sho SHIMIZU
b08d58635c Refactor: Rename Resource#isTypeOf() to isSubTypeOf()
Change-Id: I83eed95d53ecc06cd14695cae22bd4e71646040a
2016-02-11 12:46:25 -08:00
Sho SHIMIZU
446fdf09e9 Cosmetics: Rearrange the method definitino order
Change-Id: I978ea1cdf04ad0f4984de35a509b2020378d1c2c
2016-02-11 12:33:05 -08:00
Jonathan Hart
56151262f8 Roll back resource API changes that triggered a bug in the Java compiler
Change-Id: I9e6891fe156148692e59476cb2bec6defb1f9a70
2016-02-11 20:18:21 +00:00
Sho SHIMIZU
6f74730e84 Improve the performance of ResourceManager#getAvailableResources()
By removing an extra map access in ConsistentResourceStore#isAvailable()

This patch mitigates the issue of ONOS-3869

Change-Id: Ief231f5532c34719c150855afe0ea69fc6b478f1
2016-02-11 19:34:25 +00:00
Madan Jampani
e14a09c5dc Implementation for StorageAdmin and PartitionAdmin APIs
Change-Id: I48cbfae6f410425294196884cdb2ce4705fa2c3d
2016-02-11 19:15:31 +00:00
Sho SHIMIZU
fc64ffe4d5 Refactor: change method parameter type of ResourceStore#release()
Use ResourceAllocation as parameter of ResourceStore#release()

Change-Id: I1833b9b23985cd42820093633591fa21daf2f98e
2016-02-11 17:47:32 +00:00
Madan Jampani
538be7420f Refactored primitive builders to consolidate methods into the base DistributedPrimitiveBuilder
Change-Id: I9a24117b41d1feeb5cf460c6adfa484aabcbb8c1
2016-02-11 06:00:52 +00:00
Aaron Kruglikov
e241189e4b Fix for multiple metrics issues
Change-Id: Ie534d5130278df504eda99e30df1eb2c3e7a43da
2016-02-11 05:09:54 +00:00
Sho SHIMIZU
84515f36cc Use lower bound wildcard for API to be more flexible
Change-Id: Ia6bcec5afb2e872b55bae4bbd9139ad35ce01284
2016-02-11 02:38:20 +00:00
Ray Milkey
15551272ca Fix NPE when setting strict if there are no links present
Change-Id: Ic43d8807d5d2a86a3f716214c7fcf5a00f1e9477
2016-02-11 02:33:46 +00:00
Thomas Vachuska
e3ea9a4c17 Fixing javadocs
Change-Id: I8e7f6451876c6733bf33667face30b32e5378c99
2016-02-11 01:56:41 +00:00
Sho SHIMIZU
3547d5b156 Remove obsolete ToDo comment
Change-Id: I6343d0dc528eef5e2446eea6c9f370dcaf6ed7e9
2016-02-11 01:25:41 +00:00
Charles Chan
cb13d12979 Expose cookie information in packet context
Change-Id: I7f2cb331a19aeca1a578aade6488a6480d15496c
2016-02-11 01:14:49 +00:00
Jian Li
230ce4fdba Fix incorrect description of getPreviousStatistic method
Change-Id: I803ca5ee86e4a605c06916687d55a37059fe2ad2
2016-02-10 21:51:00 +00:00
Madan Jampani
74da78b62b AsyncConsistentMap methods for supporting transactional updates
Change-Id: Iaeb0aa0abf9f52d514a2c040598599a5b8a55ee8
2016-02-10 21:48:12 +00:00
Aaron Kruglikov
1110b2cee6 Setting up monitoring of cluster communcation service
Change-Id: I771b23db6920b26b592abc5d5156e9d77cde4f00
2016-02-10 21:47:48 +00:00
Brian Stanke
ca93d9aaef ONOS-3655 - This Device key subsystem update adds the implementation of the
DeviceKeyManager and the distributed device key store.

Change-Id: I32544040590b31a59e20f3375fca453a117f940c
2016-02-10 21:45:57 +00:00
Sho SHIMIZU
7b32697856 Simplify method names by removing redundancy
Change-Id: I36df7e23792f7004dfae823a8700f6c887ea1efd
2016-02-10 21:36:33 +00:00
Sho SHIMIZU
69420fe49c Preserve the original order when registering/unregistering
Change-Id: Id112f7027454132f00ca45b4254aa3f5c2e7b094
2016-02-10 20:07:40 +00:00
Sho SHIMIZU
72f81b1830 Use ResourceId when unregistering resources instead of Resource
Change-Id: Ib3d1c611ad9eb4491693ea10ee50ea0123f20ee2
2016-02-10 20:06:50 +00:00
Sho SHIMIZU
82bfe99aa8 Fix comment
Change-Id: I69fdec826b1578777020759f5f4144d4057db1d9
2016-02-10 18:25:45 +00:00
Madan Jampani
9254501814 Fast path in transaction manager for single update scenarios
Change-Id: Ia0ad61aabf5c35fbfadc5b127662edb497bcc9c0
2016-02-10 07:55:53 +00:00
Sho SHIMIZU
49fff75f7d Avoid creating an instance when calling resource()
Change-Id: I0d831cc51199bce0e0dc2b7bb1b5bc2df9fbf90b
2016-02-10 03:00:17 +00:00
Sho SHIMIZU
9c02f3af02 Hide underlying components from public use
- Remove components() method from Resource
- Add isTypeOf() method to Resource

Change-Id: I390eb6057fc7e2c3e93eb2a18d161f661ad6c180
2016-02-10 02:59:33 +00:00
Jian Li
8bac5766c9 Not allow to assign values to appId and cookie at the same time
With current implementation, flow id can be either assigned by
fromApp method or withCookie method. This misleads the end-user
to properly instantiate a new flow rule. This commit restricts the
flow id assignment which does not allow to assign cookie and
appId at the same time.

Change-Id: I8d7e27517c7ef636d427c3d8b8f9cc267fcb0702
2016-02-10 01:58:43 +00:00
Sho SHIMIZU
2fbc33c1bf Fix the compilation error introduced by be394c8
Change-Id: I9104d91541f0f2fcd8476264772a920b59626003
2016-02-09 14:04:30 -08:00
Naoki Shiota
be394c82ba bug fix: ResourceManager#unregisterResources only unregisters given resources and didn't unregister descendants (ONOS-3827).
Change-Id: I48956234553053e2a54834129b5f10357ca116ea
2016-02-09 21:41:51 +00:00
Rimon Ashkenazy
8ebfff047b Add OTN device and ports
Change-Id: I18f3376d1466077e95d7324a27a660302f0123b3
2016-02-09 20:36:40 +00:00
Sho SHIMIZU
dd3750cf01 Use ResourceId or DiscreteResourceId when specifying a resource
Change-Id: I4e29558ec649510c8d08bb5e5f8ed10c189252e5
2016-02-09 20:32:50 +00:00
Jonathan Hart
07eb041136 Implemented REST API for multicast RIB.
Change-Id: I5de6fe0aae412083597113e355ba0e8c984be5f1
2016-02-09 18:02:35 +00:00
Shashikanth VH
387a1cad9d null dereference fix.
Change-Id: I98b6226fea3f457fef11c65c092453ffa881b59e
2016-02-09 20:35:35 +05:30
Andrea Campanella
fe1d473f97 Dropping log level of device not having driver for default provider to DEBUG
Change-Id: I79d14ec87ffe24f71407e10f9beb5438c41ac54b
2016-02-09 07:41:18 +00:00
Simon Hunt
3da1a1827d Fix incorrect method prerequisite checks in NetworkConfigManager.
Change-Id: I460190952a4493544cf94dd0e2cec70ad1292ecb
2016-02-09 01:20:37 +00:00
Andrea Campanella
b8d3f3dfcb Adding device information to log of default driver providers
Change-Id: Ie25f6aee76e9ef72052570177dcf2f4a6da8edf4
2016-02-08 15:31:09 -08:00
Madan Jampani
cadd70bd6e Refactor transaction support in preparation for migration to latest APIs
- Added a explicit transaction id type
 - cli command now just returns the identifiers of in-progress transactions
 - Removed redriveTransactions until a better alternative is provided
 - Removed DatabaseUpdate and replaced its usage with MapUpdate

Change-Id: Ic4a14967072068834510cd8459fd2a6790e456ef
2016-02-08 23:29:02 +00:00