summaryrefslogtreecommitdiffstats
path: root/resource-assignment/provider/src/main
AgeCommit message (Collapse)AuthorFilesLines
2019-08-19CCSDK-1556-Immediately return this expression instead of assigning it to the ↵Thugutla sailakshmi1-3/+1
temporary variable "rd" immediately return the expression Issue-ID: CCSDK-1559 Change-Id: I6a6b76684b99783fd498e3fac88b0a3747186b1c Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
2019-08-15Code changes for OpenDaylight NeonTimoney, Dan (dt5972)2-0/+162
Updated code for OpenDaylight Neon, using conversion script in ccsdk/parent/tools. Change-Id: Ic91cff9ee50102b8af1a73f829908de82995b2ef Issue-ID: CCSDK-1389 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-08-05CCSDK-1559-return this expression instead of assigning it to a temporary ↵Thugutla Sailakshmi1-2/+4
variable return this expression instead of assigning it to a temporary variable Issue-ID: CCSDK-1559 Change-Id: I1b0ce8b89f51f2fd5b2da7d8f2401d2be5007615 Signed-off-by: Thugutla Sailakshmi <tsaila10@in.ibm.com>
2019-07-29CCSDK-1553 -remove exception from method bodyThugutla Sailakshmi1-3/+3
remove exception from method body Issue-ID: CCSDK-1553 Change-Id: I63216b592336dab8ea9ac426bee7c4f863354aae Signed-off-by: Thugutla Sailakshmi <tsaila10@in.ibm.com>
2019-05-28Revert "Fixed sonar fix in DataSourceWrap.java"Timoney, Dan (dt5972)1-12/+14
This reverts commit 6c1dee5b7d0e66338100c65efd51917d4f69998f. Sonar gave bad advice - this change causes connection to be closed on return to caller, which is useless. Change-Id: Id428c9058b5e33d72d58bbd951e6cdac2d2d151d Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-03-19RA: Fix Problems with resource query resultsStan Bonev1-1/+4
Change-Id: Ic0fa65bff95ab5bd8ab65b055dcf7ec378e99d91 Issue-ID: CCSDK-1170 Signed-off-by: Stan Bonev <sb5356@att.com>
2019-02-08RA: Add allocation items to query resultsStan Bonev4-60/+119
Change-Id: I35e51461ca1119c42e81fd9351c3b9cbd06da644 Issue-ID: CCSDK-1051 Signed-off-by: Stan Bonev <sb5356@att.com>
2019-01-30Merge "Sonar fix: ResourceJdbcDaoImpl.java"Dan Timoney1-4/+7
2019-01-21RA: Allow for partial resource releaseStan Bonev7-104/+188
Change-Id: Ie0cffbfaae6bb0ffcdb682f91ef3481fbdb35d7a Issue-ID: CCSDK-971 Signed-off-by: Stan Bonev <sb5356@att.com>
2019-01-10RA: Fix locking when there is expired lock in DBStan Bonev3-24/+25
Change-Id: I026bdea43c0386689c98902aac95be02e27f7704 Issue-ID: CCSDK-937 Signed-off-by: Stan Bonev <sb5356@att.com>
2019-01-09fixed sonar issues in ResourceAllocator.javaSandeep J1-3/+6
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Ifb2155d46aa1d1552c2ce1a9b0660b5b787e2f92 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-01-08Sonar fix: ResourceJdbcDaoImpl.javaArundathi Patil1-4/+7
Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-919 Change-Id: I2f23c4fd39b55393590fd97d6a95a0c5acbb2a6d Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2019-01-07Merge "Sonar fix: AllocationItemJdbcDaoImpl.java"Dan Timoney1-1/+2
2019-01-02Sonar fix: AllocationItemJdbcDaoImpl.javaArundathi Patil1-1/+2
Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-891 Change-Id: Iaea16ae96c919ad09eb7de31119a9bd14e2ef539 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2019-01-02Sonar Fix: ReleaseFunction.javaArundathi Patil1-1/+4
Fixed sonar issues/code smells across thsi file Issue-ID: CCSDK-888 Change-Id: I9748106bc5b09c342beb68df96860984722eb7d1 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-12-28Merge "Fixed sonar issues in AllocationFunction.java"Dan Timoney1-3/+6
2018-12-26Fixed sonar issues in AllocationFunction.javaezhil1-3/+6
Fixed bug and major issues Issue-ID: CCSDK-875 Change-Id: I425a25eab33bc3203fcd30fa2abe4216a6bd4bc8 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-12-26Fixed sonar fix in DataSourceWrap.javaezhil1-14/+12
Fixed major bug Issue-ID: CCSDK-838 Change-Id: Iee8ce39e54f15f33e9d682068d721fb56610d12c Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-12-19Merge "Fixed sonar issue in ResourceAllocator.java"Dan Timoney1-9/+10
2018-12-19Merge "Fixed soanr issue in LockHelperImpl.java"Dan Timoney1-2/+3
2018-12-18Fixed sonar issue in ResourceAllocator.javaezhil1-9/+10
Fixed major sonar issue Issue-ID: CCSDK-836 Change-Id: I8bc5229f24f7a6c5668f52fc1ab3b8e13387edb1 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-12-18Fixed soanr issue in LockHelperImpl.javaezhil1-2/+3
Fixed major sonar issues Issue-ID: CCSDK-835 Change-Id: I53375dd95cdcec36f1a97630c9fdc2d9f57d8613 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-12-18Fixed sonar issue in ResourceLockedException.javaezhil1-1/+3
Fixed major sonar issue Issue-ID: CCSDK-834 Change-Id: Ifeb52731e712d1459f3922008fcf65161bda0dd3 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-11-29Added fix for potential nullpointer exceptionChandan Ghosh1-1/+1
Added fix for potential nullpointerexception reported in sonar Issue-ID: CCSDK-767 Change-Id: Ifebf7a57f27cb0de83d3cd5e805e0547b28ee845 Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
2018-11-28RA: Release resources on specific targetStan Bonev8-101/+160
Change-Id: I695a916a3d527f61b9483bbb27977695fb1e094c Issue-ID: CCSDK-766 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-11-01RA: Enhance query for allocated resourcesStan Bonev10-54/+181
Change-Id: I97d724910d1caac8d7b16455296a41fef1669310 Issue-ID: CCSDK-644 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-10-30RA: Add timeout parameters to the lock APIStan Bonev3-6/+28
Change-Id: I5f8cd856d245829036ed563969fe75887e443467 Issue-ID: CCSDK-642 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-10-25RA: New criteria for querying allocated resourcesStan Bonev10-46/+126
Change-Id: Ia3a4b162ea4eca51ba7c500ad5daaa3865e26314 Issue-ID: CCSDK-620 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-09-14RA: Expose resource locking as DG nodeStan Bonev3-0/+99
Change-Id: Ic12c8c7c59baf29630dab442de64a66dc40bc02e Issue-ID: CCSDK-573 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-08-06RA: Add capability for Policy driven VlanTagssp694w5-38/+147
Change-Id: I5486a4989006c80b8a77ff2eb64fceed068c0c16 Issue-ID: CCSDK-438 Signed-off-by: Saurav Paira <sp694w@att.com>
2018-07-27RA: Add capability to assign new numbers for rangeStan Bonev6-4/+13
Change-Id: Ibb11219bfe0362055d388a4a10dab81e95979892 Issue-ID: CCSDK-408 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-07-18RA: Fix unnecessary updates to allocation itemssb53562-60/+113
Change-Id: Ia3569ea5c7afe00624bb5d2368253cc3e5d834f5 Issue-ID: CCSDK-387 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-06-26Support for defining multiple ranges in RANGE_RULEsb53568-187/+301
Change-Id: I5a5a1c61629a684dfc016f14000adbcb1e6dc9a1 Issue-ID: CCSDK-315 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-06-06[CCSDK-245] RA: Refactor RA to make it genericsb535678-4263/+1172
Resource allocator is cleaned up and refactored so it does not contain any service specific logic. Issue-ID: CCSDK-245 Change-Id: Ib948eb813020fbe7dc779148e412de1e074b300b Signed-off-by: sb5356 <sb5356@att.com>
2018-04-12Used secure random number generationprakash.e1-1/+3
Issue-ID: CCSDK-184 Change-Id: I00719fb778a6ab7dc964bb1e4710a9014ba51fcd Signed-off-by: prakash.e <prakash.e@huawei.com>
2017-10-17Fix resource-assignment blueprintDan Timoney1-2/+14
Some entries in resource-assignment blueprint that had been copied from spring blueprint needed to be changed slightly due to differences between Spring and Aries. Change-Id: I196f88f2036f30673bee0f3d23773616f6c1ba1b Issue-ID: CCSDK-120 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-10-13Fix resource-assignment blueprintsDan Timoney2-21/+21
resource-assignment blueprint files contained references to openecomp that should be changed to onap. Change-Id: I1eb27ba8c805e65f67f167df8bf75e609e9b5f9f Issue-ID: CCSDK-120 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-09-28Added Blueprint configurationRich Tabedzki3-314/+134
Changes made: 1. Removed Spring DM configuration for resource-assignment 2. Added blueprint configuration for resource-assignment Change-Id: Ib084b863a6a5ee1283ba3dfb7b61d61619a27c38 Issue-ID: CCSDK-102 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
2017-09-21Move string literals to left hand sidesurya-huawei1-6/+6
Moving string literals to left-hand side of equals()/equalsIgnore() *This is done to prevent null pointer exception from being raised Issue-Id: CCSDK-87 Change-Id: Ibe9deee4fd48b3037be8708a0e3869d741c9173b Signed-off-by: surya-huawei <a.u.surya@huawei.com>
2017-09-20Fix Sonar Issue in sli/adaptors modulesurya-huawei1-8/+10
One blocker issue *Checking for a null dereferencing This is to avoid NullPointerException Issue-Id: CCSDK-87 Change-Id: Ie2192636e3ad8dfa9643cac61b3086c3cd33f126 Signed-off-by: surya-huawei <a.u.surya@huawei.com>
2017-09-19Fix Sonar Issuesurya-huawei1-4/+6
One blocker issue in sli/adapters module *check for null dereferencing Issue-Id: CCSDK-87 Change-Id: I6c2b308bed95069089770cbec7ef728e2a8cc030 Signed-off-by: surya-huawei <a.u.surya@huawei.com>
2017-09-08Fix few Critical sonar issuesramu.n1-2/+35
Fix few Critical sonar issues in CCSDK SLI Adaptors https://sonar.onap.org/component_issues?id=org.onap.ccsdk.sli.adaptors%3Accsdk-sli-adaptors#resolved=false|severities=CRITICAL Change-Id: Id694401c71e9a5ae2508333f03eab8e87008ccd0 Issue-Id: CCSDK-67 Signed-off-by: Ramu N <ramu.n@huawei.com>
2017-09-06Fix resource-assignment dependenciesDan Timoney1-3/+3
Resource-assignment was not loading due to unresolved dependencies. This turned out to be due to a few issues, addressed by this change: - commons-lang had to be added as a bundle in features.xml - package name for DbLibService in spring config was wrong, preventing spring from initializing properly - DbLibService's package (org.onap.ccsdk.sli.core.dblib) was not detected properly by felix maven plugin and was missing from Import-Package in MANIFEST. Resolved by explicitly adding that package in felix plugin config in provider pom.xml Change-Id: I6ebb82ebae0e96b4ab9592e29f6a7a1d2276aa69 Issue-ID: CCSDK-79 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-08-17Update sli-adaptor/resource-assignment pack. namesMarcus G K Williams126-602/+602
Update package names from org.openecomp.sdnc.adaptors.* -> onap.ccsdk.sli.adaptors.* Update groupIds from org.openecomp.sdnc.adaptors -> onap.ccsdk.sli.adaptors Issue-Id: CCSDK-19 Change-Id: I71c794c46bad7f7f6064c4e0538890c9f76d5f16 Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
2017-08-15Fix license headersDan Timoney126-252/+252
Licence headers were accidentally updated incorrectly by previous update. This commit restores the license headers for seed code to the wording from the original seed code Change-Id: If4623dd02a37660a7d7e746363dd83cf9cdb718a Issue-ID: CCSDK-31 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-08-02Convert tabs to spacesMarcus G K Williams125-5555/+5555
Per Java Code Style Guide: https://wiki.onap.org/display/DW/Java+code+style Converting tabs to 4 spaces. Issue-Id: SDNC-25 Change-Id: I99ce6c244df72f805b52d0d66403d8b76d9929ae Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
2017-08-01[CCSDK-6] Populate seed codeDan Timoney126-0/+9680
Add seed code for sli/adaptors repository Update code to use org.onap.ccsdk.sli.core Change-Id: I477c7a24f2cc1fed8fb0975fe9f33733411c27f9 Signed-off-by: Dan Timoney <dtimoney@att.com>