- cachedStreamConfigs() - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Returns all cached stream configs.
- cachedStreamNames() - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Returns all cached stream name keys.
- cacheGet(URI) - Method in class org.wikimedia.eventutilities.core.json.JsonSchemaLoader
-
Proxy method to get a schema by schemaUri directly from the local cache.
- cachePut(URI, JsonNode) - Method in class org.wikimedia.eventutilities.core.json.JsonSchemaLoader
-
Proxy method to put a schema by schemaUri directly in the local cache.
- CANARY_DOMAIN - Static variable in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Will be used as the value of meta.domain when building canary events.
- canaryEvent(String) - Method in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Given a streamName, gets its schema and uses the JSONSchema examples to make a canary event.
- canaryEvent(String, DateTime) - Method in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
- canaryEvent(EventStream) - Method in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Given an EventStream, gets its schema and uses the JSONSchema examples to make a canary event.
- canaryEvent(EventStream, DateTime) - Method in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Given an EventStream, gets its schema and uses the JSONSchema examples to make a canary event.
- CanaryEventProducer - Class in org.wikimedia.eventutilities.monitoring
-
Uses an EventStreamFactory to create and POST Wikimedia canary events to
Wikimedia event services.
- CanaryEventProducer(EventSchemaLoader, EventStreamConfig, BasicHttpClient) - Constructor for class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Constructs a new instance of CanaryEventProducer with a new instance of EventStreamFactory
from eventSchemaLoader and eventStreamConfig.
- CanaryEventProducer(EventStreamFactory, BasicHttpClient) - Constructor for class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Constructs a new CanaryEventProducer using the provided EventStreamFactory.
- canEqual(Object) - Method in class org.wikimedia.eventutilities.core.event.types.SchemaConversions.RowField
-
- causedByException() - Method in class org.wikimedia.eventutilities.core.http.BasicHttpResult
-
Returns true if this result represents a failure due to a local IOException.
- checkJsonSchemaIsObject(ObjectNode) - Static method in class org.wikimedia.eventutilities.core.event.types.JsonSchemaConverter
-
DRY helper function that asserts that the jsonSchema has "type": "object".
- clock(SerializableClock) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig.EventUtilitiesConfigBuilder
-
Clock used for various time based operations and timestamp creation.
- close() - Method in class org.wikimedia.eventutilities.core.http.BasicHttpClient
-
- collectAllCachedSettings(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Collects all settingName values of every cached stream config entry.
- collectAllCachedSettingsAsString(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Collects all settingName values of every cached stream config entry as a String
If the value is an array, its contents will be flattened.
- collectSetting(String, String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Collects the settingName value for streamName.
- collectSettingAsString(String, String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Collects the settingName value as a String for streamName.
- collectSettingMatchingSettings(String, List<String>, Map<String, String>) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Collect all settingName values for the list of specified streams
with settings that match the provided settingsFilters.
- collectSettingMatchingSettingsAsString(String, List<String>, Map<String, String>) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Collect all settingName values as Strings for the list of specified streams
with settings that match the provided settingsFilters.
- collectSettings(List<String>, String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Collects all settingName values for each of the listed streamNames.
- collectSettingsAsString(List<String>, String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Collects all settingName values as a String for each of the listed streamNames.
- collectTopics(List<String>) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Get all topics settings for the list of specified streams.
- collectTopicsMatchingSettings(List<String>, Map<String, String>) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Get all topics settings for the list of specified streams
with settings that match the provided settingsFiilters.
- convert(ObjectNode) - Method in class org.wikimedia.eventutilities.core.event.types.JsonSchemaConverter
-
Converts this JSONSchema using the provided SchemaConversions.
- convert(ObjectNode, String) - Method in class org.wikimedia.eventutilities.core.event.types.JsonSchemaConverter
-
Iterates through jsonSchema and calls appropriate TypeConverter methods
on each jsonSchema property type in order to convert it into type T.
- convertArrayType(ObjectNode, String) - Method in class org.wikimedia.eventutilities.core.event.types.JsonSchemaConverter
-
- convertMapType(ObjectNode, String) - Method in class org.wikimedia.eventutilities.core.event.types.JsonSchemaConverter
-
- convertRowType(ObjectNode, String) - Method in class org.wikimedia.eventutilities.core.event.types.JsonSchemaConverter
-
- convertValue(JsonNode, Class<T>) - Method in class org.wikimedia.eventutilities.core.json.JsonLoader
-
Convenience method to reuse our ObjectMapper to convert a JsonNode to a Java Class.
- create(HttpResponse, IntPredicate) - Static method in class org.wikimedia.eventutilities.core.http.BasicHttpResult
-
Creates an BasicHttpResult from an httpcomponents HttpResponse and a lambda
isSuccess that determines what http response status codes constitute a successful
response.
- createAllCachedEventStreams() - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory
-
Creates EventStreams for all streams in our EventStreamConfig's cache.
- createEventloggingSchemaLoader(BasicHttpClient) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
- createEventSchemaLoader(BasicHttpClient) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
- createEventSchemaValidator(EventSchemaLoader) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
- createEventStream(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory
-
Returns a new EventStream for this streamName using eventSchemaLoader and
eventStreamConfig.
- createEventStreamConfig(EventStreamConfigLoader) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
- createEventStreamEventGenerator(String, String) - Method in class org.wikimedia.eventutilities.core.event.JsonEventGenerator
-
Create a validating event generator.
- createEventStreamFactory(EventSchemaLoader, EventStreamConfig) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
- createEventStreams(Collection<String>) - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory
-
Returns a List of new EventStreams using eventSchemaLoader and
eventStreamConfig.
- createEventStreamsMatchingSettings(Collection<String>, Map<String, String>) - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory
-
Creates EventStreams for the list of specified streams
with settings that match the provided settingsFilters.
- createFromMessageKeyFields(JsonNode) - Static method in class org.wikimedia.eventutilities.core.event.EventKeySelector
-
- createHttpClient() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
- createJsonEventGenerator(EventSchemaLoader, EventStreamConfig) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
- createMediawikiEventStreamConfigLoader(BasicHttpClient) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
- createNonValidatingEventStreamEventGenerator(String, String) - Method in class org.wikimedia.eventutilities.core.event.JsonEventGenerator
-
Create a non-validating event generator.
- elementsStream() - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Returns a Java Stream iterator over the stream config entries.
- encapsulateEventLoggingSchema(JsonNode) - Method in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
Given an EventLogging schema in an ObjectNode, 'encapsulate' it in the
eventLoggingCapsuleSchema the same way that EventLogging python would.
- equals(Object) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
- equals(Object) - Method in class org.wikimedia.eventutilities.core.event.types.SchemaConversions.RowField
-
- EVENT_GENERATOR - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaDefaults
-
Deprecated.
Wikimedia JsonEventGenerator default instance.
- EVENT_GENERATOR - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaExternalDefaults
-
Deprecated.
Wikimedia JsonEventGenerator default instance.
- EVENT_SCHEMA_BASE_URIS - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaDefaults
-
Deprecated.
List of event schema base URIs used in WMF production.
- EVENT_SCHEMA_BASE_URIS - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaExternalDefaults
-
Deprecated.
List of event schema base URIs used in WMF production.
- EVENT_SCHEMA_LOADER - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaDefaults
-
Deprecated.
Wikimedia EventSchemaLoader default instance.
- EVENT_SCHEMA_LOADER - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaExternalDefaults
-
Deprecated.
Wikimedia EventSchemaLoader default instance.
- EVENT_SCHEMA_VALIDATOR - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaDefaults
-
Deprecated.
Wikimedia EventSchemaValidator default instance.
- EVENT_SCHEMA_VALIDATOR - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaExternalDefaults
-
Deprecated.
Wikimedia EventSchemaValidator default instance.
- EVENT_SERVICE_SETTING - Static variable in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Stream Config setting name for destination event service name.
- EVENT_SERVICE_TO_URI_MAP - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaDefaults
-
Deprecated.
This default is suitable for using in WMF production networks, but
may become outdated.
- EVENT_SERVICE_TO_URI_MAP - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaExternalDefaults
-
Deprecated.
This default is suitable for using in WMF production networks, but
may become outdated.
- EVENT_STREAM_CONFIG - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaDefaults
-
Deprecated.
Wikimedia EventStreamConfig default instance.
- EVENT_STREAM_CONFIG - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaExternalDefaults
-
Deprecated.
Wikimedia EventStreamConfig default instance.
- EVENT_STREAM_CONFIG_ENDPOINT - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaDefaults
-
Deprecated.
In production, api-ro needs the Host header set to the MediaWiki API that should be accessed.
- EVENT_STREAM_CONFIG_URI - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaDefaults
-
Deprecated.
MediaWiki EventStreamConfig API used in WMF production to use to fetch stream configs.
- EVENT_STREAM_CONFIG_URI - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaExternalDefaults
-
Deprecated.
MediaWiki EventStreamConfig API used in WMF production to use to fetch stream configs.
- EVENT_STREAM_FACTORY - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaDefaults
-
Deprecated.
Wikimedia EventStreamFactory default instance.
- EVENT_STREAM_FACTORY - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaExternalDefaults
-
Deprecated.
Wikimedia EventStreamFactory default instance.
- EVENT_TIME_FIELD - Static variable in class org.wikimedia.eventutilities.core.event.JsonEventGenerator
-
- eventId(Supplier<UUID>) - Static method in interface org.wikimedia.eventutilities.core.event.EventNormalizationStep
-
Set the event if (meta.id) if not already set.
- EventKeySelector - Class in org.wikimedia.eventutilities.core.event
-
Creates a key node by extracting aliased fields from a value node.
- EventKeySelector(List<Map.Entry<String, String>>) - Constructor for class org.wikimedia.eventutilities.core.event.EventKeySelector
-
- EVENTLOGGING_SCHEMA_BASE_URI - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaDefaults
-
Deprecated.
URI from which to get legacy EventLogging on wiki schemas.
- EVENTLOGGING_SCHEMA_BASE_URI - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaExternalDefaults
-
Deprecated.
URI from which to get legacy EventLogging on wiki schemas.
- EVENTLOGGING_SCHEMA_FIELD - Static variable in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
EventLogging schema names are in an event's `schema` field.
- EVENTLOGGING_SCHEMA_LOADER - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaDefaults
-
Deprecated.
Wikimedia legacy EventLoggingSchemaLoader instance.
- EVENTLOGGING_SCHEMA_LOADER - Static variable in class org.wikimedia.eventutilities.core.event.WikimediaExternalDefaults
-
Deprecated.
Wikimedia legacy EventLoggingSchemaLoader instance.
- eventLoggingCapsuleSchema - Variable in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
EventCapsule schema.
- eventloggingSchemaBaseUri(String) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig.EventUtilitiesConfigBuilder
-
URI from which to get legacy EventLogging on wiki schemas.
- EventLoggingSchemaLoader - Class in org.wikimedia.eventutilities.core.event
-
Loads EventLogging schemas from schema names (and/or revisions)
by extending EventSchemaLoader and adding Mediawiki extension EventLogging
schema specific functionality.
- EventLoggingSchemaLoader(JsonSchemaLoader) - Constructor for class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
Returns an EventLoggingSchemaLoader that uses
JsonSchemaLoader
to load JSONSchemas.
- eventLoggingSchemaUriFor(String) - Method in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
Builds an EventLogging Mediawiki API schema URI for the latest revision.
- eventLoggingSchemaUriFor(String, Integer) - Method in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
Builds an EventLogging Mediawiki API schema URI for a specific schema revision.
- EventNormalizationStep - Interface in org.wikimedia.eventutilities.core.event
-
Define the steps to "normalize" an event before sending it to kafka.
- EventNormalizationStep.Validation - Class in org.wikimedia.eventutilities.core.event
-
- eventSchemaBaseUris(List<String>) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig.EventUtilitiesConfigBuilder
-
- EventSchemaLoader - Class in org.wikimedia.eventutilities.core.event
-
Class to load and cache JSONSchema JsonNodes from relative schema URIs and event data.
- EventSchemaLoader(JsonSchemaLoader, JsonPointer) - Constructor for class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Constructs a EventSchemaLoader that prefixes URIs with baseURI and
extracts schema URIs from the schemaField in events.
- eventSchemaLoader - Variable in class org.wikimedia.eventutilities.core.event.EventStream
-
EventSchemaLoader instance used when getting a schema for this stream.
- eventSchemaLoader - Variable in class org.wikimedia.eventutilities.core.event.EventStreamFactory
-
EventSchemaLoader instance used when constructing EventStreams.
- EventSchemaLoader.Builder - Class in org.wikimedia.eventutilities.core.event
-
- EventSchemaValidator - Class in org.wikimedia.eventutilities.core.event
-
Utility class to validate events against their schema.
- EventSchemaValidator(EventSchemaLoader) - Constructor for class org.wikimedia.eventutilities.core.event.EventSchemaValidator
-
- eventServiceName() - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Gets this EventStream's destination_event_service name.
- eventServiceToUriMap - Variable in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Maps event service name to a service URL.
- eventServiceToUriMap(Map<String, URI>) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig.EventUtilitiesConfigBuilder
-
Mapping of service to port, used to route HTTP traffic through SSL
tunnels.
- eventServiceUri() - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Returns the (discovery) URL to which events belonging to this EventStream should be POSTed.
- eventServiceUri(String) - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Returns the datacenter specific event service URL to which events belonging to
this EventStream should be POSTed.
- eventsToArrayNode(List<ObjectNode>) - Static method in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Given a List of ObjectNodes, returns an ArrayNode of those ObjectNodes.
- EventStream - Class in org.wikimedia.eventutilities.core.event
-
Represents a single event stream.
- EventStream(String, EventSchemaLoader, EventStreamConfig) - Constructor for class org.wikimedia.eventutilities.core.event.EventStream
-
Consider using EventStreamFactory.createEventStream instead.
- eventStreamConfig - Variable in class org.wikimedia.eventutilities.core.event.EventStream
-
EventStreamConfig instance used to lookup stream config settings for this stream.
- EventStreamConfig - Class in org.wikimedia.eventutilities.core.event
-
Class to fetch and work with stream configuration from the a URI.
- EventStreamConfig(EventStreamConfigLoader, Map<String, URI>) - Constructor for class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
EventStreamConfig constructor.
- eventStreamConfig - Variable in class org.wikimedia.eventutilities.core.event.EventStreamFactory
-
EventStreamConfig instance used when constructing EventStreams and
looking up stream configs.
- eventStreamConfig(EventStreamConfig) - Method in class org.wikimedia.eventutilities.core.event.JsonEventGenerator.Builder
-
- EventStreamConfig.Builder - Class in org.wikimedia.eventutilities.core.event
-
Builder, builder pattern to construct
EventStreamConfig instances.
- eventStreamConfigEndpoint(String) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig.EventUtilitiesConfigBuilder
-
In production, the mediawiki internal api endpoint needs the Host header
set to the MediaWiki API that should be accessed.
- eventStreamConfigLoader - Variable in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Used to load stream config at instantiation and on demand.
- EventStreamConfigLoader - Class in org.wikimedia.eventutilities.core.event
-
Abstract class to load event stream config.
- EventStreamConfigLoader() - Constructor for class org.wikimedia.eventutilities.core.event.EventStreamConfigLoader
-
- eventStreamConfigUri(String) - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig.EventUtilitiesConfigBuilder
-
MediaWiki EventStreamConfig API used in WMF production to use to fetch stream configs.
- EventStreamFactory - Class in org.wikimedia.eventutilities.core.event
-
- EventStreamFactory(EventSchemaLoader, EventStreamConfig) - Constructor for class org.wikimedia.eventutilities.core.event.EventStreamFactory
-
Constructs a new instance of EventStreamFactory.
- eventStreamFactory - Variable in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
EventStreamFactory instance used when constructing EventStreams.
- EventStreamFactory.Builder - Class in org.wikimedia.eventutilities.core.event
-
Builder builder pattern to construct EventStreamFactory instance.
- eventTime(Instant) - Static method in interface org.wikimedia.eventutilities.core.event.EventNormalizationStep
-
Set the event time (dt) if not already set.
- EventUtilitiesConfig - Class in org.wikimedia.eventutilities.core.event
-
Configuration for Event Utilities.
- EventUtilitiesConfig.EventUtilitiesConfigBuilder - Class in org.wikimedia.eventutilities.core.event
-
- EventUtilitiesFactory - Class in org.wikimedia.eventutilities.core.event
-
- EventUtilitiesFactory(EventUtilitiesConfig) - Constructor for class org.wikimedia.eventutilities.core.event.EventUtilitiesFactory
-
- exampleEvent() - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Gets the schema for stream and returns the first element in its JSONSchema examples.
- exampleEvent(String) - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Gets the schema for stream and returns the first element in its JSONSchema examples.
- exception - Variable in class org.wikimedia.eventutilities.core.http.BasicHttpResult
-
If a local IOException was encountered, this will be set to it.
- EXTERNAL_DEFAULT - Static variable in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
Default values and instances to aide working with Event Streams in
Wikimedia outside of production networks, e.g.
- extractSchemaUri(JsonNode) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Extracts the value at schemaFieldPointer from the event as a URI.
- generateEvent(Consumer<ObjectNode>, Instant) - Method in interface org.wikimedia.eventutilities.core.event.JsonEventGenerator.EventNormalizer
-
- generateEvent(String, String, Consumer<ObjectNode>, Instant) - Method in class org.wikimedia.eventutilities.core.event.JsonEventGenerator
-
Generates an json event calling the supplier eventData.
- generateEvent(String, String, Consumer<ObjectNode>, Instant, boolean) - Method in class org.wikimedia.eventutilities.core.event.JsonEventGenerator
-
Generates a json event calling the supplier eventData.
- get(URI, IntPredicate) - Method in class org.wikimedia.eventutilities.core.http.BasicHttpClient
-
Performs a GET request at URI and returns a BasicHttpResult.
- get(URI) - Method in class org.wikimedia.eventutilities.core.http.BasicHttpClient
-
Performs a GET request at URI and returns a BasicHttpResult accepting any 2xx status as a success.
- getAllCachedTopics() - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Get all topics settings for all known streams.
- getAllCanaryEventsToPost() - Method in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Gets canary events to POST for all streams that EventStreamConfig knows about.
- getAsBytes(URI) - Method in class org.wikimedia.eventutilities.core.http.BasicHttpClient
-
Performs a GET request and returns the response body as a byte[].
- getBody() - Method in class org.wikimedia.eventutilities.core.http.BasicHttpResult
-
Returns a copy of the byte[] response body.
- getBodyAsString() - Method in class org.wikimedia.eventutilities.core.http.BasicHttpResult
-
- getCanaryEventsToPost(String) - Method in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Gets canary events to POST for a single stream.
- getCanaryEventsToPost(String, DateTime) - Method in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Gets canary events to POST for a single stream.
- getCanaryEventsToPost(List<String>) - Method in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Gets canary events to POST for a List of stream names.
- getCanaryEventsToPost(List<String>, DateTime) - Method in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Gets canary events to POST for a List of stream names.
- getCanaryEventsToPostForStreams(List<EventStream>, DateTime) - Method in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Given a list of streams and a timestamp, this will return a map of
datacenter specific event service URIs to a list of canary
events that should be POSTed to that event service.
- getClock() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
Clock used for various time based operations and timestamp creation.
- getContent() - Method in class org.wikimedia.eventutilities.core.http.JsonHttpEntity
-
- getContentLength() - Method in class org.wikimedia.eventutilities.core.http.JsonHttpEntity
-
- getContentType() - Method in class org.wikimedia.eventutilities.core.http.JsonHttpEntity
-
- getDescription() - Method in class org.wikimedia.eventutilities.core.event.types.SchemaConversions.RowField
-
- getEventJsonSchema(String) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Given a JSON event, get its schema URI,
and load and return schema for the event as a JsonSchema (suited for validation).
- getEventJsonSchema(JsonNode) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Given a JSON event, get its schema URI,
and load and return schema for the event as a JsonSchema (suited for validation).
- getEventLoggingSchema(String) - Method in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
Given an EventLogging schema name , this will get the
latest schema revision from EVENTLOGGING_SCHEMA_BASE_URI and encapsulate it.
- getEventLoggingSchema(String, Integer) - Method in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
Given an EventLogging event schema name and revision, this will get the
schema from EVENTLOGGING_SCHEMA_BASE_URI and encapsulate it.
- getEventloggingSchemaBaseUri() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
URI from which to get legacy EventLogging on wiki schemas.
- getEventloggingSchemaLoader() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesFactory
-
- getEventSchema(JsonNode) - Method in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
Given an EventLogging event object, this extracts its schema name at /schema
and uses it to get the latest EventLogging schema.
- getEventSchema(String) - Method in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
Given an EventLogging json event string, this parses it to a JsonNode and then
extracts its schema name at /schema and uses it to get the latest EventLogging schema.
- getEventSchema(JsonNode) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Given an event object, this extracts its schema URI at schemaField
(prefixed with baseURI) and returns the schema there.
- getEventSchema(String) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Given a JSON event string, get its schema URI,
and load and return schema for the event.
- getEventSchemaBaseUris() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
- getEventSchemaLoader() - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory
-
Returns the EventSchemaLoader instance this EventStreamFactory is using.
- getEventSchemaLoader() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesFactory
-
- getEventSchemaUri(JsonNode) - Method in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
Returns the latest EventLogging schema URI for this event.
- getEventSchemaValidator() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesFactory
-
- getEventServiceName(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Gets the destination_event_service name for the specified stream.
- getEventServiceToUriMap() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
Mapping of service to port, used to route HTTP traffic through SSL
tunnels.
- getEventServiceUri(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Gets the default event service URI for this stream via the EVENT_SERVICE_SETTING.
- getEventServiceUri(String, String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Gets a datacenter specific destination event service URI for this stream
via the EVENT_SERVICE_SETTING + the datacenter name.
- getEventServiceUriByServiceName(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Gets the event service POST URI of an event service.
- getEventStreamConfig() - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory
-
Returns the EventStreamConfig instance this EventStreamFactory is using.
- getEventStreamConfig() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesFactory
-
- getEventStreamConfigEndpoint() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
In production, the mediawiki internal api endpoint needs the Host header
set to the MediaWiki API that should be accessed.
- getEventStreamConfigUri() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesConfig
-
MediaWiki EventStreamConfig API used in WMF production to use to fetch stream configs.
- getEventStreamFactory() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesFactory
-
- getEventStreamFactory() - Method in class org.wikimedia.eventutilities.monitoring.CanaryEventProducer
-
Returns the EventStreamFactory this CanaryEventProducer is using.
- getException() - Method in class org.wikimedia.eventutilities.core.http.BasicHttpResult
-
- getHttpClient() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesFactory
-
- getJsonEventGenerator() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesFactory
-
- getJsonLoader() - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
- getJsonLoader() - Method in class org.wikimedia.eventutilities.core.json.JsonSchemaLoader
-
Return the underlying JsonLoader.
- getJsonMapper() - Method in class org.wikimedia.eventutilities.core.event.JsonEventGenerator
-
- getJsonNode(ObjectNode, String, String) - Static method in class org.wikimedia.eventutilities.core.event.types.JsonSchemaConverter
-
DRY helper function to get a JsonNode out of an ObjectNode by key,
throwing IllegalArgumentException if the key does not exist, or is set to "null".
- getJsonSchema(JsonNode) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Given a json schema parsed as a JsonNode materialize JsonSchema suited for validation.
- getJsonSchemaType(ObjectNode) - Static method in class org.wikimedia.eventutilities.core.event.types.JsonSchemaConverter
-
DRY helper function to extract the JSONSchema "type".
- getLatestEventSchema(JsonNode) - Method in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
- getLatestEventSchema(String) - Method in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
- getLatestEventSchema(JsonNode) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Given an event object, this extracts its schema URI at schemaField
(prefixed with baseURI) and resolves it to the latest schema URI and returns
the schema there.
- getLatestEventSchema(String) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Given a JSON event string, get its schema URI,
and load and return latest schema for the event.
- getLatestSchema(URI) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Get a 'latest' JsonSchema given a schema URI looking in all baseUris.
- getLatestSchemaUri(URI) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Converts the given schemaUri to a 'latest' schema URI.
- getLatestSchemaUri(JsonNode) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Extracts the event's schema URI and converts it to a latest schema URI.
- getLatestVersionFileName() - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
- getMediawikiEventStreamConfigLoader() - Method in class org.wikimedia.eventutilities.core.event.EventUtilitiesFactory
-
- getMessage() - Method in class org.wikimedia.eventutilities.core.http.BasicHttpResult
-
- getMessageKeyFields(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Get the Kafka message key fields for a given stream.
- getName() - Method in class org.wikimedia.eventutilities.core.event.types.SchemaConversions.RowField
-
- getObjectMapper() - Method in interface org.wikimedia.eventutilities.core.event.JsonEventGenerator.EventNormalizer
-
The object mapper this normalizer will use to generate json nodes.
- getOrSetMeta(ObjectNode) - Static method in interface org.wikimedia.eventutilities.core.event.EventNormalizationStep
-
- getPossibleResourceUris(URI) - Method in class org.wikimedia.eventutilities.core.util.ResourceLoader
-
If the uri is aboslute, or if no baseUris are set, the only possible
uri is the provided one.
- getResourceLoader() - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
- getResourceLoader() - Method in class org.wikimedia.eventutilities.core.json.JsonLoader
-
- getSchema(URI) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Get a JsonSchema at schemaUri looking in all baseUris.
- getSchemaTitle(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Get all topics settings for the a single stream.
- getSetting(String) - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Gets a setting from stream config for this stream.
- getSetting(String, String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Gets a stream config setting for a specific stream.
- getSettingAsString(String, String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Gets the stream config setting for a specific stream as a string.
- getStatus() - Method in class org.wikimedia.eventutilities.core.http.BasicHttpResult
-
- getStreamConfig(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Returns the stream config entry for a specific stream.
- getStreamConfigs(List<String>) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Gets the stream config entries for the desired stream names.
- getSuccess() - Method in class org.wikimedia.eventutilities.core.http.BasicHttpResult
-
- getTopics(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Get all topics settings for a single stream.
- getType() - Method in class org.wikimedia.eventutilities.core.event.types.SchemaConversions.RowField
-
- getUri() - Method in exception org.wikimedia.eventutilities.core.util.ResourceLoadingException
-
- LATEST_FILE_NAME - Static variable in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
When looking up latest schema versions, this will be used instead of a semver string.
- latestSchemaId() - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Gets the $id from the latest schema.
- latestSchemaURI(String) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Builds the URI to the latest schema using this title.
- latestSchemaVersion() - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Infers the latest schema version number from the schema's $id field.
- load(URI) - Method in class org.wikimedia.eventutilities.core.event.EventLoggingSchemaLoader
-
Given a URI to an EventLogging 'event' field (un-encapsulated) schema,
this will get the 'event' field schema at that URI, and then encapsulate
it.
- load(URI) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Returns the content at schemaURI as a JsonNode JSONSchema.
- load(List<String>) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfigLoader
-
Loads stream configs for the given stream names.
- load(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfigLoader
-
Loads stream configs for the given stream name.
- load() - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfigLoader
-
Loads stream configs for all streams.
- load(List<String>) - Method in class org.wikimedia.eventutilities.core.event.MediawikiEventStreamConfigLoader
-
EventStreamConfigLoader load implementation.
- load(List<String>) - Method in class org.wikimedia.eventutilities.core.event.StaticEventStreamConfigLoader
-
- load(URI) - Method in class org.wikimedia.eventutilities.core.json.JsonLoader
-
Given a schemaURI, this will request the JSON or YAML content at that URI and
parse it into a JsonNode.
- load(URI) - Method in class org.wikimedia.eventutilities.core.json.JsonSchemaLoader
-
Given a schemaUri, this will request the JSON or YAML content at that URI and
parse it into a JsonNode.
- load(URI) - Method in class org.wikimedia.eventutilities.core.util.ResourceLoader
-
Loads the resource at uri, potentially prefixing relative URIs with baseUrls.
- loadSchema(URI) - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Loads the schema at the relative schemaUri using our eventSchemaLoader.
- schema() - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Infers the latest relative schemaUri for the stream from its schema_title
stream config setting and fetches and returns the schema at that URI using eventSchemaLoader.
- schema(String) - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Get the version relative schemaUri for the stream from its schema_title
stream config setting and fetches and returns the schema at that URI using eventSchemaLoader.
- SCHEMA_FIELD - Static variable in class org.wikimedia.eventutilities.core.event.JsonEventGenerator
-
- SCHEMA_TITLE_SETTING - Static variable in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Stream Config setting name for schema title.
- SchemaConversions<T> - Interface in org.wikimedia.eventutilities.core.event.types
-
Interface for supported WMF Event Schema type conversions.
- SchemaConversions.RowField<T> - Class in org.wikimedia.eventutilities.core.event.types
-
Data Transfer Object wrapper for a 'row field' type.
- schemaFieldPointer - Variable in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Field in an event from which to extract the schema URI.
- schemaLoader - Variable in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
JsonSchemaLoader used to load schemas from URIs.
- schemaLoader(EventSchemaLoader) - Method in class org.wikimedia.eventutilities.core.event.JsonEventGenerator.Builder
-
- schemaTitle() - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Gets the JSONSchema title configured for this EventStream.
- schemaUri(String, String) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader
-
Builds the URI to the schema using this title and this version.
- schemaUri(String) - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Builds schema URI for stream based on WMF conventions.
- schemaUri() - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Builds a latest relative schema URI for stream based on WMF conventions.
- schemaValidation(ObjectNode, String) - Static method in interface org.wikimedia.eventutilities.core.event.EventNormalizationStep
-
Validates the event against the provided schema (must be the last step to apply).
- SerializableClock - Interface in org.wikimedia.eventutilities.core
-
A clock that is serializable.
- serializeAsBytes(ObjectNode) - Method in class org.wikimedia.eventutilities.core.event.JsonEventGenerator
-
Helper method to serialize the event as bytes.
- setBaseUrls(List<URL>) - Method in class org.wikimedia.eventutilities.core.util.ResourceLoader.Builder
-
Sets the baseUrls.
- setDefaultLoader(Function<URI, byte[]>) - Method in class org.wikimedia.eventutilities.core.util.ResourceLoader.Builder
-
Sets the default loader.
- setEventSchemaLoader(List<String>) - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory.Builder
-
- setEventSchemaLoader(EventSchemaLoader) - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory.Builder
-
- setEventServiceToUriMap(Map<String, URI>) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig.Builder
-
- setEventServiceToUriMap(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig.Builder
-
- setEventServiceToUriMap(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory.Builder
-
- setEventServiceToUriMap(Map<String, String>) - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory.Builder
-
- setEventStreamConfig(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory.Builder
-
- setEventStreamConfig(EventStreamConfig) - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory.Builder
-
- setEventStreamConfigLoader(EventStreamConfigLoader) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig.Builder
-
- setEventStreamConfigLoader(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig.Builder
-
- setHttpRoute(String, String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory.Builder
-
- setHttpRoutes(Map<String, String>) - Method in class org.wikimedia.eventutilities.core.event.EventStreamFactory.Builder
-
- setJsonLoader(JsonLoader) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig.Builder
-
- setJsonSchemaLoader(JsonSchemaLoader) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader.Builder
-
- setSchemaField(String) - Method in class org.wikimedia.eventutilities.core.event.EventSchemaLoader.Builder
-
Sets the schema field from which a schema URI will be extracted from events.
- StaticEventStreamConfigLoader - Class in org.wikimedia.eventutilities.core.event
-
Loads stream config once from a static URI.
- StaticEventStreamConfigLoader(URI, JsonLoader) - Constructor for class org.wikimedia.eventutilities.core.event.StaticEventStreamConfigLoader
-
Constructs a StaticEventStreamConfigLoader that loads from streamConfigUri using jsonLoader.
- staticStreamConfigs - Variable in class org.wikimedia.eventutilities.core.event.StaticEventStreamConfigLoader
-
- status - Variable in class org.wikimedia.eventutilities.core.http.BasicHttpResult
-
The HTTP response status code, or -1 if a local exception was encountered.
- streamAndSchema(String, String) - Static method in interface org.wikimedia.eventutilities.core.event.EventNormalizationStep
-
Forcibly set the stream (meta.stream) and the schema URI.
- streamConfigsCache - Variable in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Cached stream configurations.
- streamConfigUri - Variable in class org.wikimedia.eventutilities.core.event.StaticEventStreamConfigLoader
-
- streamExists(String) - Method in class org.wikimedia.eventutilities.core.event.EventStreamConfig
-
Returns true if the stream is declared in stream config.
- streamName - Variable in class org.wikimedia.eventutilities.core.event.EventStream
-
- streamName() - Method in class org.wikimedia.eventutilities.core.event.EventStream
-
Gets the stream name of this EventStream instance.
- success - Variable in class org.wikimedia.eventutilities.core.http.BasicHttpResult
-
If the HTTP request that caused this result was successful.