Class Config
java.lang.Object
io.kubfly.sdk.output.bucket.Config
The configuration of the collector, taken once from
Config.VARS: the bucket, the names of
the stand and the limits of the format. Wrong numbers fall back to their defaults and are listed in
PROBLEMS; a missing or wrong name of the stand or bucket is an error at the start of the collector
(check()): the application does not start (decisions 22, 27).-
Field Summary
FieldsModifier and TypeFieldDescriptionThe interval of the segments of alerts, s (KUBFLY_OUTPUT_BUCKET_ALERTS_FLUSH, 60).Whether a new alert closes its segment soon (KUBFLY_OUTPUT_BUCKET_ALERTS_URGENT, on).The buffer of the attachments, bytes (KUBFLY_OUTPUT_BUCKET_ATTACHMENT_BYTES, 32 MiB): two halves made when the output starts; the largest attachment is a half, one without room is lost.The size of a block, bytes (KUBFLY_OUTPUT_BUCKET_BLOCK_SIZE, 1 MiB).Whether the collector of the bucket is on:ON— always (a missing bucket is an error),OFF— never,AUTO(by default) — whenKUBFLY_OUTPUT_BUCKET_KINDis set.static final StringThe switch of the collector (KUBFLY_OUTPUT_BUCKET):ON,OFForAUTO.static final Option<BucketBuilder> The builder of the bucket (KUBFLY_OUTPUT_BUCKET_KIND,KUBFLY_OUTPUT_BUCKET_…);Noneif it is missing or wrong (thencheck()fails).The sources of the build (KUBFLY_OUTPUT_BUCKET_CODE): a directory, or a.zipor.jarof them; withKUBFLY_BUILDthe first instance of the build puts its code into the bucket.The level of deflate (KUBFLY_OUTPUT_BUCKET_DEFLATE_LEVEL, 1).The interval of the segments of events, s (KUBFLY_OUTPUT_BUCKET_EVENTS_FLUSH, 60).The level from which an event closes its segment soon (KUBFLY_OUTPUT_BUCKET_EVENTS_URGENT,ERROR);OFF— never.The interval of the segments of health, s (KUBFLY_OUTPUT_BUCKET_HEALTH_FLUSH, 60).static final List<RecipientPublicKey> The public keys of the recipients (KUBFLY_OUTPUT_BUCKET_KEYS,KUBFLY_OUTPUT_BUCKET_KEYS_FILE), without repeats; empty — the segments are written without a cipher.A file of more public keys of recipients (KUBFLY_OUTPUT_BUCKET_KEYS_FILE).The most verbose level taken (KUBFLY_OUTPUT_BUCKET_LEVEL,INFO).The interval of the segments of metrics, s (KUBFLY_OUTPUT_BUCKET_METRICS_FLUSH, 60).Wrong values that fell back to their defaults.The interval of the segments of profiles, s (KUBFLY_OUTPUT_BUCKET_PROFILES_FLUSH, 60); the stream is always encrypted when the keys are set.The public keys of the recipients, as set (KUBFLY_OUTPUT_BUCKET_KEYS): a secret parameter.The size of a segment, blocks (KUBFLY_OUTPUT_BUCKET_SEGMENT_BLOCKS, 32).The directory of the spool (KUBFLY_OUTPUT_BUCKET_SPOOL);None— no spool (by default, decision 6).The most bytes of the spool (KUBFLY_OUTPUT_BUCKET_SPOOL_BYTES, 1 GiB).The most segments of the spool (KUBFLY_OUTPUT_BUCKET_SPOOL_FILES, 10 000).The parameters of the bucket itself (KUBFLY_OUTPUT_BUCKET_KIND,_ROOT,_ENDPOINT…) as set, the access and secret keys secure: the modulekubfly-sdk-bucketreads them forBUILDER.The interval of the segments of tracks, s (KUBFLY_OUTPUT_BUCKET_TRACKS_FLUSH, 60); the stream is always encrypted when the keys are set: the places of people are personal data.Whether the stream traffic is encrypted, as events and metrics, when the keys are set (KUBFLY_OUTPUT_BUCKET_TRAFFIC_ENCRYPT, on): off — open, as alerts.The interval of the segments of traffic, s (KUBFLY_OUTPUT_BUCKET_TRAFFIC_FLUSH, 60).How long after an urgent record its segment closes, ms (KUBFLY_OUTPUT_BUCKET_URGENT_DELAY; by default the ordering window of the pipeline,PipelineSettings.WINDOW).The least time between urgent closes of a stream, s (KUBFLY_OUTPUT_BUCKET_URGENT_INTERVAL, 5). -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheck()Fails if the stand or the bucket is not configured.
-
Field Details
-
BUCKET_VARIABLE
The switch of the collector (KUBFLY_OUTPUT_BUCKET):ON,OFForAUTO.- See Also:
-
BUCKET
-
BUILDER
The builder of the bucket (KUBFLY_OUTPUT_BUCKET_KIND,KUBFLY_OUTPUT_BUCKET_…);Noneif it is missing or wrong (thencheck()fails). -
EVENTS_FLUSH
-
METRICS_FLUSH
-
ALERTS_FLUSH
-
HEALTH_FLUSH
-
TRAFFIC_FLUSH
-
TRAFFIC_ENCRYPT
-
PROFILES_FLUSH
-
TRACKS_FLUSH
-
SPOOL
-
SPOOL_BYTES
-
ATTACHMENT_BYTES
-
SPOOL_FILES
-
BLOCK_SIZE
-
SEGMENT_BLOCKS
-
DEFLATE_LEVEL
-
LEVEL
-
EVENTS_URGENT
-
ALERTS_URGENT
-
URGENT_DELAY
How long after an urgent record its segment closes, ms (KUBFLY_OUTPUT_BUCKET_URGENT_DELAY; by default the ordering window of the pipeline,PipelineSettings.WINDOW). -
URGENT_INTERVAL
-
KEYS
The public keys of the recipients (KUBFLY_OUTPUT_BUCKET_KEYS,KUBFLY_OUTPUT_BUCKET_KEYS_FILE), without repeats; empty — the segments are written without a cipher. -
RECIPIENT_KEYS
-
KEYS_FILE
-
CODE
-
STORE
-
PROBLEMS
-
-
Method Details
-
check
public static void check()Fails if the stand or the bucket is not configured.- Throws:
IllegalStateException- with every missing or wrong name, so the application does not start
-