summaryrefslogtreecommitdiffstats
path: root/aai-core/src/main
AgeCommit message (Collapse)AuthorFilesLines
2019-01-14Remove the classes that were originally singletonKajur, Harish (vk250x)2-151/+0
GremlinGroovy shell singleton and groovy builder singleton were changed from being singleton because we found that the classes that were dynamically loaded were never cleaned up by the garbage collector which caused a huge increase in the memory consumption for the traversal microservice which uses this The conversions from singleton was already committed but the singleton was not cleaned up earlier Issue-ID: AAI-1811 Change-Id: Ib74d85be4c1053e7b482fa5b89b562b2352ff803 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-01-13Sync up the changes for v15Kajur, Harish (vk250x)26-474/+1673
Issue-ID: AAI-1811 Change-Id: I307731ee35d8a644ae995c4b372345a7ebeca0a1 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com> Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
2019-01-02Merge "Update DBSerializer for relationships retrieving"James Forsyth1-28/+24
2018-12-28Update DBSerializer for relationships retrievingHarish Venkata Kajur1-28/+24
Enhance the code for how the db serializer works when it comes to dealing with the relationships For a particular vertex, when retrieving its relationship vertexes it doesn't need to get all the properties of the relationship vertex as it only cares about the aai-uri and named properties so only partially retrieving those props that is needed for relationships Issue-ID: AAI-1987 Change-Id: I1440c561d187ff180a599a3f52ac5c8715d5c8e3 Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
2018-12-17Update aai-core use new schema ingest libraryKajur, Harish (vk250x)2-13/+45
Issue-ID: AAI-2003 Change-Id: I9234b6b594e559b58e445a97b78a4658190e6527 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-12-05Improve the performance of resoures microservice1.4.0Kajur, Harish (vk250x)10-2094/+2481
Currently the findSubGraph is being invoked and causing additional calls to the database by backing a tree backed vertex and slowing the performance of GET ALLs Original intention of both of them was to pre fetch depth 0, 1, and 2 at once so we don't have to get them at each depth but since that was not done right there is extra amount of time After the aai-uri migration to ensure all vertexes have the aai-uri and also to make sure they are unique across graph we don't need to traverse a vertex to find the parents to build aai-uri it was done previously when there was no aai-uri to derive the uri of a given vertex and its not necessary anymore so there would be performance improvements of vserver when there are a lot of relationships Currently the edge labels are retrieved for each vertex a and b and the performance of the GET with relationships will be propotional to the GET request and how many cousin edges it has and the more cousin edges there are the more slower the response time will be as for each cousin vertex its trying to get the edge in between so the code is modified to only go to the database for the edge label when there are multiple edge labels (cousin edges) between a and b If there are only one edge label and its a cousin vertex then we can use the edge rule to be able to figure out the edge label Improve PUT on the cloud region by modifying the getEdgesBetween method which currently was retrieving all the parent child edges between a and b and then only using the first edge The traversal itself was too complicated and was costly in terms of database retrieval and calls and optimized the code to utilize the edge information so we can modify the query to db at runtime based on the information provided so when a 10000 vservers under a tenant adding a new vserver under tenant would be slow because of the old query performance as it was taking some time there but with this optimization, its only spending at most a millisecond or 2 in that method Also noticed that when a PUT operation takes place, the method calls the related objects to create a dmaap event which was in turn calling the findParents and actually utilizing the parents to create the dmaap event and would spend quite a lot of time here because of the expensive call of the findParents in this case we need those vertexes So optimized the code so based on a given vertex, we have the aai-uri and the newly added metadata uriTemplate to break the aai-uri into its parent aai-uri and grand parent aai-uri and so forth With this breakdown, we can get the list of aai-uris which are parents, grandparents and then use the aai-uri to look them up which is O(1) lookup time due to the fact they are unique indexes The time it takes when doing a traversal to find the parents is propotional to the number of edges but this will be optimistic Another area which was improved was the json path execution of the edge rules so when the edge rules get loaded into memory it creates a document object, it utilizes the jsonpath to query information about the edge rules but the only thing here is each time it gets called the query gets invoked and uses jsonpath to retrieve the edge rules when we can cached them based on the filter so that the user executed and if the filter is the same as before, the expected edge rules will return the same Too much time was spent making the query and retrieving and building the edgerules So a cache is a perfect way to optimize this part Issue-ID: AAI-1987 Change-Id: Ieb8237de3fd31136ceac14bf4a8216a7ab3b7179 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-11-01Fix bug on create created ts and modified tsKajur, Harish (vk250x)1-3/+5
where on create the values should be the same but it ends up being different sometimes Issue-ID: AAI-1832 Change-Id: Ia8cfb75a5812e6b59f8000a820cf3605ab17eb2b Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-11-01Add capability to record timestampKajur, Harish (vk250x)3-1/+171
Issue-ID: AAI-1831 Change-Id: Ifcadf1caa0f7764c759997f10f3f789b1a702872 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-11-01Replace platform specific line seperators SystemKajur, Harish (vk250x)3-47/+52
Issue-ID: AAI-1463 Change-Id: Ibdd3803dd825342d54dfa1b008f1a8c2d78d6198 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-10-13fix xsd generation when obj crosses oxm filesLaMont, William (wl2432)7-73/+415
Issue-ID: AAI-1654 Change-Id: I118b0d94099c7f986303fc9dd9e5dae5144b4bbb Signed-off-by: LaMont, William (wl2432) <wl2432@us.att.com>
2018-09-14Merge "minor fixes in GremlinQueryBuilder.java"James Forsyth1-711/+709
2018-09-14minor fixes in GremlinQueryBuilder.javaasgar1-711/+709
Change-Id: Ifa94277e74486bc2086ce5cad5077d59cdbf0f29 Issue-ID: AAI-1595 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-09-12fixes in AAIResponseMessageData.javaasgar1-28/+30
Change-Id: I52a88526180acde91c6d9818d446e22ce175244d Issue-ID: AAI-1569 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-09-11Merge "sonar fixes for AutoGenerateHtml.java"James Forsyth1-37/+40
2018-09-11Merge "constant instead of literal AJSC_HOME"James Forsyth1-76/+79
2018-09-11Merge "Sonar fixes in MapperUtil.java"James Forsyth1-21/+27
2018-09-11sonar fixes for AutoGenerateHtml.javaasgar1-37/+40
Change-Id: If5ac08fa880d911bbe4f6115f98ea194fb9029cf Issue-ID: AAI-1568 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-09-11Add a private constructor in AAIUtils.javaasgar1-21/+30
Change-Id: I7a2beeede4cb8303b7f9801532a651895cbce389 Issue-ID: AAI-1566 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-09-11constant instead of literal AJSC_HOMEasgar1-76/+79
Change-Id: Ideacc3d44016f20700b2758aed35c8a552b39916 Issue-ID: AAI-1565 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-09-11Sonar fixes in MapperUtil.javaasgar1-21/+27
Change-Id: If7d53a2f8c5199e9634e36a4ab018a78affb65f8 Issue-ID: AAI-1567 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-09-06Merge "renaming/constant instead of literal/unused items"James Forsyth5-259/+274
2018-09-06Merge "private constructor to hide the implicit public"Tian Lee2-159/+170
2018-09-06renaming/constant instead of literal/unused itemsasgar5-259/+274
Change-Id: I2634a375c4b2a371b33dcb6dd2d3aa21cfe54297 Issue-ID: AAI-1558 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-09-06private constructor to hide the implicit publicasgar2-159/+170
Adding a private constructor to hide the implicit public constructor. Change-Id: Id6ded8cf328843c8e77fc652391f5c5edc80aa47 Issue-ID: AAI-1578 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-09-06Return expression instead of temporary variableasgar4-68/+67
Change-Id: Ib5d939c99fc4fb9845f06e787b3915640acfce3e Issue-ID: AAI-1575 Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-08-24Merge "Fix sonar issues"James Forsyth2-22/+18
2018-08-23Update xsd element to generate boolean to falseKajur, Harish (vk250x)2-8/+8
Issue-ID: AAI-1536 Change-Id: If1cc9291e28dd0381115a0bf6c5a44faa7fdbe01 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-08-23Fix sonar issuesParshad Patel2-22/+18
Fix use try-with-resources issues Issue-ID: AAI-1368 Change-Id: I267df61915ac1596cc8645c62ccf43eb04fd7ac5 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2018-08-22Merge "Sonar violation"Venkata Harish Kajur3-13/+17
2018-08-22Sonar violationArindam Mondal3-13/+17
Issue-ID: AAI-1521 Change-Id: I34b801a1ec9525e6b1785914f8d02f938cbf0ee7 Signed-off-by: Arindam Mondal <arind.mondal@samsung.com>
2018-08-21Sonar issue fixes for PutOperation.javaasgar1-83/+84
Issue-ID: AAI-1525 Change-Id: I34e8618223c5ca4aeefbc37dc148b556877f444e Signed-off-by: Mohamed Asgar Samiulla <sammoham@in.ibm.com>
2018-08-14AAI-1452 Update Swagger HTML templateKeong Lim1-240/+185
Issue-ID: AAI-1452 - Re-indent list bodies to optimise size of generated output, reduces final output size by half in new v14 schema. - Add table of contents links under Summary heading for navigating long document - Added company name to copyright notice Change-Id: I74e98a097728fb93939e8a3b2fe27906d0b83ff7 Signed-off-by: Keong Lim <keong.lim@huawei.com>
2018-08-12Integrate aai-schema-ingest library into aai-coreKajur, Harish (vk250x)171-27065/+6893
Integrate the aai-core into using the aai-schema-ingest library to be agnostic to the schema changes Remove any references to aai-schema dependency in aai-core Reorder the components so the aai-schema-ingest is first installed Moved the edge rules to the aai-schema as they are linked to schema Rework the generation of the aai-schema to using aai-schema-ingest library Also remove the yaml and html folders as they get generated on the fly So when maven pushes the aai-schema jar, the jar contains the generated yaml, html and xsd files at runtime due to the gerrit limit of filesize Issue-ID: AAI-1455 Change-Id: I87ecd9eb2fc96a09d3a6399955637674f6e7fb21 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-08-02Merge "Fix sonar issues in SchemaGenerator"Venkata Harish Kajur4-145/+154
2018-08-02Merge "Removing minor sonar issues"Venkata Harish Kajur1-66/+13
2018-08-02Fix sonar issues in SchemaGeneratorjczestochowska4-145/+154
fixed formatting removed unused JanusGraph graph parameter deleted usage of print that were accompanied by a logger reduced loadSchemaIntoJanusGraph complexity by cutting it into smaller methods added private constructor to prevent instantiation optimized imports Change-Id: I4645a7fed266afbe6c2b21df20b40574aa9f31fd Issue-ID: AAI-1437 Signed-off-by: jczestochowska <justyna.czestochowska@nokia.com>
2018-07-31Refactor of DataGrooming main scriptJustyna Czestochowska1-106/+106
replaced long if else with switch extracted methods handling wrong or missing arguments replaced AAI_6101 with constant, called diamond operator Change-Id: Ia8e43df0f028617c55c12bea03efab22b7fc1f4b Issue-ID: AAI-1431 Signed-off-by: jczestochowska <justyna.czestochowska@nokia.com>
2018-07-31Removing minor sonar issuesJustyna Czestochowska1-66/+13
replaced usage of print by logger, removed duplication, removed commented out code Change-Id: Ib8b8cf9e6769ecc235ec080f26526cf7d790513c Issue-ID: AAI-1434 Signed-off-by: jczestochowska <justyna.czestochowska@nokia.com>
2018-07-25Merge "Fix component creation"Venkata Harish Kajur5-25/+34
2018-07-23Merge "Fix stream closing"Venkata Harish Kajur5-60/+35
2018-07-19Add collection under network for v13 and v14Kajur, Harish (vk250x)3-5/+2969
Issue-ID: AAI-1395 Change-Id: I306e579c4a367a7b41ab46759a261bcc3a628699 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-07-12Fix component creationBogumil Zebek5-25/+34
Change-Id: I08606ec83b53cd87005f7d52301e0fe8792d744e Issue-ID: AAI-1236 Signed-off-by: Bogumil Zebek <bogumil.zebek@nokia.com>
2018-07-04Remove dead path of codeBogumil Zebek1-2/+0
Change-Id: I8fd74ac0b90244f1af2544f243478c5a7de989eb Issue-ID: AAI-1360 Signed-off-by: Bogumil Zebek <bogumil.zebek@nokia.com>
2018-07-03Fix stream closingBogumil Zebek5-60/+35
Change-Id: I9c837a3e62d7834922ab0c191590875359a69441 Issue-ID: AAI-1358 Signed-off-by: Bogumil Zebek <bogumil.zebek@nokia.com>
2018-05-23Merge "Fixes in DataGrooming"James Forsyth1-68/+62
2018-05-02Remove the client load balancer use http clientKajur, Harish (vk250x)6-310/+136
Issue-ID: AAI-965 Change-Id: I68600c2a586faa5537ac58ca21b06e984413a8bc Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-04-17Change version numbers on aai_swagger_HTML filesEpp, Richard (re6517)3-4/+36
Change-Id: Ice7b38273c6c4701dd16da573c03fa121abfe298 Issue-ID: AAI-971 Signed-off-by: Epp, Richard (re6517) <re6517@us.att.com>
2018-04-16Fixes in DataGroomingburdziak1-68/+62
Change-Id: I0a4a5a82e4ff932ef3f7489afb558e92c9efc1dc Issue-ID: AAI-1031 Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
2018-03-29Convert cloud region to esr edgeKajur, Harish (vk250x)3-18/+18
Issue-ID: AAI-973 Change-Id: Id56186db269ccee9a96a6de25dc7e695d354026e Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-03-29Merge "Fix the edge rules for esr"James Forsyth3-60/+60