- gatherEndpoints(List<E>) - Method in class com.spotify.apollo.meta.MetaInfoTracker
-
- gatherIncomingCall(OngoingRequest, Endpoint) - Method in interface com.spotify.apollo.meta.IncomingCallsGatherer
-
- gatherOutgoingCall(String, Request) - Method in interface com.spotify.apollo.meta.OutgoingCallsGatherer
-
- getAverageTime() - Method in class com.spotify.apollo.test.experimental.ResponseTimeMetric
-
- getCloser() - Method in interface com.spotify.apollo.core.Service.Instance
-
Returns a
Closer
for convenience, where you can register
Closeable
s that should be closed when the application exits.
- getConfig() - Method in interface com.spotify.apollo.core.Service.Instance
-
Returns the configuration for this service instance.
- getConfig(String) - Method in interface com.spotify.apollo.environment.EnvironmentConfigResolver
-
- getDelayMillis() - Method in class com.spotify.apollo.test.response.ResponseWithDelay
-
- getDocString() - Method in class com.spotify.apollo.dispatch.EndpointInfo
-
- getExecutorService() - Method in interface com.spotify.apollo.core.Service.Instance
-
Returns a shared ListeningExecutorService
that has
virtually infinite capacity and that can be used for long-running jobs.
- getExtractionCount() - Method in class com.spotify.apollo.route.Rule
-
- getGatherer() - Method in class com.spotify.apollo.meta.MetaInfoTracker
-
- getId() - Method in class com.spotify.apollo.environment.ApolloEnvironmentModule
-
- getId() - Method in class com.spotify.apollo.http.client.HttpClientModule
-
- getId() - Method in class com.spotify.apollo.http.server.HttpServerModule
-
- getId() - Method in interface com.spotify.apollo.module.ApolloModule
-
Returns the id for this module.
- getId() - Method in class com.spotify.apollo.slack.SlackModule
-
- getIncomingCallsGatherer(String) - Method in class com.spotify.apollo.meta.model.DefaultMetaGatherer
-
- getIncomingCallsGatherer(String) - Method in interface com.spotify.apollo.meta.model.MetaGatherer
-
- getJavaMethodName() - Method in class com.spotify.apollo.dispatch.EndpointInfo
-
- getKey() - Method in enum com.spotify.apollo.core.Services.CommonConfigKeys
-
- getLifecycleManaged() - Method in class com.spotify.apollo.module.AbstractApolloModule
-
- getLifecycleManaged() - Method in interface com.spotify.apollo.module.ApolloModule
-
Returns the immutable, idempotently determined and stable set of injection keys that should be
bound to the service lifecycle; i.e.
- getMethods() - Method in class com.spotify.apollo.route.Rule
-
- getMethodsForValidRules(Request) - Method in class com.spotify.apollo.meta.ApplicationOrMetaRouter
-
- getMethodsForValidRules(Request) - Method in interface com.spotify.apollo.route.ApplicationRouter
-
Returns a collection of valid methods (such as GET and POST) for the URI of the provided
request.
- getMethodsForValidRules(Request) - Method in class com.spotify.apollo.route.RuleRouter
-
- getName() - Method in class com.spotify.apollo.dispatch.EndpointInfo
-
- getOutgoingCallsGatherer(String) - Method in class com.spotify.apollo.meta.model.DefaultMetaGatherer
-
- getOutgoingCallsGatherer(String) - Method in interface com.spotify.apollo.meta.model.MetaGatherer
-
- getPath() - Method in class com.spotify.apollo.route.Rule
-
- getPriority() - Method in class com.spotify.apollo.http.server.HttpServerModule
-
- getPriority() - Method in class com.spotify.apollo.module.AbstractApolloModule
-
- getPriority() - Method in interface com.spotify.apollo.module.ApolloModule
-
Returns the priority of this module relative to other modules.
- getPriority() - Method in class com.spotify.apollo.slack.SlackModule
-
- getReply() - Method in class com.spotify.apollo.test.FakeOngoingRequest
-
Get a future holding the reply.
- getRequestMethod() - Method in class com.spotify.apollo.dispatch.EndpointInfo
-
- getResponse() - Method in class com.spotify.apollo.test.response.ResponseWithDelay
-
- getRule() - Method in class com.spotify.apollo.route.RuleMatch
-
- getRuleTargets() - Method in class com.spotify.apollo.meta.ApplicationOrMetaRouter
-
- getRuleTargets() - Method in interface com.spotify.apollo.route.ApplicationRouter
-
Return a list of all target objects that this router handles.
- getRuleTargets() - Method in class com.spotify.apollo.route.RuleRouter
-
- getScheduledExecutorService() - Method in interface com.spotify.apollo.core.Service.Instance
-
Returns a shared ListeningScheduledExecutorService
that has capacity appropriate for scheduled jobs, i.e.
- getService() - Method in interface com.spotify.apollo.core.Service.Instance
-
Returns the service that this is an instance of.
- getServiceCallsGatherer() - Method in class com.spotify.apollo.meta.model.DefaultMetaGatherer
-
- getServiceCallsGatherer() - Method in interface com.spotify.apollo.meta.model.MetaGatherer
-
- getServiceName() - Method in interface com.spotify.apollo.core.Service
-
Returns the name of this service.
- getSignaller() - Method in interface com.spotify.apollo.core.Service.Instance
-
Returns a signaller that can be used to send signals to this service instance.
- getTarget() - Method in class com.spotify.apollo.route.Rule
-
- getUnprocessedArgs() - Method in interface com.spotify.apollo.core.Service.Instance
-
Returns the list of command-line arguments that were not recognized by Apollo, in order.
- getUri() - Method in class com.spotify.apollo.dispatch.EndpointInfo
-
- guavaToAsync(ListenableFutureHandler<T>) - Static method in interface com.spotify.apollo.route.Middleware
-
- rangeName() - Method in enum com.spotify.apollo.StatusType.Family
-
- rate - Variable in class com.spotify.apollo.test.experimental.ResponseTimeMetric.CallResult
-
- RawSerializer - Class in com.spotify.apollo.serialization
-
- RawSerializer() - Constructor for class com.spotify.apollo.serialization.RawSerializer
-
Deprecated.
- readMetaDescriptor(String, ClassLoader) - Static method in class com.spotify.apollo.meta.MetaDescriptor
-
- reasonPhrase() - Method in enum com.spotify.apollo.Status
-
- reasonPhrase() - Method in class com.spotify.apollo.Status.WithReasonPhrase
-
- reasonPhrase() - Method in interface com.spotify.apollo.StatusType
-
- register(OngoingRequest) - Method in class com.spotify.apollo.request.RequestTracker
-
- registerAutoRoute(Route<? extends AsyncHandler<?>>) - Method in interface com.spotify.apollo.Environment.RoutingEngine
-
- registerAutoRoutes(RouteProvider) - Method in interface com.spotify.apollo.Environment.RoutingEngine
-
- registerRoute(Route<? extends AsyncHandler<? extends Response<ByteString>>>) - Method in interface com.spotify.apollo.Environment.RoutingEngine
-
- registerRoutes(Stream<? extends Route<? extends AsyncHandler<? extends Response<ByteString>>>>) - Method in interface com.spotify.apollo.Environment.RoutingEngine
-
Registers routes.
- remove(OngoingRequest) - Method in class com.spotify.apollo.request.RequestTracker
-
- removedIn() - Method in interface com.spotify.apollo.route.VersionedRoute
-
The first version in which this route is no longer valid.
- removedIn(int) - Method in interface com.spotify.apollo.route.VersionedRoute
-
Return a com.spotify.apollo.route.VersionedRoute based on the current one, but removed in the specified version.
- reply(Response<ByteString>) - Method in class com.spotify.apollo.request.ForwardingOngoingRequest
-
- reply(Response<ByteString>) - Method in interface com.spotify.apollo.request.OngoingRequest
-
- reply(Response<ByteString>) - Method in class com.spotify.apollo.test.FakeOngoingRequest
-
- replyContentType(String) - Static method in class com.spotify.apollo.route.Middlewares
-
Middleware that adds the ability to set the response's Content-Type header to a defined
value.
- replyPayloadSchema - Variable in class com.spotify.apollo.meta.model.Model.EndpointInfo
-
- Request - Interface in com.spotify.apollo
-
Defines the data Apollo presents for an incoming request.
- request() - Method in class com.spotify.apollo.request.ForwardingOngoingRequest
-
- request() - Method in interface com.spotify.apollo.request.OngoingRequest
-
- request() - Method in interface com.spotify.apollo.RequestContext
-
Get the incoming request message.
- request() - Method in class com.spotify.apollo.test.FakeOngoingRequest
-
- request(Request) - Method in class com.spotify.apollo.test.ServiceHelper
-
Make a call to the running application and return a
CompletionStage
of the response.
- request(String, String) - Method in class com.spotify.apollo.test.ServiceHelper
-
Makes a call on the given uri.
- request(String, URI) - Method in class com.spotify.apollo.test.ServiceHelper
-
Makes a call on the given uri.
- request(String, String, ByteString) - Method in class com.spotify.apollo.test.ServiceHelper
-
Makes a call on the given uri.
- request(String, URI, ByteString) - Method in class com.spotify.apollo.test.ServiceHelper
-
Makes a call on the given uri.
- request() - Method in class com.spotify.apollo.test.StubClient.RequestResponsePair
-
- RequestContext - Interface in com.spotify.apollo
-
This object contains all the needed information related to an incoming request.
- RequestContexts - Class in com.spotify.apollo.request
-
- RequestContexts() - Constructor for class com.spotify.apollo.request.RequestContexts
-
- requestHandler(RequestRunnableFactory, EndpointRunnableFactory, IncomingRequestAwareClient) - Static method in class com.spotify.apollo.request.Handlers
-
- RequestHandler - Interface in com.spotify.apollo.request
-
A handler that will receive
OngoingRequest
objects that can be replied to.
- RequestMatchers - Class in com.spotify.apollo.test.unit
-
Provides Hamcrest matcher utilities for matching requests.
- requestPayloadSchema - Variable in class com.spotify.apollo.meta.model.Model.EndpointInfo
-
- RequestResponsePair() - Constructor for class com.spotify.apollo.test.StubClient.RequestResponsePair
-
- RequestRunnable - Interface in com.spotify.apollo.request
-
A runner for request that will handle matching the request against an
Endpoint
.
- requestRunnableFactory(ApplicationRouter<Endpoint>) - Static method in class com.spotify.apollo.request.Handlers
-
- RequestRunnableFactory - Interface in com.spotify.apollo.request
-
- RequestRunnableFactoryDecorator - Interface in com.spotify.apollo.environment
-
- requestsAndResponses() - Method in class com.spotify.apollo.test.StubClient
-
Returns all the requests sent to this stub client, together with their associated responses.
- requestScopedClient() - Method in interface com.spotify.apollo.RequestContext
-
Get an Apollo client that can be used to make backend service requests.
- RequestTracker - Class in com.spotify.apollo.request
-
- RequestTracker() - Constructor for class com.spotify.apollo.request.RequestTracker
-
- resetConf(String) - Method in class com.spotify.apollo.test.ServiceHelper
-
Reset a key in the configuration
- resolve(Class<T>) - Method in interface com.spotify.apollo.core.Service.Instance
-
Get an instance provided by one of the Apollo modules.
- resolve(Class<T>) - Method in interface com.spotify.apollo.environment.EnvironmentFactory.Resolver
-
- resolve(Class<T>) - Method in interface com.spotify.apollo.Environment
-
Resolves an instance of a class out of the underlying apollo-core module system.
- respond(Response<ByteString>) - Method in class com.spotify.apollo.test.StubClient
-
Configure a constant (i.e., all matching requests will always result in the same response)
response for some request.
- respond(ResponseSource) - Method in class com.spotify.apollo.test.StubClient
-
Configure a response source for matching requests.
- Response<T> - Interface in com.spotify.apollo
-
Defines the data Apollo needs to construct and send a response to an incoming request.
- response() - Method in class com.spotify.apollo.test.StubClient.RequestResponsePair
-
- ResponseMatchers - Class in com.spotify.apollo.test.unit
-
Provides Hamcrest matcher utilities for matching
Response
.
- Responses - Class in com.spotify.apollo.test.response
-
- ResponseSource - Interface in com.spotify.apollo.test.response
-
- ResponseTimeMetric - Class in com.spotify.apollo.test.experimental
-
- ResponseTimeMetric.CallResult - Class in com.spotify.apollo.test.experimental
-
- ResponseWithDelay - Class in com.spotify.apollo.test.response
-
- Result(T) - Constructor for class com.spotify.apollo.meta.MetaApplication.Result
-
- result - Variable in class com.spotify.apollo.meta.MetaApplication.Result
-
- Route<H> - Interface in com.spotify.apollo.route
-
The Route defines an endpoint to the service.
- route() - Method in interface com.spotify.apollo.route.VersionedRoute
-
Base route that should be mapped to some versions.
- Route.DocString - Class in com.spotify.apollo.route
-
- RouteMatchers - Class in com.spotify.apollo.test.unit
-
A matcher that will compare the method and URI.
- RouteMatchers() - Constructor for class com.spotify.apollo.test.unit.RouteMatchers
-
- RouteProvider - Interface in com.spotify.apollo.route
-
A programmatic way of defining
Route
s in an Apollo service.
- Routers - Class in com.spotify.apollo.route
-
- routes() - Method in class com.spotify.apollo.meta.MetaApplication
-
- routes() - Method in interface com.spotify.apollo.route.RouteProvider
-
- routingEngine() - Method in interface com.spotify.apollo.Environment
-
- Rule<T> - Class in com.spotify.apollo.route
-
Simple holder for a rule.
- RuleMatch<T> - Class in com.spotify.apollo.route
-
The result of matching a rule against an input string.
- RuleMatch(Rule<T>, Map<String, String>) - Constructor for class com.spotify.apollo.route.RuleMatch
-
- RuleRouter<T> - Class in com.spotify.apollo.route
-
- run(Service, String...) - Static method in class com.spotify.apollo.core.Services
-
- run(BiConsumer<OngoingRequest, RuleMatch<Endpoint>>) - Method in interface com.spotify.apollo.request.RequestRunnable
-
Do the matching and hand over the match to the given continuation
BiConsumer
.
- scheme(String) - Method in class com.spotify.apollo.test.ServiceHelper
-
Set the scheme to be used for relative request uris on this ServiceHelper instance.
- send(Request) - Method in interface com.spotify.apollo.Client
-
Send a Request and get an asynchronous Response as a CompletionStage.
- send(Request, Optional<Request>) - Method in interface com.spotify.apollo.environment.IncomingRequestAwareClient
-
Send a Request with an optional originating Request and get an asynchronous Response as a
CompletionStage.
- send(Request, Optional<Request>) - Method in class com.spotify.apollo.meta.OutgoingCallsGatheringClient
-
- send(Request) - Method in class com.spotify.apollo.test.StubClient
-
- sentRequests() - Method in class com.spotify.apollo.test.StubClient
-
Returns all the requests sent to this stub client.
- sequence(Iterable<ResponseWithDelay>) - Static method in class com.spotify.apollo.test.response.Responses
-
- serialize(Request, Object) - Method in class com.spotify.apollo.meta.JsonMetaSerializer
-
- serialize(String, T) - Static method in class com.spotify.apollo.route.HtmlSerializerMiddlewares
-
Call the template engine and return the result.
- serialize(Serializer) - Static method in class com.spotify.apollo.route.Middlewares
-
Middleware that applies the supplied serializer to the result of the inner handler,
changing the payload and optionally the Content-Type header.
- serialize(Request, Object) - Method in class com.spotify.apollo.serialization.AutoSerializer
-
Deprecated.
- serialize(Object) - Static method in class com.spotify.apollo.serialization.AutoSerializer
-
Deprecated.
- serialize(Request, Object) - Method in class com.spotify.apollo.serialization.JsonSerializer
-
Deprecated.
- serialize(Object) - Static method in class com.spotify.apollo.serialization.JsonSerializer
-
Deprecated.
- serialize(Request, Object) - Method in class com.spotify.apollo.serialization.RawSerializer
-
Deprecated.
- serialize(Object) - Static method in class com.spotify.apollo.serialization.RawSerializer
-
Deprecated.
- serialize(Request, Object) - Method in class com.spotify.apollo.serialization.StringSerializer
-
Deprecated.
- serialize(Object) - Static method in class com.spotify.apollo.serialization.StringSerializer
-
Deprecated.
- serialize(Request, Object) - Method in interface com.spotify.apollo.Serializer
-
Deprecated.
- Serializer - Interface in com.spotify.apollo
-
- Serializer.Payload - Interface in com.spotify.apollo
-
Deprecated.
- server(Service.Instance) - Static method in class com.spotify.apollo.http.server.HttpServerModule
-
- serverInfo() - Method in class com.spotify.apollo.request.ForwardingOngoingRequest
-
- serverInfo() - Method in interface com.spotify.apollo.request.OngoingRequest
-
Returns an identifier for the server where this request originated.
- ServerInfo - Interface in com.spotify.apollo.request
-
A value type containing information about a server that is listening to some
InetSocketAddress
.
- ServerInfos - Class in com.spotify.apollo.request
-
- Service - Interface in com.spotify.apollo.core
-
A service that is controlled by Apollo.
- service() - Method in interface com.spotify.apollo.Request
-
The calling service of the request, if known.
- Service.Builder - Interface in com.spotify.apollo.core
-
A builder for a new service.
- Service.Instance - Interface in com.spotify.apollo.core
-
A running service instance.
- Service.Signaller - Interface in com.spotify.apollo.core
-
A way of sending signals to a service instance.
- serviceClient() - Method in class com.spotify.apollo.test.ServiceHelper
-
Get a
Client
that allows to make requests to the service created by this helper
- ServiceHelper - Class in com.spotify.apollo.test
-
A JUnit TestRule
for running tests against an apollo service.
- serviceName() - Method in class com.spotify.apollo.meta.Descriptor
-
- Services - Class in com.spotify.apollo.core
-
- Services.CommonConfigKeys - Enum in com.spotify.apollo.core
-
- serviceUptime() - Method in interface com.spotify.apollo.meta.model.Model.MetaInfo
-
- setCallback(Function<ResponseTimeMetric.CallResult, Void>) - Method in class com.spotify.apollo.test.experimental.ResponseTimeMetric
-
- setDocstring(String) - Method in interface com.spotify.apollo.meta.model.MetaGatherer.CallsGatherer
-
- setDocstring(String) - Method in interface com.spotify.apollo.meta.model.MetaGatherer.EndpointGatherer
-
- setMethodName(String) - Method in interface com.spotify.apollo.meta.model.MetaGatherer.EndpointGatherer
-
- setMethods(List<String>) - Method in interface com.spotify.apollo.meta.model.MetaGatherer.EndpointGatherer
-
- setRequestContentType(String) - Method in interface com.spotify.apollo.meta.model.MetaGatherer.EndpointGatherer
-
- setResponseContentType(String) - Method in interface com.spotify.apollo.meta.model.MetaGatherer.EndpointGatherer
-
- setUri(String) - Method in interface com.spotify.apollo.meta.model.MetaGatherer.EndpointGatherer
-
- signalShutdown() - Method in interface com.spotify.apollo.core.Service.Signaller
-
Signals the associated service instance to shut down, if it is still running.
- Slack - Interface in com.spotify.apollo.slack
-
- SlackModule - Class in com.spotify.apollo.slack
-
- SlackModule() - Constructor for class com.spotify.apollo.slack.SlackModule
-
- socketAddress() - Method in interface com.spotify.apollo.request.ServerInfo
-
- spNode() - Method in interface com.spotify.apollo.meta.model.Model.LoadedConfig
-
- start(String...) - Method in interface com.spotify.apollo.core.Service
-
Starts a new instance of this service that is fully initialized.
- start(String[], Map<String, String>) - Method in interface com.spotify.apollo.core.Service
-
Starts a new instance of this service that is fully initialized.
- start(String[], Config) - Method in interface com.spotify.apollo.core.Service
-
Starts a new instance of this service that is fully initialized.
- start(RequestHandler) - Method in interface com.spotify.apollo.http.server.HttpServer
-
- start() - Method in class com.spotify.apollo.test.ServiceHelper
-
Starts the service, blocking for maximum timeoutSeconds
until it has come up.
- startTimeoutSeconds(int) - Method in class com.spotify.apollo.test.ServiceHelper
-
Set the time to wait for the service to start before giving up.
- status() - Method in interface com.spotify.apollo.Response
-
The status of the response message.
- Status - Enum in com.spotify.apollo
-
Lists more-or-less common status codes, taken from
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html.
- Status.WithReasonPhrase - Class in com.spotify.apollo
-
- StatusType - Interface in com.spotify.apollo
-
Definition of a type for HTTP status codes.
- StatusType.Family - Enum in com.spotify.apollo
-
Defines classes of status codes as described in
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html, using the name Family since 'class'
is overloaded in Java.
- StatusTypeMatchers - Class in com.spotify.apollo.test.unit
-
Provides Hamcrest matcher utilities for matching
StatusType
.
- StringSerializer - Class in com.spotify.apollo.serialization
-
- StringSerializer() - Constructor for class com.spotify.apollo.serialization.StringSerializer
-
Deprecated.
- stubClient() - Method in class com.spotify.apollo.test.ServiceHelper
-
A
StubClient
that can be used to mock outgoing application request responses.
- StubClient - Class in com.spotify.apollo.test
-
A stub (http://www.martinfowler.com/articles/mocksArentStubs.html) client that allows you to
preconfigure responses to certain messages, as well as verify whether expected messages are sent.
- StubClient() - Constructor for class com.spotify.apollo.test.StubClient
-
- StubClient(ScheduledExecutorService) - Constructor for class com.spotify.apollo.test.StubClient
-
- StubClient.NoMatchingResponseFoundException - Exception in com.spotify.apollo.test
-
- StubClient.RequestResponsePair - Class in com.spotify.apollo.test
-
- StubClient.StubbedResponseBuilder - Class in com.spotify.apollo.test
-
Immutable response builder.
- success - Variable in class com.spotify.apollo.test.experimental.ResponseTimeMetric.CallResult
-
- summary() - Method in class com.spotify.apollo.route.Route.DocString
-
- sync(String, String, SyncHandler<T>) - Static method in interface com.spotify.apollo.route.Route
-
- SyncHandler<T> - Interface in com.spotify.apollo.route
-
Synchronous endpoint handler.
- syncToAsync(SyncHandler<T>) - Static method in interface com.spotify.apollo.route.Middleware
-
- systemVersion() - Method in interface com.spotify.apollo.meta.model.Model.MetaInfo
-
- validFrom() - Method in interface com.spotify.apollo.route.VersionedRoute
-
The first version in which this route is valid
- validFrom(int) - Method in interface com.spotify.apollo.route.VersionedRoute
-
Return a com.spotify.apollo.route.VersionedRoute based on the current one, but valid from the specified version.
- valueOf(String) - Static method in enum com.spotify.apollo.core.Services.CommonConfigKeys
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.spotify.apollo.Status
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.spotify.apollo.StatusType.Family
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.spotify.apollo.core.Services.CommonConfigKeys
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.spotify.apollo.Status
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.spotify.apollo.StatusType.Family
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- version() - Method in class com.spotify.apollo.meta.Descriptor
-
- VersionedRoute - Interface in com.spotify.apollo.route
-
Defines a possibly open-ended range of versions in which a particular Route should be available.
- Versions - Class in com.spotify.apollo.route
-
Allows you to expand a stream of VersionedRoutes to a stream of Routes.
- Versions(int, int) - Constructor for class com.spotify.apollo.route.Versions
-
- Versions.NeedsTo - Class in com.spotify.apollo.route
-