-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade OSGI annotations to 6.0.0 version #326
Merged
Merged
Changes from 88 commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
3c9b086
update pom for new osgi annotations
85e16c4
add dependencies to worker module
65f2f8e
update annotations in ChromeWebDriverFactory
3ec6946
update annotations in FirefoxWebDriverFactory
65d3fb8
update annotations in HttpRequestExecutorFactoryImpl
444271f
update annotations in WebDriverProvider
e834ee0
update annotations in worker/impl
0c9794a
fix missing service parameter
e68f7a6
updated osgi annotations in runner
plutasnyy 55b8f02
removed unused interfaces
plutasnyy e0159f2
removed unused function
plutasnyy 0c7164d
change scopes in pom
plutasnyy dcd7d62
removed names
plutasnyy 375fda5
updated annotations in test executor
plutasnyy 1d18fb8
Removing dependency to SCR annotations
wiiitek df37aea
removing powermock dependencies
wiiitek ce55cae
Merge pull request #309 from Cognifide/updates
plutasnyy 2c4405d
added todo in runner pom xml
plutasnyy 7eb8aec
new OSGi annotations - proxy
PiteroS678 2d22451
update annotations in worker/listeners
38d0262
new OSGi annotations - validation
PiteroS678 7d2b474
remove wildcard import
2c31feb
remove formatting changes in license header
9720686
updated osgi annotatation in jobs
plutasnyy 0079d6f
updated pom.xml
plutasnyy ce65974
change conf to config
c6dad83
move constants from WebDriverHelper
c0d8b80
removed dependencies
plutasnyy 2e97d91
removed unused variables
plutasnyy 1974b97
remove wildcard import
f457086
felix dependency removed
PiteroS678 1ac1bc4
Merge pull request #313 from Cognifide/update-osgi-annotation-validation
plutasnyy bfebd04
Merge pull request #314 from Cognifide/feature/upgrade-osgi-annotatio…
plutasnyy 48c7ea2
Merge pull request #308 from Cognifide/update-osgi-annotations-test-e…
plutasnyy 95afbe0
updated osgi annotatations in communication
plutasnyy 5e94988
new OSGi annotations - datastorage
PiteroS678 0669e2f
sling dependency removed
PiteroS678 a4b95c8
MongoDBClientConf - refactor
PiteroS678 b254dce
Merge branch 'feature/upgrade-osgi-annotations' into update-osgi-anno…
PiteroS678 3cca0e2
updated annotatations in cleaner
plutasnyy 8e1a729
remove felix dependency
a024722
Merge branch 'feature/upgrade-osgi-annotations' into task/new-osgi-an…
EwaFengler c6098be
added new positions to CHANGELOG associated with new osgi annotations
PiteroS678 e6bbd5c
PRs grouped
PiteroS678 9a43fc8
remove unused method
f64d987
remove unused import
50e1767
remove dependency
5bf2e3f
rename XYZConfig to config
21549f8
redundancy removed
PiteroS678 c0b277b
Merge pull request #311 from Cognifide/update-osgi-annotation-proxy
plutasnyy 1aa8545
Merge pull request #316 from Cognifide/update-osgi-annotation-datasto…
plutasnyy 34d8e54
upadte osgi annotatation in rest endpoint
plutasnyy 36bc702
Merge branch 'feature/upgrade-osgi-annotations' into update-osgi-anno…
plutasnyy 44d2bb9
Merge pull request #312 from EwaFengler/task/new-osgi-annotations
tkaik 605958f
Merge pull request #315 from Cognifide/feature/upgrade-osgi-annotatio…
plutasnyy 874ed9c
Merge pull request #310 from Cognifide/update-osgi-annotations-rest-e…
plutasnyy 0a713da
Merge pull request #306 from Cognifide/update-osgi-annotations
plutasnyy f370712
removed duplicated dependencies
plutasnyy 60476ca
Merge pull request #322 from Cognifide/feature/upgrade-osgi-annotatio…
plutasnyy 9d77a91
Merge branch 'master' of https://github.com/Cognifide/aet into featur…
PiteroS678 c7ee692
update
PiteroS678 9a65963
felix & sling dependency removed,
PiteroS678 6473bc5
removed duplicated dependencies
plutasnyy 619a338
felix & sling dependency removed,
PiteroS678 c0dcc1c
merge
plutasnyy f68d894
aet-features.xml update
PiteroS678 f638e1d
updated names in external snippet
plutasnyy 2ce06e4
renamed variables
plutasnyy fbc7e89
Merge remote-tracking branch 'origin/master' into feature/upgrade-osg…
plutasnyy 69937f3
updated notes:
plutasnyy b5e6433
Update UpgradeNotes.md
plutasnyy 5a11499
revert 2.1.3 documentation
plutasnyy 9cbfc3a
updated documentation
plutasnyy af9e812
updated documentation - removed unused plugin
plutasnyy 658cc69
updated documentation
plutasnyy 31c480e
fixed sentence
plutasnyy 4aa3063
fixed typo
plutasnyy 5d0cf9f
Merge branch 'feature/upgrade-osgi-annotations' into update-changelog…
plutasnyy db2067c
Merge pull request #319 from Cognifide/update-changelog-osgi-annotation
plutasnyy 6ae35f7
updted changelog
plutasnyy 8eb9f64
update upgrade notes
plutasnyy 27eae04
added cleanerjob
plutasnyy 17acdf7
remove names
plutasnyy e6e0101
small rafactor in worker module
plutasnyy b807121
changed web driver helper
plutasnyy 09bb97b
update labels in runner configuration
plutasnyy d73e63b
redundancy in annotations removed
PiteroS678 dab4795
constants update
PiteroS678 77f33a5
fix method name
Slasheruus f446bd7
Update UpgradeNotes.md
plutasnyy 7dd7083
Update UpgradeNotes.md
plutasnyy dd8f9e2
Merge branch 'master' into feature/upgrade-osgi-annotations
tkaik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
core/cleaner/src/main/java/com/cognifide/aet/cleaner/configuration/CleanerSchedulerConf.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/** | ||
* AET | ||
* | ||
* Copyright (C) 2013 Cognifide Limited | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License | ||
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
* or implied. See the License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
package com.cognifide.aet.cleaner.configuration; | ||
|
||
import org.osgi.service.metatype.annotations.AttributeDefinition; | ||
import org.osgi.service.metatype.annotations.AttributeType; | ||
import org.osgi.service.metatype.annotations.ObjectClassDefinition; | ||
|
||
@ObjectClassDefinition(name = "AET Cleaning Scheduler Service", description = "AET Cleaning Scheduler Service") | ||
public @interface CleanerSchedulerConf { | ||
|
||
String COMPANY_NAME = "Company Name"; | ||
|
||
String PROJECT_NAME = "Project Name"; | ||
|
||
String REMOVE_OLDER_THAN = "Remove artifacts older than"; | ||
|
||
String KEEP_N_VERSIONS = "Last versions to keep"; | ||
|
||
String SCHEDULE_CRON = "Schedule"; | ||
|
||
String DRY_RUN = "Dry run"; | ||
|
||
long DEFAULT_REMOVE_OLDER_THAN_PARAM = 10L; | ||
|
||
long DEFAULT_KEEP_N_VERSIONS_PARAM = 1L; | ||
|
||
@AttributeDefinition( | ||
name = SCHEDULE_CRON, | ||
description = "CRON notation of when the job is to be fired. [example: '0 0 21 ? * *' will trigger job daily at 21:00].") | ||
String schedule(); | ||
|
||
@AttributeDefinition( | ||
name = KEEP_N_VERSIONS, | ||
description = "Defines number of artifacts versions that will be left after clean operation [integer]. If left empty, only one version will be kept after cleaning operation.", | ||
type = AttributeType.LONG) | ||
long keepNVersions() default DEFAULT_KEEP_N_VERSIONS_PARAM; | ||
|
||
@AttributeDefinition( | ||
name = REMOVE_OLDER_THAN, | ||
description = "Defines how old files should be removed [integer days]. Works as conjunction with last versions to keep.", | ||
type = AttributeType.LONG) | ||
long removeOlderThan() default DEFAULT_REMOVE_OLDER_THAN_PARAM; | ||
|
||
@AttributeDefinition( | ||
name = COMPANY_NAME, | ||
description = "Name of the company for which we wish cleaning to be performed. Leave blank if you wish to trigger this job for each company on database.", | ||
type = AttributeType.STRING) | ||
String companyName(); | ||
|
||
@AttributeDefinition( | ||
name = PROJECT_NAME, | ||
description = "Name of the project for which we wish cleaning to be performed. Leave blank if you wish to trigger this job for each project on database.", | ||
type = AttributeType.STRING) | ||
String projectName(); | ||
|
||
@AttributeDefinition( | ||
name = DRY_RUN, | ||
description = "Flag that says if operation should be run in 'dry run' mode. When checked, no changes will be performed on database.", | ||
type = AttributeType.BOOLEAN) | ||
boolean dryRun() default true; | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add
.put(CleanerJob.KEY_KEEP_N_VERSIONS, config.keepNVersions())
. We don't have equivalent for.put(CleanerJob.KEY_KEEP_N_VERSIONS, keepNVersions)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done