-
Notifications
You must be signed in to change notification settings - Fork 1
Issue/11 fat ping #19
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
Open
jaboehri
wants to merge
388
commits into
develop
Choose a base branch
from
issue/11_fat_ping
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 250 commits
Commits
Show all changes
388 commits
Select commit
Hold shift + click to select a range
c5bfb32
Added
jaboehri e9f59a4
Added estimation based on 10x the download duration
jaboehri f18db2b
Added new error message constant for error messages set in subprocesses
jaboehri d02d98d
Removed RemoveCorrelationKeyListener and replaced its functionality b…
jaboehri bb6ea95
Replaced strings with constant values
jaboehri 61866eb
Error needs to be handled on intermediate throw event instead as Send…
jaboehri 2cc1a05
Ran format-and-sort
jaboehri c6c1e07
Made PingStatusGenerator provide static utility methods to be in line…
jaboehri 3bcecfc
Uses more fitting ErrorMessageListUtils method
jaboehri eb4d700
Is now a final class with private constructor because constant collec…
jaboehri 728ee8d
Added utility method to retrieve error list
jaboehri 23da0a6
SendPong now includes error messages that occurred before sending the…
jaboehri 856eb62
Accessing BPMN_EXECUTION_VARIABLE_STATUS_CODE and BPMN_EXECUTION_VARI…
jaboehri 425b84b
Ran format-and-sort and removed unnecessary imports
jaboehri 7e46d49
Added null check
jaboehri d8f7e41
Ran format-and-sort
jaboehri 9914cb1
Ran format-and-sort and replaced access BPMN_EXECUTION_VARIABLE_STATU…
jaboehri cb01cc4
Ran format-and-sort
jaboehri aaf21ec
Accessing BPMN_EXECUTION_VARIABLE_DOWNLOADED_BYTES and BPMN_EXECUTION…
jaboehri 4edbc27
Replaced string with constant
jaboehri 6131674
Removed logging statement as generateRandomBinaryContent() already lo…
jaboehri b8e5c3e
Replaced array list with vector as a thread-safe list implementation …
jaboehri db79dc2
Removed unnecessary annotation
jaboehri 0c9f335
Constant access is now getter call
jaboehri b436a56
Added a minimum timer duration of 20s
jaboehri a8cb6c6
Added utility method to add a list of strings as error messages
jaboehri 59e16ff
Added process names to process documentation for maxDownloadSizeBytes…
jaboehri ad2674d
Renamed SaveDownloadSpeeds to SaveDownloadSpeedsPing to indicate that…
jaboehri 725c6fc
Now saves download information and error messages
jaboehri b4f0ae5
Removed LogSendError task as Ping now logs errors itself
jaboehri 4d72e2b
Added NetworkSpeedCalculator. Changed PingStatusGenerator and TaskPro…
jaboehri 0539831
Added PingPongDeploymentStateListener to validate networkSpeedUnit en…
jaboehri 2fead53
Added list of dsf ping unit codesystem values to easily validate them…
jaboehri 4ac4c29
Added networkSpeedUnit environment variable and deployment listener t…
jaboehri 1fef2e0
Added storage logic
jaboehri c0886a3
Now adds information on network speeds to task output
jaboehri c16cd1f
Rearranged the end of the process. Previously, download speeds only g…
jaboehri 5c55e9f
Renamed "Save Download Speeds" in pong.bpmn to "Save Upload Speeds" b…
jaboehri 033da5f
Removed "Save Download Speeds" because this is already done in "Downl…
jaboehri f63554d
Moved service delegates into more appropriate packages
jaboehri 8f1a5d7
Deleted LogAndSaveSendError as this is done by Ping itself in handleI…
jaboehri 0328cd0
Renamed StoreDownloadSpeeds to StoreNetworkSpeeds as both upload and …
jaboehri 8de8d21
Ran format-and-sort
jaboehri ff5ae97
Added more utility methods to update existing status output parameters
jaboehri 6766736
StoreNetworkSpeeds replaced by StoreUploadSpeeds as network speeds ca…
jaboehri cfad142
Added new constant to indicate that the binary resource was downloade…
jaboehri dbb1750
Method is not specific to ping status
jaboehri 24617ff
Ran format-and-sort
jaboehri 9feb3c9
Added more utility methods to provide the same functionality but with…
jaboehri f980c6a
Added StoreDownloadSpeed
jaboehri 0a4b952
Todo done
jaboehri e9e3049
Added implementation to StoreUploadSpeed
jaboehri 2748a5f
Ran format-and-sort
jaboehri e814375
Should have been downloaded duration, not uploaded duration in StoreD…
jaboehri af822d0
Added MathContext
jaboehri 1b90fd4
Added null checks and getErrorMessageList now creates the list if it …
jaboehri 6823d3f
Error message is now added to error message list instead of being a s…
jaboehri bf85a69
Added handling for 0 bytes downloaded and 0 download duration
jaboehri 66b2217
Added handling for 0 bytes downloaded and 0 download duration
jaboehri 9430bc8
Fixed wrong method being called
jaboehri 007da00
Fixed naming
jaboehri 91cc44a
Added missing fhir resource
jaboehri d317f3a
Now uses update instead of create because there is already an output …
jaboehri 9ed9951
Upload speed is read from cleanup task, not from execution variables
jaboehri 1472d58
Now uses actual download results
jaboehri da3a331
Ran format-and-sort
jaboehri 054056d
Now adds upload and download data with 0 as values if an error occurr…
jaboehri b2516da
Replaced MathContext with BigDecimal.scale because MathContext descri…
jaboehri 16c1a7c
Added case for pong-missing status and now reads error message list i…
jaboehri d491e17
Error message gets added to global error message list instead
jaboehri bd05244
Now uses ConstantsPing api to get consistent variable name
jaboehri b8eb798
Removed LogNoResponse as it was replaced by LogAndSaveNoResponse
jaboehri 055a32f
LogPing belongs to pong process
jaboehri 85c9067
This wasn't caught by IDE refactor when the class was deleted
jaboehri 4c67170
Moved mail service call to appropriate spot
jaboehri 01a2508
Removed unnecessary import
jaboehri 5ac2ea8
Ran format-and-sort
jaboehri 44131fa
Final results are now rounded to 2 decimal places
jaboehri d249afc
Fixed two outputs being generated for each target
jaboehri f2ef58e
"Fixed" race condition by adding asynchronous continuation with retry…
jaboehri a908113
Fixed env variable names to be consistent
jaboehri 0e84053
Fixed wrong amount of input parameters being allowed
jaboehri efbf9bc
Added version utils to add versions to urls in PingStatusGenerator
jaboehri e39ea06
Added versions to urls
jaboehri a2108bc
Revert "Added versions to urls"
jaboehri 73d04b1
Revert "Added version utils to add versions to urls in PingStatusGene…
jaboehri 6489553
Added tests for draft task resources
jaboehri 53c0b2b
Added ping pong v1 CodeSystems and ValueSets to test compatibility to…
jaboehri 37653aa
Added ping pong v1 CodeSystems and ValueSets to test compatibility to…
jaboehri 0512b12
Changed resource loading order
jaboehri 821f48e
Renamed CodeSystem and ValueSet urls as a workaround because FHIR val…
jaboehri 5adac2b
Fixed inputs being wrongfully added as outputs
jaboehri a969533
Added old extension to replicate a problem from actually running the …
jaboehri 21be0d1
Renamed extension url as a workaround because FHIR validation fails d…
jaboehri 2bc2757
Providing a download resource size is now optional. It will take the …
jaboehri a4dcbd9
Revert "Now adds upload and download data with 0 as values if an erro…
jaboehri 8979341
Revert "Error message is now added to error message list instead of b…
jaboehri bcfa716
Now correctly shows status code in output if ping fails to be sent to…
jaboehri 23f7424
Deleted SaveUploadSpeeds because it was unused
jaboehri e03e360
Added version placeholder to ping status extension in order to differ…
jaboehri 0ba8ca3
Improved logging by adding a new logger that outputs the Start-Task's…
jaboehri b3d8f9c
Ran format-and-sort
jaboehri c7ea3ee
Removed unused imports
jaboehri 85a01cb
Fused GenerateResource and StoreResource because Camunda will persist…
jaboehri 3520065
maxDownloadSizeBytes and maxUploadSizeBytes are now integers because …
jaboehri 2ed8009
Removed description on error events as that is not the only reason fo…
jaboehri a4e55ef
Updated to include methods to update the error list in the status out…
jaboehri 2d496cd
Fixed all error messages appearing on all ping status outputs
jaboehri 5d2bd0f
Adopted changes to PingStatusGenerator
jaboehri f8a3d80
Now has the option to store an access a correlation key specific erro…
jaboehri befed56
Adopted changes to PingStatusGenerator and now updates status with er…
jaboehri f8fc853
DownloadResourceAndMeasureSpeed and DownloadResourceAndMeasureSpeedIn…
jaboehri 70dcdcb
Ran format-and-sort
jaboehri 56fdc63
Fixed resource not being stored to local FHIR server because referenc…
jaboehri a2b978f
Outputs now all get sorted in the same way to produce consistent outputs
jaboehri d1bb505
Errors are now all stored at the end of the pong process. Added SaveT…
jaboehri c6f3565
Added more context to error messages
jaboehri 1c0e3bc
Ran format-and-sort
jaboehri ed21ed5
Improved other branch of error message as well
jaboehri a3627cd
Added hard limit to download and upload sizes to avoid Java running o…
jaboehri 3bc1f97
Ran format-and-sort
jaboehri c18b9c4
RC1
jaboehri d9cfad8
Synchronized timer description with timeout value
jaboehri 2387491
Binary content does need to be encoded because it already gets encode…
jaboehri fff0c2d
Fixed a bug that caused the process to crash when executing slim ping…
jaboehri 972f9e2
Fixed a bug where outputs were not detected as ping status outputs re…
jaboehri a82bdde
Removed unused imports
jaboehri ba14f7c
Added error handling for HTTP request to fetch resource behind reference
jaboehri c3d6a65
Moved LogPing to place where it actually makes sense
jaboehri 18d8cf9
Added error handling for missing download resource reference in message
jaboehri 0819905
Added error handling when failing to post binary resource to local FH…
jaboehri afa0474
Fixed nullpointer
jaboehri fa728d6
Removed unused import
jaboehri f3d4353
Improved error messages. If the exception was a WebApplicationExcepti…
jaboehri bcbe516
Added information on ping-ping v2.x
jaboehri 7682fce
Fixed parenthesis
jaboehri 77889ec
Added missing error code to error boundary event
jaboehri 9fcb292
Added missing error code to error boundary event
jaboehri b57bbce
v2.0.0.0-RC2
jaboehri 3ac362c
Set version to 2.0.0.0-SNAPSHOT
jaboehri 9443354
Ping status now represents the status of the entire ping sub-process.…
jaboehri d830513
Condition should check for status code "error" now
jaboehri 5260f51
Error messages are no longer stored as a simple string in Task inputs…
jaboehri 990f97b
Closes #17
jaboehri a34a1a9
Added data-absent-reason extension to Task.input and Task.output in o…
jaboehri 8676591
Moved data-absent-reason extension to Task.input.value[x]
jaboehri 5ffa9d1
Optimized to use only 1 extension instead of 3
jaboehri 272e6c2
Network speed unit default is now mbit/s
jaboehri 84dded7
Upgrade to DSF 1.8.0
jaboehri f9574bc
Marked as serializable in order for Camunda to be able to serialize it
jaboehri 2ade013
Added missing CodeSystems and ValueSets
jaboehri 329dd30
Removed unused variable
jaboehri 19d34d5
Fixed wrongly retrieving errors from previous step
jaboehri 04b5ddf
Added trimming because WebApplicationExceptions may not have a message
jaboehri 2ad5af2
Fixed use of wrong type which resulted in ClassCastException
jaboehri 0b51d02
Added error handling to cleanup message
jaboehri 19eb2b0
- Updated potential fix urls to point to real addresses. Closes #18
jaboehri 1dd8fe4
Made static utility classes final with private constructor to limit u…
jaboehri e78cdbc
Fixed NullPointerException and added test case for fix
jaboehri 0a56451
Changed order of extensions. Correlation key should be last because i…
jaboehri 06226c5
Introduced RandomByteInputStream to replace creating an array of rand…
jaboehri 1788ad3
Ran format and sort
jaboehri 626f447
Extension.url should not contain version
jaboehri 01d1072
- Changed instances of integer to long (or decimal in case of FHIR) t…
jaboehri c53288f
Was fixed in 5260f516adf5534bee7c4cd5480d7165854855fa
jaboehri 3fdbc03
Refactored execution variable string constants in ConstantsPing to be…
jaboehri 62edd05
Update formatter config to always have enum constant declarations on …
jaboehri 302d975
Refactored CodeSystem string constants in ConstantsPing to be availab…
jaboehri 00a70c5
Moved "error handling" for XML parsing in ProcessError into the respe…
jaboehri 849e3b7
Removed unused imports
jaboehri faffe7c
Fixed always false condition
jaboehri 6a62d81
Removed "throws Exception" from methods where no exception gets thrown
jaboehri dec7466
Removed unused logger
jaboehri 2e29179
Removed unnecessary type declaration
jaboehri fabcec3
Removed unnecessary default
jaboehri 9c367d5
Removed unused parameter
jaboehri d707b52
Removed unused exception
jaboehri 4c2db49
Removed empty lines that didn't serve a purpose
jaboehri 11ccdd6
Fixed wrong bean method names
jaboehri 21c9e18
Removed empty line
jaboehri b68bd68
Made AggregateErrorMailService stateless
jaboehri da52a5f
Add todo
jaboehri 45d8667
Completed comment
jaboehri 6b92c63
Reformat
jaboehri 8d16f04
Removed unused imports
jaboehri e2caa14
Download and Upload durations now use java.time.Duration during execu…
jaboehri ce78872
Removed unused class
jaboehri 5291c84
Removed duplicated generator class used only in tests and replaced it…
jaboehri d36dfb4
Removed unused CodeSystem
jaboehri 905207f
Removed empty line
jaboehri fdc1c55
Removed equals method because it wasn't implemented with a hashCode m…
jaboehri 352ec71
Removed unused throw statement
jaboehri 141ef3b
- Replaced json parsing from ProcessError by camunda typed values and…
jaboehri 35611f2
Fixed upload duration being saved as long instead of duration
jaboehri bba10f3
Renamed UPLOADED_DURATION_MILLIS to UPLOADED_DURATION since it is now…
jaboehri 0528ecc
Imp sort
jaboehri 22615c2
Removed empty line
jaboehri f331aa1
Cleanup now uses camunda field injection to know which process it is …
jaboehri 8efeca4
Removed PingPongLogger because it will be redundant in API v2
jaboehri 7b8a78d
Renamed PingUnits CodeSystem according to https://en.wikipedia.org/wi…
jaboehri addccc2
Added import
jaboehri de742cb
GenerateAndStoreResource now also uses Camunda field injection to dif…
jaboehri 7ab3881
- moved maxDownloadResourceSizeBytes calculation to constructor to on…
jaboehri f73e1eb
Removed empty lines and ran format and sort
jaboehri f485266
Applied suggested simplification
jaboehri 20a3875
Removed maxDownloadSizeBytes parameter because downloadResourceSizeBy…
jaboehri 1dcc472
Deleted ErrorOutputComponentGenerator and moved create method to Proc…
jaboehri c8bea9e
Moved methods only used in tests to the test in question and made met…
jaboehri cb8e4f2
Deleted ErrorInputParser and moved its method to SavePong as it is th…
jaboehri 0cbff7e
Combined methods because only the one with the String parameter was used
jaboehri a632979
Removed empty line and replaced return variable with return statement
jaboehri 5b269d8
Replaced map streaming with if-statements to improve readability
jaboehri 6bfd6eb
Ran format and sort
jaboehri d28a52e
Removed NetworkSpeedCalculator because enums are already able to calc…
jaboehri 604e262
ExecutionVariables enum values are now the enum names
jaboehri c62bfa1
Replaced network speed extension with FHIR Quantity datatype
jaboehri b779b09
Made extension backwards compatible by reintroducing the error-messag…
jaboehri 38bc906
Replaced process, process step and action in errors with a unique cod…
jaboehri 330cce9
Added resource version to all Codings:
jaboehri 643648b
Removed method that will never get used as there is no scenario where…
jaboehri 28d4b05
Format
jaboehri 3773e4f
- No longer displays network speeds of 0 units
jaboehri ea1096f
Fixed codes not being the same in both files and removed dots at the …
jaboehri 38ec69b
More formal speech
jaboehri 3069158
Fixed WebApplicationException using connection timeout fix URL instea…
jaboehri 7896e61
- Specified timeout errors to be either read or connect timeouts
jaboehri cf37bf0
- Added PingPongProcessPluginDeploymentStateListener to change CodeSy…
jaboehri 671f26c
Fixed errors being appended to ping-status-extension instead of ping-…
jaboehri 45907d5
Added error handling for HTTP 413 Request Entity too large and remove…
jaboehri 27ff775
Fixed duplicate errors-extensions in pong status output
jaboehri 3ac2c65
Fixed errors-extension being created without any error entries which …
jaboehri ae5cc42
Reformulated response message timeout because the underlying issue is…
jaboehri 06c52ed
Renamed download-speed to download-speed-from-remote and upload-speed…
jaboehri a03491e
Network speeds now get fitted to the next higher SI prefix should the…
jaboehri 5f83b76
Added more null checks because they produced NullPointerExceptions wh…
jaboehri a643d9b
Fixed downloadResourceSize not getting set after being reduced to max…
jaboehri ad623ba
Set default maxDownloadSizeBytes and maxUploadSizeBytes to 400MB beca…
jaboehri 8d25c07
Removed unused constants
jaboehri b41cbca
Added error handling for SocketTimeoutException. A read timeout may o…
jaboehri 69aa519
Added an input parameter to the start task that allows setting the du…
jaboehri eda0388
Improved readability of environment variables
jaboehri aeb0431
Update process documentation
jaboehri 80a5653
Fixed documentation
jaboehri 718fbc0
Fixed upload and download speeds not having their unit set independently
jaboehri 9169ff4
Update documentation
jaboehri 82a0690
Update readme
jaboehri a041c2f
Fixed IO error when remote instance allows less data to be downloaded…
jaboehri 81f35c6
Execution variable for cleanup timer duration now registered in Execu…
jaboehri 32189a5
Fixed slim-ping being executed even though fat-ping execution was req…
jaboehri d3d23fc
Removed control flow by exception antipattern
jaboehri 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 hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,272 @@ | ||
package dev.dsf.bpe; | ||
|
||
public final class CodeSystem | ||
{ | ||
private CodeSystem() | ||
{ | ||
} | ||
|
||
interface SingleStringValueEnum | ||
{ | ||
String getValue(); | ||
} | ||
|
||
protected static class SingleStringValueEnumParser<T extends Enum<T> & SingleStringValueEnum> | ||
{ | ||
private final Class<T> enumClass; | ||
|
||
public SingleStringValueEnumParser(Class<T> enumClass) | ||
{ | ||
this.enumClass = enumClass; | ||
} | ||
|
||
public T ofValue(String value) | ||
{ | ||
try | ||
{ | ||
return T.valueOf(enumClass, value); | ||
} | ||
catch (IllegalArgumentException e) | ||
{ | ||
for (T t : enumClass.getEnumConstants()) | ||
{ | ||
if (t.getValue().equals(value)) | ||
{ | ||
return t; | ||
} | ||
} | ||
throw new IllegalArgumentException("Unable to convert " + value + " to " + enumClass.getName()); | ||
} | ||
} | ||
} | ||
|
||
|
||
public static final class DsfPing | ||
{ | ||
public static final String URL = "http://dsf.dev/fhir/CodeSystem/ping-v2"; | ||
|
||
private DsfPing() | ||
{ | ||
} | ||
|
||
public enum Code implements SingleStringValueEnum | ||
{ | ||
PING_STATUS("ping-status"), | ||
PONG_STATUS("pong-status"), | ||
ENDPOINT_IDENTIFIER("endpoint-identifier"), | ||
TARGET_ENDPOINTS("target-endpoints"), | ||
TIMER_INTERVAL("timer-interval"), | ||
DOWNLOAD_RESOURCE_SIZE_BYTES("download-resource-size-bytes"), | ||
DOWNLOADED_DURATION_MILLIS("downloaded-duration-millis"), | ||
DOWNLOADED_BYTES("downloaded-bytes"), | ||
DOWNLOAD_RESOURCE_REFERENCE("download-resource-reference"), | ||
ERROR("error"); | ||
|
||
private final String value; | ||
|
||
Code(String value) | ||
{ | ||
this.value = value; | ||
} | ||
|
||
public String getValue() | ||
{ | ||
return value; | ||
} | ||
|
||
public static Code ofValue(String value) | ||
{ | ||
return new SingleStringValueEnumParser<>(Code.class).ofValue(value); | ||
} | ||
} | ||
} | ||
|
||
public static final class DsfPingStatus | ||
{ | ||
public static final String URL = "http://dsf.dev/fhir/CodeSystem/ping-status-v2"; | ||
|
||
private DsfPingStatus() | ||
{ | ||
} | ||
|
||
public enum Code implements SingleStringValueEnum | ||
{ | ||
COMPLETED("completed"), | ||
PENDING("pending"), | ||
ERROR("error"); | ||
|
||
private final String value; | ||
|
||
Code(String value) | ||
{ | ||
this.value = value; | ||
} | ||
|
||
public String getValue() | ||
{ | ||
return value; | ||
} | ||
|
||
public static Code ofValue(String value) | ||
{ | ||
return new SingleStringValueEnumParser<>(Code.class).ofValue(value); | ||
} | ||
} | ||
|
||
} | ||
|
||
public static final class DsfPingProcesses | ||
{ | ||
public static final String URL = "http://dsf.dev/fhir/CodeSystem/ping-processes-v2"; | ||
|
||
private DsfPingProcesses() | ||
{ | ||
} | ||
|
||
public enum Code implements SingleStringValueEnum | ||
{ | ||
PING("ping"), | ||
PONG("pong"); | ||
|
||
private final String value; | ||
|
||
Code(String value) | ||
{ | ||
this.value = value; | ||
} | ||
|
||
public String getValue() | ||
{ | ||
return value; | ||
} | ||
|
||
public static Code ofValue(String value) | ||
{ | ||
return new SingleStringValueEnumParser<>(Code.class).ofValue(value); | ||
} | ||
} | ||
} | ||
|
||
public static final class DsfPingProcessSteps | ||
{ | ||
public static final String URL = "http://dsf.dev/fhir/CodeSystem/ping-process-steps-v2"; | ||
|
||
private DsfPingProcessSteps() | ||
{ | ||
} | ||
|
||
public enum Code implements SingleStringValueEnum | ||
{ | ||
SET_DOWNLOAD_RESOURCE_SIZE("set-download-resource-size"), | ||
GENERATE_AND_STORE_RESOURCE("generate-and-store-resource"), | ||
LOG_AND_SAVE_ERROR("log-and-save-error"), | ||
SELECT_TARGETS("select-targets"), | ||
PING("ping"), | ||
LOG_AND_SAVE_SEND_ERROR("log-and-save-send-error"), | ||
LOG_AND_SAVE_NO_RESPONSE("log-and-save-no-response"), | ||
SAVE_PONG("save-pong"), | ||
DOWNLOAD_RESOURCE_AND_MEASURE_SPEED("download-resource-and-measure-speed"), | ||
CLEANUP_PONG("cleanup-pong"), | ||
CLEANUP("cleanup"), | ||
STORE_RESULTS("store-results"), | ||
LOG_PING("log-ping"), | ||
SET_ENDPOINT_IDENTIFIER("set-endpoint-identifier"), | ||
SELECT_PONG_TARGET("select-pong-target"), | ||
STORE_DOWNLOAD_SPEED("store-download-speed"), | ||
LOG_AND_SAVE_AND_STORE_ERROR("log-and-save-and-store-error"), | ||
ESTIMATE_CLEANUP_TIMER_DURATION("estimate-cleanup-timer-duration"), | ||
PONG("pong"), | ||
STORE_UPLOAD_SPEED("store-upload-speed"), | ||
SAVE_TIMEOUT_ERROR("save-timeout-error"), | ||
STORE_ERRORS("store-errors"), | ||
CLEANUP_TIMER_CATCH_EVENT("cleanup-timer-catch-event"), | ||
PONG_MESSAGE_TIMEOUT_TIMER_CATCH_EVENT("pong-timer-catch-event"), | ||
CHECK_PING_TASK_STATUS("check-ping-task-status"); | ||
|
||
private final String value; | ||
|
||
Code(String value) | ||
{ | ||
this.value = value; | ||
} | ||
|
||
public String getValue() | ||
{ | ||
return value; | ||
} | ||
|
||
public static Code ofValue(String value) | ||
{ | ||
return new SingleStringValueEnumParser<>(Code.class).ofValue(value); | ||
} | ||
} | ||
} | ||
|
||
public static final class DsfPingUnits | ||
{ | ||
public static final String URL = "http://dsf.dev/fhir/CodeSystem/ping-units-v2"; | ||
|
||
private DsfPingUnits() | ||
{ | ||
} | ||
|
||
public enum Code implements SingleStringValueEnum | ||
{ | ||
BITS_PER_SECOND("bits-per-second"), | ||
BYTES_PER_SECOND("bytes-per-second"), | ||
MEGABITS_PER_SECOND("megabits-per-second"), | ||
MEGABYTES_PER_SECOND("megabytes-per-second"); | ||
|
||
private final String value; | ||
|
||
Code(String value) | ||
{ | ||
this.value = value; | ||
} | ||
|
||
public String getValue() | ||
{ | ||
return value; | ||
} | ||
|
||
public static Code ofValue(String value) | ||
{ | ||
return new SingleStringValueEnumParser<>(Code.class).ofValue(value); | ||
} | ||
} | ||
} | ||
|
||
public static final class ReadAccessTag | ||
jaboehri marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
{ | ||
public static final String URL = "http://dsf.dev/fhir/CodeSystem/read-access-tag"; | ||
|
||
private ReadAccessTag() | ||
{ | ||
} | ||
|
||
public enum Code implements SingleStringValueEnum | ||
{ | ||
ALL("ALL"), | ||
LOCAL("LOCAL"), | ||
ORGANIZATION("ORGANIZATION"), | ||
ROLE("ROLE"); | ||
|
||
private final String value; | ||
|
||
Code(String value) | ||
{ | ||
this.value = value; | ||
} | ||
|
||
public String getValue() | ||
{ | ||
return value; | ||
} | ||
|
||
public static Code ofValue(String value) | ||
{ | ||
return new SingleStringValueEnumParser<>(Code.class).ofValue(value); | ||
} | ||
} | ||
} | ||
} |
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.
Uh oh!
There was an error while loading. Please reload this page.