Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractApplication - Class in com.yahoo.jdisc.application
-
This class is a convenient parent class for
Application
developers that require simple access to the most commonly used jDISC APIs. - AbstractApplication(BundleInstaller, ContainerActivator, CurrentContainer) - Constructor for class com.yahoo.jdisc.application.AbstractApplication
- AbstractClientApplication - Class in com.yahoo.jdisc.client
-
This is a convenient parent class for
ClientApplication
developers. - AbstractClientApplication(BundleInstaller, ContainerActivator, CurrentContainer) - Constructor for class com.yahoo.jdisc.client.AbstractClientApplication
- AbstractClientProvider - Class in com.yahoo.jdisc.service
-
This is a convenient parent class for
ClientProvider
with default implementations for all but the essentialRequestHandler.handleRequest(Request, ResponseHandler)
method. - AbstractClientProvider() - Constructor for class com.yahoo.jdisc.service.AbstractClientProvider
- AbstractRequestHandler - Class in com.yahoo.jdisc.handler
-
This class provides an abstract
RequestHandler
implementation with reasonable defaults for everything butRequestHandler.handleRequest(Request, ResponseHandler)
. - AbstractRequestHandler() - Constructor for class com.yahoo.jdisc.handler.AbstractRequestHandler
- AbstractResource - Class in com.yahoo.jdisc
-
This class provides a thread-safe implementation of the
SharedResource
interface, and should be used for all subclasses ofRequestHandler
,ClientProvider
andServerProvider
. - AbstractResource() - Constructor for class com.yahoo.jdisc.AbstractResource
- AbstractServerProvider - Class in com.yahoo.jdisc.service
-
This is a convenient parent class for
ServerProvider
with default implementations for all but the essentialServerProvider.start()
andServerProvider.close()
methods. - AbstractServerProvider(CurrentContainer) - Constructor for class com.yahoo.jdisc.service.AbstractServerProvider
- ACCEPTED - Static variable in interface com.yahoo.jdisc.Response.Status
- activate() - Method in class com.yahoo.jdisc.application.BindingRepository
-
Creates and returns an immutable
BindingSet
that contains the bindings of this BindingRepository. - activate() - Method in class com.yahoo.jdisc.application.GuiceRepository
- activate() - Method in class com.yahoo.jdisc.application.ServerRepository
- activateClientBindings() - Method in class com.yahoo.jdisc.application.ContainerBuilder
- activateContainer(ContainerBuilder) - Method in class com.yahoo.jdisc.application.AbstractApplication
- activateContainer(ContainerBuilder) - Method in interface com.yahoo.jdisc.application.ContainerActivator
-
Creates and activates a
Container
based on the providedContainerBuilder
. - activateContainer(ContainerBuilder) - Method in class com.yahoo.jdisc.core.ApplicationLoader
- activateContainer(ContainerBuilder) - Method in class com.yahoo.jdisc.test.TestDriver
-
Returns the deactivated container, with its container reference already released.
- activateServerBindings() - Method in class com.yahoo.jdisc.application.ContainerBuilder
- ActiveContainer - Class in com.yahoo.jdisc.core
- ActiveContainer(ContainerBuilder) - Constructor for class com.yahoo.jdisc.core.ActiveContainer
- add(String, Number, Metric.Context) - Method in interface com.yahoo.jdisc.application.MetricConsumer
-
Consume a call to
Metric.add(String, Number, Metric.Context)
. - add(String, Number, Metric.Context) - Method in interface com.yahoo.jdisc.Metric
-
Add to a metric value.
- add(String, Number, Metric.Context) - Method in class com.yahoo.jdisc.test.MockMetric
- add(String, String) - Method in class com.yahoo.jdisc.HeaderFields
-
Adds the given value to the entry of the specified key.
- add(String, List<String>) - Method in class com.yahoo.jdisc.HeaderFields
-
Adds the given values to the entry of the specified key.
- add(T) - Method in class com.yahoo.jdisc.application.ResourcePool
-
Adds the given
SharedResource
to this ResourcePool. - addAll(Map<? extends String, ? extends List<String>>) - Method in class com.yahoo.jdisc.HeaderFields
-
Adds all the entries of the given map to this.
- addListener(Runnable, Executor) - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
- addListener(Runnable, Executor) - Method in class com.yahoo.jdisc.handler.FastContentWriter
- addListener(Runnable, Executor) - Method in class com.yahoo.jdisc.handler.FutureCompletion
- addListener(Runnable, Executor) - Method in class com.yahoo.jdisc.handler.FutureResponse
- addListener(Runnable, Executor) - Method in class com.yahoo.jdisc.handler.RequestDispatch
- advance(Duration) - Method in class com.yahoo.jdisc.test.TestTimer
- advanceMillis(long) - Method in class com.yahoo.jdisc.test.TestTimer
- advanceMinutes(long) - Method in class com.yahoo.jdisc.test.TestTimer
- advanceSeconds(long) - Method in class com.yahoo.jdisc.test.TestTimer
- allowDuplicateBundles(Collection<Bundle>) - Method in interface com.yahoo.jdisc.application.OsgiFramework
-
Allows this framework to install duplicates of the given collection of bundles.
- allowDuplicateBundles(Collection<Bundle>) - Method in class com.yahoo.jdisc.core.FelixFramework
- allowDuplicateBundles(Collection<Bundle>) - Method in class com.yahoo.jdisc.test.NonWorkingOsgiFramework
- appContext() - Method in class com.yahoo.jdisc.application.ContainerBuilder
- appContext() - Method in interface com.yahoo.jdisc.application.DeactivatedContainer
-
Returns the context object that was previously attached to the corresponding
ContainerBuilder
through theContainerBuilder.setAppContext(Object)
method. - appContext() - Method in class com.yahoo.jdisc.core.ContainerTermination
- application() - Method in class com.yahoo.jdisc.core.ApplicationLoader
- application() - Method in class com.yahoo.jdisc.test.TestDriver
-
Returns the
Application
loaded by this TestDriver. - Application - Interface in com.yahoo.jdisc.application
-
This interface defines the API of the singleton Application that runs in a jDISC instance.
- APPLICATION - Static variable in class com.yahoo.jdisc.application.OsgiHeader
- ApplicationLoader - Class in com.yahoo.jdisc.core
- ApplicationLoader(OsgiFramework, Iterable<? extends Module>) - Constructor for class com.yahoo.jdisc.core.ApplicationLoader
- ApplicationNotReadyException - Exception in com.yahoo.jdisc.application
-
This exception is used to signal that no
Application
has been configured. - ApplicationNotReadyException() - Constructor for exception com.yahoo.jdisc.application.ApplicationNotReadyException
-
Constructs a new instance of this class with a detail message.
- asList(Bundle, String) - Static method in class com.yahoo.jdisc.application.OsgiHeader
-
This method reads the named header from the manifest of the given bundle, and parses it as a comma-separated list of values.
- available() - Method in class com.yahoo.jdisc.handler.ReadableContentChannel
-
Returns a lower-bound estimate on the number of bytes available to be
ReadableContentChannel.read()
without blocking. - available() - Method in class com.yahoo.jdisc.handler.UnsafeContentInputStream
- awaitClose(long, TimeUnit) - Method in class com.yahoo.jdisc.test.TestDriver
-
Waits for shut down of this TestDriver to complete.
- awaitShutdown() - Method in class com.yahoo.jdisc.client.AbstractClientApplication
- awaitShutdown(int, TimeUnit) - Method in class com.yahoo.jdisc.client.AbstractClientApplication
- awaitTermination() - Method in class com.yahoo.jdisc.application.AbstractApplication
- awaitTermination(int, TimeUnit) - Method in class com.yahoo.jdisc.application.AbstractApplication
B
- BAD_GATEWAY - Static variable in interface com.yahoo.jdisc.Response.Status
- BAD_REQUEST - Static variable in interface com.yahoo.jdisc.Response.Status
-
4xx: Client Error - The request contains bad syntax or cannot be fulfilled.
- bind(String, T) - Method in class com.yahoo.jdisc.application.BindingRepository
-
Creates a
UriPattern
from the given pattern string, and callsBindingRepository.put(UriPattern, Object)
. - bindAll(Map<String, T>) - Method in class com.yahoo.jdisc.application.BindingRepository
-
Convenient method for calling
BindingRepository.bind(String, Object)
for all entries in a collection of bindings. - BindingMatch<T> - Class in com.yahoo.jdisc.application
-
This class holds the result of a
BindingSet.match(URI)
operation. - BindingMatch(UriPattern.Match, T, UriPattern) - Constructor for class com.yahoo.jdisc.application.BindingMatch
-
Constructs a new instance of this class.
- BindingNotFoundException - Exception in com.yahoo.jdisc.handler
- BindingNotFoundException(URI) - Constructor for exception com.yahoo.jdisc.handler.BindingNotFoundException
-
Constructs a new instance of this class with a detail message that contains the
URI
that has no binding. - BindingRepository<T> - Class in com.yahoo.jdisc.application
-
This is a mutable repository of bindings from
UriPattern
s to some target type T. - BindingRepository() - Constructor for class com.yahoo.jdisc.application.BindingRepository
- bindingSet() - Method in exception com.yahoo.jdisc.service.BindingSetNotFoundException
-
Returns the name of the
BindingSet
that was not found. - BindingSet<T> - Class in com.yahoo.jdisc.application
-
This is an immutable set of ordered bindings from
UriPattern
s to some target type T. - BindingSetNotFoundException - Exception in com.yahoo.jdisc.service
-
This exception is used to signal that a named
BindingSet
was not found. - BindingSetNotFoundException(String) - Constructor for exception com.yahoo.jdisc.service.BindingSetNotFoundException
-
Constructs a new instance of this class with a detail message that contains the name of the
BindingSet
that was not found. - BindingSetSelector - Interface in com.yahoo.jdisc.application
-
This interface defines the component that is used by the
CurrentContainer
to assign aBindingSet
to a newly createdContainer
based on the givenURI
. - BlockingContentWriter - Class in com.yahoo.jdisc.handler
-
This class provides a blocking write-interface to a
ContentChannel
. - BlockingContentWriter(ContentChannel) - Constructor for class com.yahoo.jdisc.handler.BlockingContentWriter
-
Creates a new BlockingContentWriter that encapsulates a given
ContentChannel
. - bootstrapLoader() - Method in class com.yahoo.jdisc.test.TestDriver
-
Returns the
BootstrapLoader
used by this TestDriver. - BootstrapLoader - Interface in com.yahoo.jdisc.core
- BsnVersion - Record Class in com.yahoo.jdisc.application
-
A bundle's symbolic name and version.
- BsnVersion(String, Version) - Constructor for record class com.yahoo.jdisc.application.BsnVersion
-
Creates an instance of a
BsnVersion
record class. - BsnVersion(Bundle) - Constructor for record class com.yahoo.jdisc.application.BsnVersion
- BufferedContentChannel - Class in com.yahoo.jdisc.handler
-
This class implements an unlimited, non-blocking content queue.
- BufferedContentChannel() - Constructor for class com.yahoo.jdisc.handler.BufferedContentChannel
- BUFFERSIZE - Static variable in class com.yahoo.jdisc.handler.FastContentOutputStream
- BundleCollisionHook - Class in com.yahoo.jdisc.core
-
A bundle
CollisionHook
that contains a set of bundles that are allowed to collide with bundles that are about to be installed. - BundleCollisionHook() - Constructor for class com.yahoo.jdisc.core.BundleCollisionHook
- bundleContext() - Method in interface com.yahoo.jdisc.application.OsgiFramework
-
Returns the BundleContext of this framework's system bundle.
- bundleContext() - Method in class com.yahoo.jdisc.core.FelixFramework
- bundleContext() - Method in class com.yahoo.jdisc.test.NonWorkingOsgiFramework
- BundleInstallationException - Exception in com.yahoo.jdisc.application
-
This exception is thrown by
OsgiFramework.installBundle(String)
if installation failed. - BundleInstallationException(Collection<Bundle>, Throwable) - Constructor for exception com.yahoo.jdisc.application.BundleInstallationException
- BundleInstaller - Class in com.yahoo.jdisc.application
-
This is a utility class to help with installing, starting, stopping and uninstalling OSGi Bundles.
- BundleInstaller(OsgiFramework) - Constructor for class com.yahoo.jdisc.application.BundleInstaller
- bundles() - Method in interface com.yahoo.jdisc.application.OsgiFramework
-
Returns an iterable collection of all installed bundles.
- bundles() - Method in class com.yahoo.jdisc.core.FelixFramework
- bundles() - Method in class com.yahoo.jdisc.test.NonWorkingOsgiFramework
C
- call() - Method in class com.yahoo.jdisc.handler.CallableRequestDispatch
- call() - Method in class com.yahoo.jdisc.handler.CallableResponseDispatch
- CallableRequestDispatch - Class in com.yahoo.jdisc.handler
-
This is a convenient subclass of
RequestDispatch
that implements theCallable
interface. - CallableRequestDispatch() - Constructor for class com.yahoo.jdisc.handler.CallableRequestDispatch
- CallableResponseDispatch - Class in com.yahoo.jdisc.handler
-
This is a convenient subclass of
ResponseDispatch
that implements theCallable
interface. - CallableResponseDispatch(ResponseHandler) - Constructor for class com.yahoo.jdisc.handler.CallableResponseDispatch
-
Constructs a new instances of this class over the given
ResponseHandler
. - cancel() - Method in class com.yahoo.jdisc.Request
-
Mark this request as cancelled and frees any resources held by the request if possible.
- cancel(boolean) - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
- cancel(boolean) - Method in class com.yahoo.jdisc.handler.FastContentWriter
- cancel(boolean) - Method in class com.yahoo.jdisc.handler.FutureCompletion
- cancel(boolean) - Method in class com.yahoo.jdisc.handler.FutureResponse
- cancel(boolean) - Method in class com.yahoo.jdisc.handler.RequestDispatch
- cancel(boolean) - Method in class com.yahoo.jdisc.handler.ResponseDispatch
- clear() - Method in class com.yahoo.jdisc.application.BindingRepository
-
Removes all bindings from this repository.
- clear() - Method in class com.yahoo.jdisc.HeaderFields
- ClientApplication - Interface in com.yahoo.jdisc.client
-
This interface extends the
Application
interface, and is intended to be used with theClientDriver
to implement stand-alone client applications on top of jDISC. - clientBindings() - Method in class com.yahoo.jdisc.application.ContainerBuilder
- clientBindings() - Method in class com.yahoo.jdisc.core.ActiveContainer
- clientBindings(String) - Method in class com.yahoo.jdisc.application.ContainerBuilder
- clientBindings(String) - Method in class com.yahoo.jdisc.core.ActiveContainer
- ClientDriver - Class in com.yahoo.jdisc.client
-
This class provides a unified way to set up and run a
ClientApplication
. - ClientDriver() - Constructor for class com.yahoo.jdisc.client.ClientDriver
- ClientProvider - Interface in com.yahoo.jdisc.service
-
This interface defines a component that is capable of acting as a client to an external server.
- close() - Method in interface com.yahoo.jdisc.application.DeactivatedContainer
-
Close this DeactivatedContainer.
- close() - Method in class com.yahoo.jdisc.application.ResourcePool
- close() - Method in class com.yahoo.jdisc.core.ContainerTermination
- close() - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
- close() - Method in class com.yahoo.jdisc.handler.BlockingContentWriter
-
Closes the underlying
ContentChannel
and waits for the operation to complete. - close() - Method in class com.yahoo.jdisc.handler.FastContentWriter
-
Closes the underlying
ContentChannel
. - close() - Method in class com.yahoo.jdisc.handler.UnsafeContentInputStream
- close() - Method in interface com.yahoo.jdisc.refcount.DestructableResource
-
Wrapper to allow access to protected AbstractResource.destroy()
- close() - Method in class com.yahoo.jdisc.ReferencedResource
- close() - Method in interface com.yahoo.jdisc.ResourceReference
-
Decrements the reference count of the referenced resource.
- close() - Method in interface com.yahoo.jdisc.service.ServerProvider
-
This is a synchronous method to close the listen port (or equivalent) of this ServerProvider and flush any input buffers that will cause calls to
CurrentContainer.newReference(URI)
. - close() - Method in class com.yahoo.jdisc.test.NonWorkingServerProvider
- close() - Method in class com.yahoo.jdisc.test.TestDriver
-
Initiatiates shut down of this TestDriver and waits for it to complete.
- close(CompletionHandler) - Method in class com.yahoo.jdisc.handler.BufferedContentChannel
- close(CompletionHandler) - Method in interface com.yahoo.jdisc.handler.ContentChannel
-
Closes this ContentChannel.
- close(CompletionHandler) - Method in class com.yahoo.jdisc.handler.NullContent
- close(CompletionHandler) - Method in class com.yahoo.jdisc.handler.ReadableContentChannel
- close(CompletionHandler) - Method in class com.yahoo.jdisc.test.NonWorkingContentChannel
- collection() - Method in class com.yahoo.jdisc.application.GuiceRepository
- collection() - Method in class com.yahoo.jdisc.application.ServerRepository
- com.yahoo.jdisc - package com.yahoo.jdisc
-
Provides the common classes and interfaces of the jDISC core.
- com.yahoo.jdisc.application - package com.yahoo.jdisc.application
-
Provides classes and interfaces for implementing an
Application
. - com.yahoo.jdisc.client - package com.yahoo.jdisc.client
-
Provides classes and interfaces for implementing a
ClientApplication
. - com.yahoo.jdisc.core - package com.yahoo.jdisc.core
- com.yahoo.jdisc.handler - package com.yahoo.jdisc.handler
-
Provides classes and interfaces for implementing a
RequestHandler
. - com.yahoo.jdisc.refcount - package com.yahoo.jdisc.refcount
- com.yahoo.jdisc.service - package com.yahoo.jdisc.service
-
Provides classes and interfaces for implementing a
ClientProvider
or aServerProvider
. - com.yahoo.jdisc.statistics - package com.yahoo.jdisc.statistics
- com.yahoo.jdisc.test - package com.yahoo.jdisc.test
-
Provides classes and interfaces for implementing unit tests of jDISC components.
- compareTo(UriPattern) - Method in class com.yahoo.jdisc.application.UriPattern
- completed() - Method in interface com.yahoo.jdisc.handler.CompletionHandler
-
Invoked when an operation has completed.
- completed() - Method in class com.yahoo.jdisc.handler.FutureCompletion
- completed() - Method in class com.yahoo.jdisc.test.NonWorkingCompletionHandler
- CompletionHandler - Interface in com.yahoo.jdisc.handler
-
This interface defines a handler for consuming the result of an asynchronous I/O operation.
- configureServerProvider(GuiceRepository) - Method in interface com.yahoo.jdisc.test.ServerProviderConformanceTest.Adapter
- CONFLICT - Static variable in interface com.yahoo.jdisc.Response.Status
- ConformanceException() - Constructor for exception com.yahoo.jdisc.test.ServerProviderConformanceTest.ConformanceException
- ConformanceException(ServerProviderConformanceTest.Event) - Constructor for exception com.yahoo.jdisc.test.ServerProviderConformanceTest.ConformanceException
-
In some tests, we want to ensure that a thrown exception has been handled by the framework before we do something else.
- connect() - Method in class com.yahoo.jdisc.handler.RequestDispatch
-
This methods calls
RequestDispatch.newRequest()
to create a newRequest
, and then callsRequest.connect(ResponseHandler)
on that. - connect(ResponseHandler) - Method in class com.yahoo.jdisc.handler.ResponseDispatch
-
This methods calls
ResponseDispatch.newResponse()
to create a newResponse
, and then callsResponseHandler.handleResponse(Response)
with that. - connect(ResponseHandler) - Method in class com.yahoo.jdisc.Request
-
Attempts to resolve and connect to the
RequestHandler
appropriate for theURI
of this Request. - connectFastWriter() - Method in class com.yahoo.jdisc.handler.RequestDispatch
-
This is a convenient method to construct a
FastContentWriter
over theContentChannel
returned by callingRequestDispatch.connect()
. - connectFastWriter(ResponseHandler) - Method in class com.yahoo.jdisc.handler.ResponseDispatch
-
Convenience method for constructing a
FastContentWriter
over theContentChannel
returned by callingResponseDispatch.connect(ResponseHandler)
. - connectRequest(String, ResponseHandler) - Method in class com.yahoo.jdisc.test.TestDriver
-
Convenience method to create and
Request.connect(ResponseHandler)
aRequest
on theCurrentContainer
. - connectTo(ContentChannel) - Method in class com.yahoo.jdisc.handler.BufferedContentChannel
-
Connects this BufferedContentChannel to a ContentChannel.
- consumer() - Method in class com.yahoo.jdisc.application.ContainerThread
-
Returns the
MetricConsumer
of this. - container() - Method in class com.yahoo.jdisc.application.AbstractApplication
- container() - Method in class com.yahoo.jdisc.Request
-
Returns the
Container
for which this Request was created - container() - Method in class com.yahoo.jdisc.service.AbstractServerProvider
- Container - Interface in com.yahoo.jdisc
-
This is the immutable Container.
- ContainerActivator - Interface in com.yahoo.jdisc.application
-
This interface defines the API for changing the active
Container
of a jDISC application. - ContainerBuilder - Class in com.yahoo.jdisc.application
-
This is the inactive, mutable
Container
. - ContainerBuilder(Iterable<Module>) - Constructor for class com.yahoo.jdisc.application.ContainerBuilder
- ContainerNotReadyException - Exception in com.yahoo.jdisc.service
- ContainerNotReadyException() - Constructor for exception com.yahoo.jdisc.service.ContainerNotReadyException
-
Constructs a new instance of this class with a detail message.
- ContainerTermination - Class in com.yahoo.jdisc.core
- ContainerTermination(Object, ResourceReference) - Constructor for class com.yahoo.jdisc.core.ContainerTermination
- ContainerThread - Class in com.yahoo.jdisc.application
-
This class decorates
Thread
to allow for internal jDISC optimizations. - ContainerThread(Runnable, MetricConsumer) - Constructor for class com.yahoo.jdisc.application.ContainerThread
-
Allocates a new ContainerThread object.
- ContainerThread.Factory - Class in com.yahoo.jdisc.application
-
This class implements the
ThreadFactory
interface on top of aProvider
forMetricConsumer
instances. - ContainerWatchdogMetrics - Interface in com.yahoo.jdisc.statistics
-
Tracks statistics on stale
ActiveContainer
instances. - contains(String, String) - Method in class com.yahoo.jdisc.HeaderFields
-
Convenience method for checking whether or not a named header contains a specific value.
- containsIgnoreCase(String, String) - Method in class com.yahoo.jdisc.HeaderFields
-
Convenience method for checking whether or not a named header contains a specific value, regardless of case.
- containsKey(Object) - Method in class com.yahoo.jdisc.HeaderFields
- containsValue(Object) - Method in class com.yahoo.jdisc.HeaderFields
- ContentChannel - Interface in com.yahoo.jdisc.handler
- ContentInputStream - Class in com.yahoo.jdisc.handler
-
This class extends
UnsafeContentInputStream
and adds a finalizer to it that callsUnsafeContentInputStream.close()
. - ContentInputStream(ReadableContentChannel) - Constructor for class com.yahoo.jdisc.handler.ContentInputStream
-
Constructs a new ContentInputStream that reads from the given
ReadableContentChannel
. - context() - Method in class com.yahoo.jdisc.Request
-
Returns the named application context objects.
- context() - Method in class com.yahoo.jdisc.Response
-
Returns the named application context objects.
- CONTINUE - Static variable in interface com.yahoo.jdisc.Response.Status
-
1xx: Informational - Request received, continuing process.
- createContext(Map<String, ?>) - Method in interface com.yahoo.jdisc.application.MetricConsumer
-
Creates a
Metric.Context
object that encapsulates the given properties. - createContext(Map<String, ?>) - Method in interface com.yahoo.jdisc.Metric
-
Creates a
MetricConsumer
-specificMetric.Context
object that encapsulates the given properties. - createContext(Map<String, ?>) - Method in class com.yahoo.jdisc.test.MockMetric
- CREATED - Static variable in interface com.yahoo.jdisc.Response.Status
- creationTime(TimeUnit) - Method in class com.yahoo.jdisc.Request
-
Returns the time at which this Request was created.
- CurrentContainer - Interface in com.yahoo.jdisc.service
-
This interface declares a method to retrieve a reference to the current
Container
. - currentState() - Method in class com.yahoo.jdisc.AbstractResource
-
Returns a string describing the current state of references in human-friendly terms.
- currentState() - Method in class com.yahoo.jdisc.refcount.DebugReferencesByContextMap
- currentState() - Method in class com.yahoo.jdisc.refcount.DebugReferencesWithStack
- currentState() - Method in interface com.yahoo.jdisc.refcount.References
- currentTime() - Method in class com.yahoo.jdisc.core.SystemTimer
- currentTime() - Method in class com.yahoo.jdisc.test.TestTimer
- currentTime() - Method in interface com.yahoo.jdisc.Timer
-
Convenience method for getting an java.util.Instance from currentTimeMillis().
- currentTimeMillis() - Method in class com.yahoo.jdisc.core.SystemTimer
- currentTimeMillis() - Method in class com.yahoo.jdisc.test.TestTimer
- currentTimeMillis() - Method in interface com.yahoo.jdisc.Timer
-
Returns the current time in milliseconds.
D
- DeactivatedContainer - Interface in com.yahoo.jdisc.application
-
This interface represents a
Container
which is in the process of being deactivated. - DEBUG - Static variable in interface com.yahoo.jdisc.SharedResource
- DebugReferencesByContextMap - Class in com.yahoo.jdisc.refcount
-
Does reference counting by putting a unique key together with optional context in map Used if system property jdisc.debug.resources=simple/true
- DebugReferencesByContextMap(DestructableResource, Object) - Constructor for class com.yahoo.jdisc.refcount.DebugReferencesByContextMap
- DebugReferencesWithStack - Class in com.yahoo.jdisc.refcount
-
Does reference counting by putting stacktraces in a map together with an optional context.
- DebugReferencesWithStack(DestructableResource) - Constructor for class com.yahoo.jdisc.refcount.DebugReferencesWithStack
- DEFAULT - Static variable in class com.yahoo.jdisc.application.BindingSet
- DefaultBindingSelector - Class in com.yahoo.jdisc.core
- DefaultBindingSelector() - Constructor for class com.yahoo.jdisc.core.DefaultBindingSelector
- DelegatedRequestHandler - Interface in com.yahoo.jdisc.handler
- destroy() - Method in class com.yahoo.jdisc.AbstractResource
-
This method signals that this AbstractResource can dispose of any internal resources, and commence with shut down of any internal threads.
- destroy() - Method in class com.yahoo.jdisc.application.AbstractApplication
- destroy() - Method in interface com.yahoo.jdisc.application.Application
-
This method is called by the
ApplicationLoader
after first callingApplication.stop()
, and all previousDeactivatedContainer
s have terminated. - destroy() - Method in class com.yahoo.jdisc.application.ResourcePool
- destroy() - Method in class com.yahoo.jdisc.core.ActiveContainer
- destroy() - Method in class com.yahoo.jdisc.core.ApplicationLoader
- destroy() - Method in interface com.yahoo.jdisc.core.BootstrapLoader
- destroy() - Method in class com.yahoo.jdisc.Request
- DestructableResource - Interface in com.yahoo.jdisc.refcount
- dispatch() - Method in class com.yahoo.jdisc.handler.RequestDispatch
-
This method calls
RequestDispatch.connect()
to establish aContentChannel
for theRequest
, and then iterates through all the ByteBuffers returned byRequestDispatch.requestContent()
and writes them to that ContentChannel. - dispatch(ResponseHandler) - Method in class com.yahoo.jdisc.handler.ResponseDispatch
-
This method calls
ResponseDispatch.connect(ResponseHandler)
to establish aContentChannel
for theResponse
, and then iterates through all the ByteBuffers returned byResponseDispatch.responseContent()
and writes them to that ContentChannel. - dispatchRequest(String, ResponseHandler) - Method in class com.yahoo.jdisc.test.TestDriver
-
Convenience method to create a
Request
, connect it to aRequestHandler
, and close the returnedContentChannel
. - dispatchTimeout(ResponseHandler) - Static method in class com.yahoo.jdisc.Response
-
This is a convenience method for creating a Response with status
Response.Status.GATEWAY_TIMEOUT
and passing that to the givenResponseHandler.handleResponse(Response)
. - doClose() - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
- doFlush(ByteBuffer) - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
E
- emitMetrics(Metric) - Method in interface com.yahoo.jdisc.statistics.ContainerWatchdogMetrics
- entries() - Method in class com.yahoo.jdisc.HeaderFields
-
Returns an unmodifiable list of all key-value pairs of this.
- entrySet() - Method in class com.yahoo.jdisc.HeaderFields
- equals(Object) - Method in record class com.yahoo.jdisc.application.BsnVersion
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class com.yahoo.jdisc.application.UriPattern
- equals(Object) - Method in class com.yahoo.jdisc.HeaderFields
- event(BundleEvent, Collection<BundleContext>) - Method in class com.yahoo.jdisc.core.BundleCollisionHook
-
Cleans up the allowed duplicates when a bundle is uninstalled.
- executeRequest(U, boolean) - Method in interface com.yahoo.jdisc.test.ServerProviderConformanceTest.Adapter
- EXPECTATION_FAILED - Static variable in interface com.yahoo.jdisc.Response.Status
- EXPORT_PACKAGES - Static variable in class com.yahoo.jdisc.core.ExportPackages
- exportPackage(String) - Method in class com.yahoo.jdisc.core.FelixParams
- ExportPackages - Class in com.yahoo.jdisc.core
- ExportPackages() - Constructor for class com.yahoo.jdisc.core.ExportPackages
F
- Factory(Provider<MetricConsumer>) - Constructor for class com.yahoo.jdisc.application.ContainerThread.Factory
- failed(Throwable) - Method in interface com.yahoo.jdisc.handler.CompletionHandler
-
Invoked when an operation fails.
- failed(Throwable) - Method in class com.yahoo.jdisc.handler.FutureCompletion
- failed(Throwable) - Method in class com.yahoo.jdisc.handler.ReadableContentChannel
-
This method calls
CompletionHandler.failed(Throwable)
on all pendingCompletionHandler
s, and blocks all future operations to this ContentChannel (i.e. calls toReadableContentChannel.write(ByteBuffer, CompletionHandler)
andReadableContentChannel.close(CompletionHandler)
throw IllegalStateExceptions). - failed(Throwable) - Method in class com.yahoo.jdisc.test.NonWorkingCompletionHandler
- FAILED_DEPENDENCY - Static variable in interface com.yahoo.jdisc.Response.Status
- FastContentOutputStream - Class in com.yahoo.jdisc.handler
-
This class extends the
AbstractContentOutputStream
, and forwards all write() and close() calls to aFastContentWriter
. - FastContentOutputStream(ContentChannel) - Constructor for class com.yahoo.jdisc.handler.FastContentOutputStream
-
Constructs a new FastContentOutputStream that writes into the given
ContentChannel
. - FastContentOutputStream(FastContentWriter) - Constructor for class com.yahoo.jdisc.handler.FastContentOutputStream
-
Constructs a new FastContentOutputStream that writes into the given
FastContentWriter
. - FastContentWriter - Class in com.yahoo.jdisc.handler
-
This class provides a non-blocking, awaitable write-interface to a
ContentChannel
. - FastContentWriter(ContentChannel) - Constructor for class com.yahoo.jdisc.handler.FastContentWriter
-
Creates a new FastContentWriter that encapsulates a given
ContentChannel
. - FelixFramework - Class in com.yahoo.jdisc.core
- FelixFramework(FelixParams) - Constructor for class com.yahoo.jdisc.core.FelixFramework
- FelixParams - Class in com.yahoo.jdisc.core
- FelixParams() - Constructor for class com.yahoo.jdisc.core.FelixParams
- filterCollisions(int, Bundle, Collection<Bundle>) - Method in class com.yahoo.jdisc.core.BundleCollisionHook
-
Removes duplicates of the allowed duplicate bundles from the given collision candidates.
- finalize() - Method in class com.yahoo.jdisc.handler.ContentInputStream
- find(BundleContext, Collection<Bundle>) - Method in class com.yahoo.jdisc.core.BundleCollisionHook
-
Filters out the set of bundles that should not be visible to the bundle associated with the given context.
- flush() - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
- FORBIDDEN - Static variable in interface com.yahoo.jdisc.Response.Status
- FOUND - Static variable in interface com.yahoo.jdisc.Response.Status
- fromClock(Clock) - Static method in interface com.yahoo.jdisc.Timer
-
Create a Timer backed by the given Clock.
- fromResource(SharedResource) - Static method in class com.yahoo.jdisc.References
- FutureCompletion - Class in com.yahoo.jdisc.handler
-
This class provides an implementation of
CompletionHandler
that allows you to wait for eitherFutureCompletion.completed()
orFutureCompletion.failed(Throwable)
to be called. - FutureCompletion() - Constructor for class com.yahoo.jdisc.handler.FutureCompletion
- FutureResponse - Class in com.yahoo.jdisc.handler
-
This class provides an implementation of
ResponseHandler
that allows you to wait for aResponse
to be returned. - FutureResponse() - Constructor for class com.yahoo.jdisc.handler.FutureResponse
-
Constructs a new FutureResponse that returns a
NullContent
whenFutureResponse.handleResponse(Response)
is invoked. - FutureResponse(ContentChannel) - Constructor for class com.yahoo.jdisc.handler.FutureResponse
-
Constructs a new FutureResponse that returns the given
ContentChannel
whenFutureResponse.handleResponse(Response)
is invoked. - FutureResponse(ResponseHandler) - Constructor for class com.yahoo.jdisc.handler.FutureResponse
-
Constructs a new FutureResponse that calls the given
ResponseHandler
whenFutureResponse.handleResponse(Response)
is invoked.
G
- GATEWAY_TIMEOUT - Static variable in interface com.yahoo.jdisc.Response.Status
- get() - Method in class com.yahoo.jdisc.application.MetricProvider
- get() - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
- get() - Method in class com.yahoo.jdisc.handler.RequestDispatch
- get() - Method in class com.yahoo.jdisc.handler.ResponseDispatch
- get(long, TimeUnit) - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
- get(long, TimeUnit) - Method in class com.yahoo.jdisc.handler.RequestDispatch
- get(long, TimeUnit) - Method in class com.yahoo.jdisc.handler.ResponseDispatch
- get(Key<T>) - Method in class com.yahoo.jdisc.application.ResourcePool
-
Returns the appropriate instance for the given injection key.
- get(Class<T>) - Method in class com.yahoo.jdisc.application.ResourcePool
-
Returns the appropriate instance for the given injection type.
- get(Object) - Method in class com.yahoo.jdisc.HeaderFields
- getBindingMatch() - Method in class com.yahoo.jdisc.Request
-
Returns the last resolved
BindingMatch
, or null if none has been resolved yet. - getBundles(Bundle) - Method in interface com.yahoo.jdisc.application.OsgiFramework
-
Returns all installed bundles that are visible to the requesting bundle.
- getBundles(Bundle) - Method in class com.yahoo.jdisc.core.FelixFramework
- getBundles(Bundle) - Method in class com.yahoo.jdisc.test.NonWorkingOsgiFramework
- getCachePath() - Method in class com.yahoo.jdisc.core.FelixParams
- getContainerWatchdogMetrics() - Method in class com.yahoo.jdisc.core.ApplicationLoader
- getDelegate() - Method in interface com.yahoo.jdisc.handler.DelegatedRequestHandler
- getDelegateRecursive() - Method in interface com.yahoo.jdisc.handler.DelegatedRequestHandler
- getError() - Method in class com.yahoo.jdisc.Response
-
Returns the error of this response, or null if none has been set.
- getFirst(String) - Method in class com.yahoo.jdisc.HeaderFields
-
Convenience method for retrieving the first value of a named header field.
- getInjector() - Method in class com.yahoo.jdisc.application.GuiceRepository
- getInstance(Key<T>) - Method in class com.yahoo.jdisc.application.ContainerBuilder
- getInstance(Key<T>) - Method in class com.yahoo.jdisc.application.GuiceRepository
- getInstance(Class<T>) - Method in class com.yahoo.jdisc.application.ContainerBuilder
- getInstance(Class<T>) - Method in class com.yahoo.jdisc.application.GuiceRepository
- getInstance(Class<T>) - Method in interface com.yahoo.jdisc.Container
-
Returns the appropriate instance for the given injection type.
- getMessage() - Method in exception com.yahoo.jdisc.test.ServerProviderConformanceTest.ConformanceException
- getReference() - Method in class com.yahoo.jdisc.ReferencedResource
- getRequestType() - Method in class com.yahoo.jdisc.Response
-
Returns the type classification of this request for metric collection purposes, or null if not set
- getResource() - Method in class com.yahoo.jdisc.ReferencedResource
- getServerProviderClass() - Method in interface com.yahoo.jdisc.test.ServerProviderConformanceTest.Adapter
- getStatus() - Method in class com.yahoo.jdisc.Response
-
Returns the status code of this response.
- getSystemPackages() - Static method in class com.yahoo.jdisc.core.ExportPackages
- getTimeout(TimeUnit) - Method in class com.yahoo.jdisc.handler.ThreadedRequestHandler
-
Returns the timeout that this ThreadedRequestHandler sets on all handled
Request
s. - getTimeout(TimeUnit) - Method in class com.yahoo.jdisc.Request
-
Returns the allocated number of time units that this Request is allowed to exist.
- getTimeoutManager() - Method in class com.yahoo.jdisc.Request
-
Returns the
TimeoutManager
of this request, or null if none has been assigned. - getUri() - Method in class com.yahoo.jdisc.Request
-
Returns the Uniform Resource Identifier used by the
Container
to resolve the appropriateRequestHandler
for this Request. - getZone() - Method in class com.yahoo.jdisc.Timer.ClockAdapter
- GONE - Static variable in interface com.yahoo.jdisc.Response.Status
- group(int) - Method in class com.yahoo.jdisc.application.BindingMatch
-
Returns the input subsequence captured by the given group by this match.
- group(int) - Method in class com.yahoo.jdisc.application.UriPattern.Match
-
Returns the input subsequence captured by the given group by this match.
- groupCount() - Method in class com.yahoo.jdisc.application.BindingMatch
-
Returns the number of captured groups of this match.
- groupCount() - Method in class com.yahoo.jdisc.application.UriPattern.Match
-
Returns the number of captured groups of this match.
- guiceInjector() - Method in class com.yahoo.jdisc.core.ActiveContainer
- guiceModules() - Method in class com.yahoo.jdisc.application.ContainerBuilder
- GuiceRepository - Class in com.yahoo.jdisc.application
-
This is a repository of
Module
s. - GuiceRepository(Module...) - Constructor for class com.yahoo.jdisc.application.GuiceRepository
H
- handleRequest(Request, BufferedContentChannel, ResponseHandler) - Method in class com.yahoo.jdisc.handler.ThreadedRequestHandler
-
Override this method if you want to access the
Request
's content using aBufferedContentChannel
. - handleRequest(Request, ContentInputStream, ResponseHandler) - Method in class com.yahoo.jdisc.handler.ThreadedRequestHandler
-
Implement this method if you want to access the
Request
's content using aContentInputStream
. - handleRequest(Request, ReadableContentChannel, ResponseHandler) - Method in class com.yahoo.jdisc.handler.ThreadedRequestHandler
-
Implement this method if you want to access the
Request
's content using aReadableContentChannel
. - handleRequest(Request, ResponseHandler) - Method in interface com.yahoo.jdisc.handler.RequestHandler
-
This method will process the given
Request
and return aContentChannel
into which the caller can write the Request's content. - handleRequest(Request, ResponseHandler) - Method in class com.yahoo.jdisc.handler.ThreadedRequestHandler
- handleRequest(Request, ResponseHandler) - Method in class com.yahoo.jdisc.test.NonWorkingClientProvider
- handleRequest(Request, ResponseHandler) - Method in class com.yahoo.jdisc.test.NonWorkingRequestHandler
- handleResponse(Response) - Method in class com.yahoo.jdisc.handler.FutureResponse
- handleResponse(Response) - Method in class com.yahoo.jdisc.handler.RequestDispatch
- handleResponse(Response) - Method in interface com.yahoo.jdisc.handler.ResponseHandler
-
This method will process the given
Response
and return aContentChannel
into which the caller can write the Response's content. - handleResponse(Response) - Method in class com.yahoo.jdisc.test.NonWorkingResponseHandler
- handleTimeout(Request, ResponseHandler) - Method in class com.yahoo.jdisc.handler.AbstractRequestHandler
- handleTimeout(Request, ResponseHandler) - Method in interface com.yahoo.jdisc.handler.RequestHandler
-
This method is called by the
Container
when aRequest
that was previously accepted byRequestHandler.handleRequest(Request, ResponseHandler)
has timed out. - handleTimeout(Request, ResponseHandler) - Method in class com.yahoo.jdisc.test.NonWorkingClientProvider
- handleTimeout(Request, ResponseHandler) - Method in class com.yahoo.jdisc.test.NonWorkingRequestHandler
- hashCode() - Method in record class com.yahoo.jdisc.application.BsnVersion
-
Returns a hash code value for this object.
- hashCode() - Method in class com.yahoo.jdisc.application.UriPattern
- hashCode() - Method in class com.yahoo.jdisc.HeaderFields
- HeaderFields - Class in com.yahoo.jdisc
- HeaderFields() - Constructor for class com.yahoo.jdisc.HeaderFields
- headers() - Method in class com.yahoo.jdisc.Request
-
Returns the set of header fields of this Request.
- headers() - Method in class com.yahoo.jdisc.Response
-
Returns the set of header fields of this Request.
I
- init(String, boolean) - Method in class com.yahoo.jdisc.core.ApplicationLoader
- init(String, boolean) - Method in interface com.yahoo.jdisc.core.BootstrapLoader
- install(Module) - Method in class com.yahoo.jdisc.application.GuiceRepository
- install(ServerProvider) - Method in class com.yahoo.jdisc.application.ServerRepository
- install(Bundle, String) - Method in class com.yahoo.jdisc.application.GuiceRepository
- install(Bundle, String) - Method in class com.yahoo.jdisc.application.ServerRepository
- installAll(Iterable<? extends Module>) - Method in class com.yahoo.jdisc.application.GuiceRepository
- installAll(Iterable<? extends ServerProvider>) - Method in class com.yahoo.jdisc.application.ServerRepository
- installAll(Bundle, Iterable<String>) - Method in class com.yahoo.jdisc.application.GuiceRepository
- installAll(Bundle, Iterable<String>) - Method in class com.yahoo.jdisc.application.ServerRepository
- installAndStart(Iterable<String>) - Method in class com.yahoo.jdisc.application.BundleInstaller
- installAndStart(String...) - Method in class com.yahoo.jdisc.application.BundleInstaller
- installAndStartBundle(Iterable<String>) - Method in class com.yahoo.jdisc.application.AbstractApplication
- installAndStartBundle(String...) - Method in class com.yahoo.jdisc.application.AbstractApplication
- installBundle(String) - Method in interface com.yahoo.jdisc.application.OsgiFramework
-
Installs a bundle from the specified location.
- installBundle(String) - Method in class com.yahoo.jdisc.core.FelixFramework
- installBundle(String) - Method in class com.yahoo.jdisc.test.NonWorkingOsgiFramework
- installedBundles() - Method in exception com.yahoo.jdisc.application.BundleInstallationException
- INSTANCE - Static variable in class com.yahoo.jdisc.handler.NullContent
- instant() - Method in class com.yahoo.jdisc.Timer.ClockAdapter
- INSUFFICIENT_SPACE_ON_RESOURCE - Static variable in interface com.yahoo.jdisc.Response.Status
- INSUFFICIENT_STORAGE - Static variable in interface com.yahoo.jdisc.Response.Status
- INTERNAL_SERVER_ERROR - Static variable in interface com.yahoo.jdisc.Response.Status
-
5xx: Server Error - The server failed to fulfill an apparently valid request.
- isCancelled() - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
- isCancelled() - Method in class com.yahoo.jdisc.handler.FastContentWriter
- isCancelled() - Method in class com.yahoo.jdisc.handler.FutureCompletion
- isCancelled() - Method in class com.yahoo.jdisc.handler.FutureResponse
- isCancelled() - Method in class com.yahoo.jdisc.handler.RequestDispatch
- isCancelled() - Method in class com.yahoo.jdisc.handler.ResponseDispatch
- isCancelled() - Method in class com.yahoo.jdisc.Request
-
Returns whether or not this Request has been cancelled.
- isConnected() - Method in class com.yahoo.jdisc.handler.BufferedContentChannel
-
Returns whether or not
BufferedContentChannel.connectTo(ContentChannel)
has been called. - isDone() - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
- isDone() - Method in class com.yahoo.jdisc.handler.RequestDispatch
- isDone() - Method in class com.yahoo.jdisc.handler.ResponseDispatch
- isEmpty() - Method in class com.yahoo.jdisc.HeaderFields
- isFelixFramework() - Method in interface com.yahoo.jdisc.application.OsgiFramework
-
Returns true if this is a Felix based framework and not e.g. a test framework.
- isFelixFramework() - Method in class com.yahoo.jdisc.core.FelixFramework
- isLoggerEnabled() - Method in class com.yahoo.jdisc.core.FelixParams
- isMultiplexed() - Method in interface com.yahoo.jdisc.service.ServerProvider
-
Whether multiple instances of this can coexist, by means of a multiplexer on top of any exclusive resource.
- isServerRequest() - Method in class com.yahoo.jdisc.Request
-
Returns whether this Request was created by a
ServerProvider
. - isSet(Bundle, String) - Static method in class com.yahoo.jdisc.application.OsgiHeader
-
Returns true if the named header is present in the manifest of the given bundle.
- isShutdown() - Method in class com.yahoo.jdisc.client.AbstractClientApplication
- isTerminated() - Method in class com.yahoo.jdisc.application.AbstractApplication
- isTrue(String) - Method in class com.yahoo.jdisc.HeaderFields
-
Convenience method for checking whether a named header field is true.
- iterator() - Method in class com.yahoo.jdisc.application.BindingRepository
- iterator() - Method in class com.yahoo.jdisc.application.BindingSet
- iterator() - Method in class com.yahoo.jdisc.application.GuiceRepository
- iterator() - Method in class com.yahoo.jdisc.application.ServerRepository
- iterator() - Method in class com.yahoo.jdisc.handler.ReadableContentChannel
K
- keySet() - Method in class com.yahoo.jdisc.HeaderFields
L
- LENGTH_REQUIRED - Static variable in interface com.yahoo.jdisc.Response.Status
- LOCKED - Static variable in interface com.yahoo.jdisc.Response.Status
M
- main(String[]) - Static method in class com.yahoo.jdisc.core.ExportPackages
- main(String[]) - Static method in class com.yahoo.jdisc.core.StandaloneMain
- Main - Class in com.yahoo.jdisc.core
- Main() - Constructor for class com.yahoo.jdisc.core.Main
- manageHandler(RequestHandler) - Method in class com.yahoo.jdisc.core.TimeoutManagerImpl
- mark(int) - Method in class com.yahoo.jdisc.handler.UnsafeContentInputStream
- markSupported() - Method in class com.yahoo.jdisc.handler.UnsafeContentInputStream
- match(URI) - Method in class com.yahoo.jdisc.application.BindingSet
-
Resolves the binding that best matches (see commentary on
BindingRepository.bind(String, Object)
) the givenURI
, and returns aBindingMatch
object that describes the match and contains the matched target. - match(URI) - Method in class com.yahoo.jdisc.application.UriPattern
-
Attempts to match the given
URI
to this pattern. - matched() - Method in class com.yahoo.jdisc.application.BindingMatch
-
Returns the URI pattern that was matched.
- METHOD_FAILURE - Static variable in interface com.yahoo.jdisc.Response.Status
- METHOD_NOT_ALLOWED - Static variable in interface com.yahoo.jdisc.Response.Status
- Metric - Interface in com.yahoo.jdisc
-
This interface provides an API for writing metric data to the configured
MetricConsumer
. - Metric.Context - Interface in com.yahoo.jdisc
-
Declares the interface for the arbitrary context object to pass to both the
Metric.set(String, Number, Context)
andMetric.add(String, Number, Context)
methods. - MetricConsumer - Interface in com.yahoo.jdisc.application
-
This interface defines the consumer counterpart of the
Metric
interface. - MetricProvider - Class in com.yahoo.jdisc.application
- MetricProvider(Provider<MetricConsumer>) - Constructor for class com.yahoo.jdisc.application.MetricProvider
- metrics() - Method in class com.yahoo.jdisc.test.MockMetric
- MockMetric - Class in com.yahoo.jdisc.test
-
Metric implementation for tests.
- MockMetric() - Constructor for class com.yahoo.jdisc.test.MockMetric
- MONITORING - Enum constant in enum class com.yahoo.jdisc.Request.RequestType
- MOVED_PERMANENTLY - Static variable in interface com.yahoo.jdisc.Response.Status
- MULTI_STATUS - Static variable in interface com.yahoo.jdisc.Response.Status
- MULTIPLE_CHOICES - Static variable in interface com.yahoo.jdisc.Response.Status
-
3xx: Redirection - Further action must be taken in order to complete the request.
N
- newApplicationBundleInstance(String, boolean, Module...) - Static method in class com.yahoo.jdisc.test.TestDriver
-
Creates a new TestDriver from an application bundle.
- newClient(T) - Method in interface com.yahoo.jdisc.test.ServerProviderConformanceTest.Adapter
- newConfigModule() - Method in interface com.yahoo.jdisc.test.ServerProviderConformanceTest.Adapter
- newContainerBuilder() - Method in class com.yahoo.jdisc.application.AbstractApplication
- newContainerBuilder() - Method in interface com.yahoo.jdisc.application.ContainerActivator
-
This method creates and returns a new
ContainerBuilder
object that has the necessary references to the application and its internal components. - newContainerBuilder() - Method in class com.yahoo.jdisc.core.ApplicationLoader
- newContainerBuilder() - Method in class com.yahoo.jdisc.test.TestDriver
- newInjectedApplicationInstance(Application, Module...) - Static method in class com.yahoo.jdisc.test.TestDriver
-
Creates a new TestDriver with an injected
Application
. - newInjectedApplicationInstance(Class<? extends Application>, Module...) - Static method in class com.yahoo.jdisc.test.TestDriver
-
Creates a new TestDriver with an injected
Application
. - newInjectedApplicationInstanceWithoutOsgi(Application, Module...) - Static method in class com.yahoo.jdisc.test.TestDriver
-
Creates a new TestDriver with an injected
Application
, but without OSGi support. - newInjectedApplicationInstanceWithoutOsgi(Class<? extends Application>, Module...) - Static method in class com.yahoo.jdisc.test.TestDriver
-
Creates a new TestDriver with an injected
Application
, but without OSGi support. - newInstance(int, Iterable<ByteBuffer>) - Static method in class com.yahoo.jdisc.handler.ResponseDispatch
-
Factory method for creating a ResponseDispatch with a
Response
that has the given status code, and collection of ByteBuffer content. - newInstance(int, ByteBuffer...) - Static method in class com.yahoo.jdisc.handler.ResponseDispatch
-
Factory method for creating a ResponseDispatch with a
Response
that has the given status code, and ByteBuffer content. - newInstance(OsgiFramework, String, boolean, Module...) - Static method in class com.yahoo.jdisc.test.TestDriver
-
Creates a new TestDriver with the given parameters.
- newInstance(Response, Iterable<ByteBuffer>) - Static method in class com.yahoo.jdisc.handler.ResponseDispatch
-
Factory method for creating a ResponseDispatch over a given
Response
and ByteBuffer content. - newInstance(Response, ByteBuffer...) - Static method in class com.yahoo.jdisc.handler.ResponseDispatch
-
Factory method for creating a ResponseDispatch over a given
Response
and ByteBuffer content. - newInstance(String, Module...) - Static method in class com.yahoo.jdisc.test.NonWorkingRequest
- newNonWorkingOsgiFramework() - Static method in class com.yahoo.jdisc.test.TestDriver
-
Factory method to create a light-weight
OsgiFramework
that throwsUnsupportedOperationException
ifOsgiFramework.installBundle(String)
orOsgiFramework.startBundles(List, boolean)
is called. - newOsgiFramework() - Static method in class com.yahoo.jdisc.test.TestDriver
-
Factory method to create a working
OsgiFramework
. - newReference(URI) - Method in interface com.yahoo.jdisc.service.CurrentContainer
- newReference(URI) - Method in class com.yahoo.jdisc.test.TestDriver
- newReference(URI, Object) - Method in class com.yahoo.jdisc.core.ActiveContainer
- newReference(URI, Object) - Method in class com.yahoo.jdisc.core.ApplicationLoader
- newReference(URI, Object) - Method in interface com.yahoo.jdisc.service.CurrentContainer
-
Returns a reference to the currently active
Container
. - newRequest() - Method in class com.yahoo.jdisc.handler.RequestDispatch
-
Creates and returns the
Request
to dispatch. - newRequestDispatch(String, ResponseHandler) - Method in class com.yahoo.jdisc.test.TestDriver
- newResponse() - Method in class com.yahoo.jdisc.handler.ResponseDispatch
-
Creates and returns the
Response
to dispatch. - newResponseContent() - Method in interface com.yahoo.jdisc.test.ServerProviderConformanceTest.Adapter
- newSimpleApplicationInstance(Module...) - Static method in class com.yahoo.jdisc.test.TestDriver
-
Creates a new TestDriver with a predefined
Application
implementation. - newSimpleApplicationInstanceWithoutOsgi(Module...) - Static method in class com.yahoo.jdisc.test.TestDriver
-
Creates a new TestDriver with a predefined
Application
implementation, but without OSGi support. - newThread(Runnable) - Method in class com.yahoo.jdisc.application.ContainerThread.Factory
- NO - Enum constant in enum class com.yahoo.jdisc.SharedResource.Debug
- NO_CONTENT - Static variable in interface com.yahoo.jdisc.Response.Status
- NoBindingSetSelectedException - Exception in com.yahoo.jdisc.service
-
This exception is used to signal that no
BindingSet
was selected for a givenURI
. - NoBindingSetSelectedException(URI) - Constructor for exception com.yahoo.jdisc.service.NoBindingSetSelectedException
-
Constructs a new instance of this class with a detail message that contains the
URI
for which there was noBindingSet
selected. - NON_AUTHORITATIVE_INFORMATION - Static variable in interface com.yahoo.jdisc.Response.Status
- NonWorkingClientProvider - Class in com.yahoo.jdisc.test
- NonWorkingClientProvider() - Constructor for class com.yahoo.jdisc.test.NonWorkingClientProvider
- NonWorkingCompletionHandler - Class in com.yahoo.jdisc.test
- NonWorkingCompletionHandler() - Constructor for class com.yahoo.jdisc.test.NonWorkingCompletionHandler
- NonWorkingContentChannel - Class in com.yahoo.jdisc.test
- NonWorkingContentChannel() - Constructor for class com.yahoo.jdisc.test.NonWorkingContentChannel
- NonWorkingOsgiFramework - Class in com.yahoo.jdisc.test
- NonWorkingOsgiFramework() - Constructor for class com.yahoo.jdisc.test.NonWorkingOsgiFramework
- NonWorkingRequest - Class in com.yahoo.jdisc.test
- NonWorkingRequestHandler - Class in com.yahoo.jdisc.test
- NonWorkingRequestHandler() - Constructor for class com.yahoo.jdisc.test.NonWorkingRequestHandler
- NonWorkingResponseHandler - Class in com.yahoo.jdisc.test
- NonWorkingResponseHandler() - Constructor for class com.yahoo.jdisc.test.NonWorkingResponseHandler
- NonWorkingServerProvider - Class in com.yahoo.jdisc.test
- NonWorkingServerProvider() - Constructor for class com.yahoo.jdisc.test.NonWorkingServerProvider
- NOOP_REFERENCE - Static variable in class com.yahoo.jdisc.References
-
A
ResourceReference
that does nothing. - NoopSharedResource - Class in com.yahoo.jdisc
-
An implementation of
SharedResource
that does not do anything. - NoopSharedResource() - Constructor for class com.yahoo.jdisc.NoopSharedResource
- NOT_ACCEPTABLE - Static variable in interface com.yahoo.jdisc.Response.Status
- NOT_FOUND - Static variable in interface com.yahoo.jdisc.Response.Status
- NOT_IMPLEMENTED - Static variable in interface com.yahoo.jdisc.Response.Status
- NOT_MODIFIED - Static variable in interface com.yahoo.jdisc.Response.Status
- notifyTermination(Runnable) - Method in interface com.yahoo.jdisc.application.DeactivatedContainer
-
Schedules the given
Runnable
to execute once this DeactivatedContainer has terminated. - notifyTermination(Runnable) - Method in class com.yahoo.jdisc.core.ContainerTermination
- NullContent - Class in com.yahoo.jdisc.handler
-
This class provides a convenient implementation of
ContentChannel
that does not support being written to.
O
- OK - Static variable in interface com.yahoo.jdisc.Response.Status
-
2xx: Success - The action was successfully received, understood, and accepted.
- onError(Throwable) - Method in interface com.yahoo.jdisc.handler.ContentChannel
-
Invoked when an error occurs during processing of request content.
- osgiFramework() - Method in class com.yahoo.jdisc.core.ApplicationLoader
- osgiFramework() - Method in class com.yahoo.jdisc.test.TestDriver
-
Returns the
OsgiFramework
created by this TestDriver. - OsgiFramework - Interface in com.yahoo.jdisc.application
-
This is an abstraction of the OSGi framework that hides the actual implementation details.
- OsgiHeader - Class in com.yahoo.jdisc.application
-
This interface acts as a namespace for the supported OSGi bundle headers.
- OsgiHeader() - Constructor for class com.yahoo.jdisc.application.OsgiHeader
- OverloadException - Exception in com.yahoo.jdisc.handler
-
An exception to signal abort current action, as the container is overloaded.
- OverloadException(String, Throwable) - Constructor for exception com.yahoo.jdisc.handler.OverloadException
P
- PARTIAL_CONTENT - Static variable in interface com.yahoo.jdisc.Response.Status
- PAYMENT_REQUIRED - Static variable in interface com.yahoo.jdisc.Response.Status
- PRECONDITION_FAILED - Static variable in interface com.yahoo.jdisc.Response.Status
- PREINSTALL_BUNDLE - Static variable in class com.yahoo.jdisc.application.OsgiHeader
- PRIVILEGED_ACTIVATOR - Static variable in class com.yahoo.jdisc.application.OsgiHeader
- PROCESSING - Static variable in interface com.yahoo.jdisc.Response.Status
- PROPERTIES_FILE - Static variable in class com.yahoo.jdisc.core.ExportPackages
- PROXY_AUTHENTICATION_REQUIRED - Static variable in interface com.yahoo.jdisc.Response.Status
- put(UriPattern, T) - Method in class com.yahoo.jdisc.application.BindingRepository
-
Binds the given target to the given
UriPattern
. - put(String, String) - Method in class com.yahoo.jdisc.HeaderFields
-
Convenience method to call
HeaderFields.put(String, List)
with a singleton list that contains the specified value. - put(String, List<String>) - Method in class com.yahoo.jdisc.HeaderFields
- putAll(Iterable<Map.Entry<UriPattern, T>>) - Method in class com.yahoo.jdisc.application.BindingRepository
-
Convenient method for calling
BindingRepository.put(UriPattern, Object)
for all entries in a collection of bindings. - putAll(Map<? extends String, ? extends List<String>>) - Method in class com.yahoo.jdisc.HeaderFields
R
- read() - Method in class com.yahoo.jdisc.handler.ReadableContentChannel
-
Returns the next ByteBuffer in the internal queue.
- read() - Method in class com.yahoo.jdisc.handler.UnsafeContentInputStream
- read(byte[], int, int) - Method in class com.yahoo.jdisc.handler.UnsafeContentInputStream
- READ - Enum constant in enum class com.yahoo.jdisc.Request.RequestType
- ReadableContentChannel - Class in com.yahoo.jdisc.handler
-
This class implements a
ContentChannel
that has a blocking read interface. - ReadableContentChannel() - Constructor for class com.yahoo.jdisc.handler.ReadableContentChannel
- readExportProperty() - Static method in class com.yahoo.jdisc.core.ExportPackages
- refer() - Method in class com.yahoo.jdisc.AbstractResource
- refer() - Method in class com.yahoo.jdisc.NoopSharedResource
- refer() - Method in interface com.yahoo.jdisc.SharedResource
-
Creates a reference to this resource.
- refer(Object) - Method in class com.yahoo.jdisc.AbstractResource
- refer(Object) - Method in class com.yahoo.jdisc.NoopSharedResource
- refer(Object) - Method in class com.yahoo.jdisc.refcount.DebugReferencesByContextMap
- refer(Object) - Method in class com.yahoo.jdisc.refcount.DebugReferencesWithStack
- refer(Object) - Method in interface com.yahoo.jdisc.refcount.References
-
Adds a reference and return an objects that when closed will return the reference.
- refer(Object) - Method in interface com.yahoo.jdisc.SharedResource
-
Creates a reference to this resource.
- referenceCount() - Method in class com.yahoo.jdisc.refcount.DebugReferencesByContextMap
- referenceCount() - Method in class com.yahoo.jdisc.refcount.DebugReferencesWithStack
- referenceCount() - Method in interface com.yahoo.jdisc.refcount.References
-
Returns number of held references
- ReferencedResource<T extends SharedResource> - Class in com.yahoo.jdisc
-
Utility class for working with reference-counted
SharedResource
s. - ReferencedResource(T, ResourceReference) - Constructor for class com.yahoo.jdisc.ReferencedResource
- References - Class in com.yahoo.jdisc
-
Utility class for working with
SharedResource
s andResourceReference
s. - References - Interface in com.yahoo.jdisc.refcount
-
Interface for implementations of reference counting
- refreshPackages() - Method in interface com.yahoo.jdisc.application.OsgiFramework
-
Synchronously refresh all bundles currently loaded.
- refreshPackages() - Method in class com.yahoo.jdisc.core.FelixFramework
-
NOTE: This method is no longer used by the Jdisc container framework, but kept for completeness.
- refreshPackages() - Method in class com.yahoo.jdisc.test.NonWorkingOsgiFramework
- release() - Method in class com.yahoo.jdisc.AbstractResource
- release() - Method in class com.yahoo.jdisc.NoopSharedResource
- release() - Method in class com.yahoo.jdisc.refcount.DebugReferencesByContextMap
- release() - Method in class com.yahoo.jdisc.refcount.DebugReferencesWithStack
- release() - Method in interface com.yahoo.jdisc.refcount.References
-
Release the initial reference
- release() - Method in interface com.yahoo.jdisc.SharedResource
-
Releases the "main" reference to this resource (the implicit reference due to creation of the object).
- remove(Object) - Method in class com.yahoo.jdisc.HeaderFields
- remove(String, String) - Method in class com.yahoo.jdisc.HeaderFields
-
Removes the given value from the entry of the specified key.
- request() - Method in exception com.yahoo.jdisc.handler.RequestDeniedException
-
Returns the
Request
that was denied. - Request - Class in com.yahoo.jdisc
-
This class represents a single request (which may have any content model that a
ServerProvider
chooses to implement). - Request(Request, URI) - Constructor for class com.yahoo.jdisc.Request
-
Creates a new instance of this class.
- Request(CurrentContainer, URI) - Constructor for class com.yahoo.jdisc.Request
-
Creates a new instance of this class.
- Request(CurrentContainer, URI, boolean) - Constructor for class com.yahoo.jdisc.Request
- Request(CurrentContainer, URI, boolean, long) - Constructor for class com.yahoo.jdisc.Request
- REQUEST_TIMEOUT - Static variable in interface com.yahoo.jdisc.Response.Status
- REQUEST_TOO_LONG - Static variable in interface com.yahoo.jdisc.Response.Status
- REQUEST_URI_TOO_LONG - Static variable in interface com.yahoo.jdisc.Response.Status
- Request.RequestType - Enum Class in com.yahoo.jdisc
- requestContent() - Method in class com.yahoo.jdisc.handler.RequestDispatch
-
Returns an Iterable for the ByteBuffers that the
RequestDispatch.dispatch()
method should write to theRequest
once it hasconnected
. - RequestDeniedException - Exception in com.yahoo.jdisc.handler
-
This exception is used to signal that a
Request
was rejected by the correspondingClientProvider
orRequestHandler
. - RequestDeniedException(Request) - Constructor for exception com.yahoo.jdisc.handler.RequestDeniedException
- RequestDispatch - Class in com.yahoo.jdisc.handler
-
This class provides a convenient way of safely dispatching a
Request
. - RequestDispatch() - Constructor for class com.yahoo.jdisc.handler.RequestDispatch
- REQUESTED_RANGE_NOT_SATISFIABLE - Static variable in interface com.yahoo.jdisc.Response.Status
- RequestHandler - Interface in com.yahoo.jdisc.handler
-
This interface defines a component that is capable of acting as a handler for a
Request
. - reset() - Method in class com.yahoo.jdisc.handler.UnsafeContentInputStream
- RESET_CONTENT - Static variable in interface com.yahoo.jdisc.Response.Status
- resolve(RequestHandler) - Static method in interface com.yahoo.jdisc.handler.DelegatedRequestHandler
-
Find delegated request handler recursively
- resolve(Class<T>, RequestHandler) - Static method in interface com.yahoo.jdisc.handler.DelegatedRequestHandler
-
Find delegated request handler of specified type recursively Note that the returned handler may not be the innermost handler.
- resolve(URI) - Method in class com.yahoo.jdisc.application.BindingSet
-
Resolves the binding that best matches (see commentary on
BindingRepository.bind(String, Object)
) the givenURI
, and returns that target. - resolveHandler(Request) - Method in interface com.yahoo.jdisc.Container
-
Attempts to find a
RequestHandler
in the current server- (ifRequest.isServerRequest()
is true) or client- (ifRequest.isServerRequest()
is false)BindingSet
that matches the givenURI
. - ResourcePool - Class in com.yahoo.jdisc.application
-
This is a utility class to help manage
SharedResource
s while configuring aContainerBuilder
. - ResourcePool() - Constructor for class com.yahoo.jdisc.application.ResourcePool
-
Creates a new instance of this class without a backing
ContainerBuilder
. - ResourcePool(ContainerBuilder) - Constructor for class com.yahoo.jdisc.application.ResourcePool
-
Creates a new instance of this class.
- ResourceReference - Interface in com.yahoo.jdisc
-
Represents a live reference to a
SharedResource
. - Response - Class in com.yahoo.jdisc
-
This class represents the single response (which may have any content model that a
RequestHandler
chooses to implement) of some single request. - Response(int) - Constructor for class com.yahoo.jdisc.Response
-
Creates a new instance of this class.
- Response(int, Throwable) - Constructor for class com.yahoo.jdisc.Response
-
Creates a new instance of this class.
- Response.Status - Interface in com.yahoo.jdisc
-
This interface acts as a namespace for the built-in status codes of the jDISC core.
- responseContent() - Method in class com.yahoo.jdisc.handler.ResponseDispatch
-
Returns an Iterable for the ByteBuffers that the
ResponseDispatch.dispatch(ResponseHandler)
method should write to theResponse
once it hasconnected
. - ResponseDispatch - Class in com.yahoo.jdisc.handler
-
This class provides a convenient way of safely dispatching a
Response
. - ResponseDispatch() - Constructor for class com.yahoo.jdisc.handler.ResponseDispatch
- ResponseHandler - Interface in com.yahoo.jdisc.handler
-
This interface defines a component that is capable of acting as a handler for a
Response
. - retain(T) - Method in class com.yahoo.jdisc.application.ResourcePool
-
Retains and adds the given
SharedResource
to this ResourcePool. - retainCount() - Method in class com.yahoo.jdisc.AbstractResource
-
Returns the reference count of this resource.
- run() - Method in class com.yahoo.jdisc.client.AbstractClientApplication
- run() - Method in class com.yahoo.jdisc.core.ContainerTermination
- runApplication(ClientApplication, Module...) - Static method in class com.yahoo.jdisc.client.ClientDriver
-
Creates and runs the given
ClientApplication
. - runApplication(Class<? extends ClientApplication>, Module...) - Static method in class com.yahoo.jdisc.client.ClientDriver
-
Creates and runs an instance of the given
ClientApplication
class. - runApplicationWithOsgi(String, Class<? extends ClientApplication>, Module...) - Static method in class com.yahoo.jdisc.client.ClientDriver
-
Creates and runs an instance of the the given
ClientApplication
class with OSGi support. - runTest(ServerProviderConformanceTest.Adapter<T, U, V>, Module...) - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
S
- safeClassCast(Class<T>, Class<?>) - Static method in class com.yahoo.jdisc.application.ContainerBuilder
- safeStringSplit(Object, String) - Static method in class com.yahoo.jdisc.application.ContainerBuilder
- scheduleClose() - Method in class com.yahoo.jdisc.test.TestDriver
-
Initiates the shut down of this TestDriver in another thread.
- scheduleTimeout(Request) - Method in interface com.yahoo.jdisc.TimeoutManager
-
Schedule timeout management for a request.
- SEE_OTHER - Static variable in interface com.yahoo.jdisc.Response.Status
- select(URI) - Method in interface com.yahoo.jdisc.application.BindingSetSelector
- select(URI) - Method in class com.yahoo.jdisc.core.DefaultBindingSelector
- serverBindings() - Method in class com.yahoo.jdisc.application.ContainerBuilder
- serverBindings() - Method in class com.yahoo.jdisc.core.ActiveContainer
- serverBindings(String) - Method in class com.yahoo.jdisc.application.ContainerBuilder
- serverBindings(String) - Method in class com.yahoo.jdisc.core.ActiveContainer
- ServerProvider - Interface in com.yahoo.jdisc.service
-
This interface defines a component that is capable of acting as a server for an external client.
- ServerProviderConformanceTest - Class in com.yahoo.jdisc.test
- ServerProviderConformanceTest() - Constructor for class com.yahoo.jdisc.test.ServerProviderConformanceTest
- ServerProviderConformanceTest.Adapter<T extends ServerProvider,
U, V> - Interface in com.yahoo.jdisc.test -
This interface declares the adapter between the general conformance test and an actual
ServerProvider
implementation. - ServerProviderConformanceTest.ConformanceException - Exception in com.yahoo.jdisc.test
-
An instance of this exception is thrown within the conformance tests that imply that they will throw an exception.
- serverProviders() - Method in class com.yahoo.jdisc.application.ContainerBuilder
- serverProviders() - Method in class com.yahoo.jdisc.core.ActiveContainer
- ServerRepository - Class in com.yahoo.jdisc.application
-
This is a repository of
ServerProvider
s. - ServerRepository(GuiceRepository) - Constructor for class com.yahoo.jdisc.application.ServerRepository
- SERVICE_UNAVAILABLE - Static variable in interface com.yahoo.jdisc.Response.Status
- set(String, Number, Metric.Context) - Method in interface com.yahoo.jdisc.application.MetricConsumer
-
Consume a call to
Metric.set(String, Number, Metric.Context)
. - set(String, Number, Metric.Context) - Method in interface com.yahoo.jdisc.Metric
-
Set a metric value.
- set(String, Number, Metric.Context) - Method in class com.yahoo.jdisc.test.MockMetric
- setAppContext(Object) - Method in class com.yahoo.jdisc.application.ContainerBuilder
- setBindingMatch(BindingMatch<RequestHandler>) - Method in class com.yahoo.jdisc.Request
-
Sets the last resolved
BindingMatch
of this Request. - setCachePath(String) - Method in class com.yahoo.jdisc.core.FelixParams
- setError(Throwable) - Method in class com.yahoo.jdisc.Response
-
Sets the error of this response.
- setLoggerEnabled(boolean) - Method in class com.yahoo.jdisc.core.FelixParams
- setMillis(long) - Method in class com.yahoo.jdisc.test.TestTimer
- setRequestType(Request.RequestType) - Method in class com.yahoo.jdisc.Response
-
Sets the type classification of this request for metric collection purposes
- setStatus(int) - Method in class com.yahoo.jdisc.Response
-
Sets the status code of this response.
- setTimeout(long, TimeUnit) - Method in class com.yahoo.jdisc.handler.ThreadedRequestHandler
-
Sets the timeout that this ThreadedRequestHandler sets on all handled
Request
s. - setTimeout(long, TimeUnit) - Method in class com.yahoo.jdisc.Request
-
Sets the allocated time that this Request is allowed to exist before the corresponding call to
ResponseHandler.handleResponse(Response)
must have been made. - setTimeoutManager(TimeoutManager) - Method in class com.yahoo.jdisc.Request
-
Sets a
TimeoutManager
to be called whenRequest.setTimeout(long, TimeUnit)
is invoked. - SharedResource - Interface in com.yahoo.jdisc
-
This interface defines a reference counted resource.
- SharedResource.Debug - Enum Class in com.yahoo.jdisc
- shutdown() - Method in class com.yahoo.jdisc.client.AbstractClientApplication
- shutdown() - Method in class com.yahoo.jdisc.core.ActiveContainer
- shutdown() - Method in class com.yahoo.jdisc.core.TimeoutManagerImpl
- SIMPLE - Enum constant in enum class com.yahoo.jdisc.SharedResource.Debug
- size() - Method in class com.yahoo.jdisc.HeaderFields
- STACK - Enum constant in enum class com.yahoo.jdisc.SharedResource.Debug
- StandaloneMain - Class in com.yahoo.jdisc.core
- StandaloneMain() - Constructor for class com.yahoo.jdisc.core.StandaloneMain
- start() - Method in interface com.yahoo.jdisc.application.Application
-
This method is called by the
ApplicationLoader
just after creating this Application instance. - start() - Method in interface com.yahoo.jdisc.application.OsgiFramework
-
This method starts the framework instance.
- start() - Method in class com.yahoo.jdisc.core.ApplicationLoader
- start() - Method in interface com.yahoo.jdisc.core.BootstrapLoader
- start() - Method in class com.yahoo.jdisc.core.FelixFramework
- start() - Method in class com.yahoo.jdisc.core.TimeoutManagerImpl
- start() - Method in class com.yahoo.jdisc.service.AbstractClientProvider
- start() - Method in interface com.yahoo.jdisc.service.ClientProvider
-
This is a synchronous method to configure this ClientProvider.
- start() - Method in interface com.yahoo.jdisc.service.ServerProvider
-
This is a synchronous method to configure this ServerProvider and bind the listen port (or equivalent).
- start() - Method in class com.yahoo.jdisc.test.NonWorkingClientProvider
- start() - Method in class com.yahoo.jdisc.test.NonWorkingOsgiFramework
- start() - Method in class com.yahoo.jdisc.test.NonWorkingServerProvider
- start(BundleContext) - Method in class com.yahoo.jdisc.core.BundleCollisionHook
- startBundles(List<Bundle>, boolean) - Method in interface com.yahoo.jdisc.application.OsgiFramework
-
Starts the given
Bundle
s. - startBundles(List<Bundle>, boolean) - Method in class com.yahoo.jdisc.core.FelixFramework
- startBundles(List<Bundle>, boolean) - Method in class com.yahoo.jdisc.test.NonWorkingOsgiFramework
- stop() - Method in class com.yahoo.jdisc.application.AbstractApplication
- stop() - Method in interface com.yahoo.jdisc.application.Application
-
This method is called by the
ApplicationLoader
after the corresponding signal has been issued by the controlling start script. - stop() - Method in interface com.yahoo.jdisc.application.OsgiFramework
-
Synchronously shut down the framework.
- stop() - Method in class com.yahoo.jdisc.core.ApplicationLoader
- stop() - Method in interface com.yahoo.jdisc.core.BootstrapLoader
- stop() - Method in class com.yahoo.jdisc.core.BundleCollisionHook
- stop() - Method in class com.yahoo.jdisc.core.FelixFramework
- stop() - Method in class com.yahoo.jdisc.test.NonWorkingOsgiFramework
- stopAndUninstall(Iterable<Bundle>) - Method in class com.yahoo.jdisc.application.BundleInstaller
- stopAndUninstall(Bundle...) - Method in class com.yahoo.jdisc.application.BundleInstaller
- stopAndUninstallBundle(Iterable<Bundle>) - Method in class com.yahoo.jdisc.application.AbstractApplication
- stopAndUninstallBundle(Bundle...) - Method in class com.yahoo.jdisc.application.AbstractApplication
- SWITCHING_PROTOCOLS - Static variable in interface com.yahoo.jdisc.Response.Status
- symbolicName() - Method in record class com.yahoo.jdisc.application.BsnVersion
-
Returns the value of the
symbolicName
record component. - SYSTEM_PROPERTY_NAME_DEBUG - Static variable in interface com.yahoo.jdisc.SharedResource
- SystemTimer - Class in com.yahoo.jdisc.core
-
A timer which returns the System time
- SystemTimer() - Constructor for class com.yahoo.jdisc.core.SystemTimer
T
- target() - Method in class com.yahoo.jdisc.application.BindingMatch
-
Returns the matched target.
- TEMPORARY_REDIRECT - Static variable in interface com.yahoo.jdisc.Response.Status
- testBindingNotFoundException() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testBindingSetNotFoundException() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testContainerNotReadyException() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- TestDriver - Class in com.yahoo.jdisc.test
-
This class provides a unified way to set up and run unit tests on jDISC components.
- testNoBindingSetSelectedException() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionAfterResponseCloseNoContent() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionAfterResponseCloseNoContentWithAsyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionAfterResponseCloseNoContentWithAsyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionAfterResponseCloseNoContentWithSyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionAfterResponseCloseNoContentWithSyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionAfterResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionAfterResponseWriteWithAsyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionAfterResponseWriteWithAsyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionAfterResponseWriteWithSyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionAfterResponseWriteWithSyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionBeforeResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionBeforeResponseWriteWithAsyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionBeforeResponseWriteWithAsyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionBeforeResponseWriteWithSyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseExceptionBeforeResponseWriteWithSyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseNondeterministicException() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseNondeterministicExceptionWithAsyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseNondeterministicExceptionWithAsyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseNondeterministicExceptionWithSyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseNondeterministicExceptionWithSyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseWithAsyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseWithAsyncFailureAfterResponseCloseNoContent() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseWithAsyncFailureAfterResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseWithAsyncFailureBeforeResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseWithNondeterministicAsyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseWithNondeterministicSyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseWithSyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseWithSyncFailureAfterResponseCloseNoContent() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseWithSyncFailureAfterResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentCloseWithSyncFailureBeforeResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionAfterResponseCloseNoContent() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionAfterResponseCloseNoContentWithAsyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionAfterResponseCloseNoContentWithSyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionAfterResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionAfterResponseWriteWithAsyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionAfterResponseWriteWithSyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionBeforeResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionBeforeResponseWriteWithAsyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionBeforeResponseWriteWithSyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionWithAsyncFailureAfterResponseCloseNoContent() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionWithAsyncFailureAfterResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionWithAsyncFailureBeforeResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionWithNondeterministicAsyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionWithNondeterministicSyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionWithSyncFailureAfterResponseCloseNoContent() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionWithSyncFailureAfterResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteExceptionWithSyncFailureBeforeResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteNondeterministicException() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteNondeterministicExceptionWithAsyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteNondeterministicExceptionWithSyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteWithAsyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteWithAsyncFailureAfterResponseCloseNoContent() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteWithAsyncFailureAfterResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteWithAsyncFailureBeforeResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteWithNondeterministicAsyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteWithNondeterministicSyncFailure() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteWithSyncCompletion() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteWithSyncFailureAfterResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestContentWriteWithSyncFailureBeforeResponseWrite() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestException() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestExceptionAfterResponseCloseNoContentWithAsyncHandleResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestExceptionAfterResponseWriteWithAsyncHandleResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestExceptionAfterResponseWriteWithSyncHandleResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestExceptionBeforeResponseWriteWithAsyncHandleResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestExceptionBeforeResponseWriteWithSyncHandleResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestExceptionWithSyncCloseResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestExceptionWithSyncWriteResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestHandlerWithAsyncHandleResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestHandlerWithSyncCloseResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestHandlerWithSyncHandleResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestHandlerWithSyncWriteResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestNondeterministicExceptionWithAsyncHandleResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testRequestNondeterministicExceptionWithSyncHandleResponse() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testResponseCloseCompletionException() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testResponseCloseCompletionExceptionNoContent() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- testResponseWriteCompletionException() - Method in class com.yahoo.jdisc.test.ServerProviderConformanceTest
- TestTimer - Class in com.yahoo.jdisc.test
-
A
Timer
to be used in tests when the advancement of time needs to be controlled. - TestTimer() - Constructor for class com.yahoo.jdisc.test.TestTimer
- TestTimer(Instant) - Constructor for class com.yahoo.jdisc.test.TestTimer
- ThreadedRequestHandler - Class in com.yahoo.jdisc.handler
-
This class implements a
RequestHandler
with a synchronousThreadedRequestHandler.handleRequest(Request, BufferedContentChannel, ResponseHandler)
API for handlingRequest
s. - ThreadedRequestHandler(Executor) - Constructor for class com.yahoo.jdisc.handler.ThreadedRequestHandler
- timeElapsed(TimeUnit) - Method in class com.yahoo.jdisc.Request
-
Returns the time that this Request has existed so far.
- TimeoutManager - Interface in com.yahoo.jdisc
-
This interface provides a callback for when the
Request.setTimeout(long, TimeUnit)
is invoked. - TimeoutManagerImpl - Class in com.yahoo.jdisc.core
- TimeoutManagerImpl(ThreadFactory, Timer) - Constructor for class com.yahoo.jdisc.core.TimeoutManagerImpl
- Timer - Interface in com.yahoo.jdisc
-
This class provides access to the current time in milliseconds, as viewed by the
Container
. - Timer.ClockAdapter - Class in com.yahoo.jdisc
- timeRemaining(TimeUnit) - Method in class com.yahoo.jdisc.Request
-
Returns the time that this Request is allowed to exist.
- toConfig() - Method in class com.yahoo.jdisc.core.FelixParams
- TOO_MANY_REQUESTS - Static variable in interface com.yahoo.jdisc.Response.Status
- toReadable() - Method in class com.yahoo.jdisc.handler.BufferedContentChannel
-
Creates a
ReadableContentChannel
andconnects
to it. - toReadableString() - Method in record class com.yahoo.jdisc.application.BsnVersion
- toStream() - Method in class com.yahoo.jdisc.handler.BufferedContentChannel
-
Creates a
ContentInputStream
andconnects
to its internal ContentChannel. - toStream() - Method in class com.yahoo.jdisc.handler.ReadableContentChannel
-
Creates a
ContentInputStream
that wraps this ReadableContentChannel. - toString() - Method in record class com.yahoo.jdisc.application.BsnVersion
-
Returns a string representation of this record class.
- toString() - Method in class com.yahoo.jdisc.application.UriPattern
- toString() - Method in class com.yahoo.jdisc.HeaderFields
- toString() - Method in class com.yahoo.jdisc.test.MockMetric
- TOTAL_DEACTIVATED_CONTAINERS - Static variable in interface com.yahoo.jdisc.statistics.ContainerWatchdogMetrics
- toUtcClock() - Method in interface com.yahoo.jdisc.Timer
-
Return a UTC Clock backed by this timer.
U
- UNAUTHORIZED - Static variable in interface com.yahoo.jdisc.Response.Status
- uninstall(Module) - Method in class com.yahoo.jdisc.application.GuiceRepository
- uninstall(ServerProvider) - Method in class com.yahoo.jdisc.application.ServerRepository
- uninstallAll(Iterable<? extends Module>) - Method in class com.yahoo.jdisc.application.GuiceRepository
- uninstallAll(Iterable<? extends ServerProvider>) - Method in class com.yahoo.jdisc.application.ServerRepository
- UNPROCESSABLE_ENTITY - Static variable in interface com.yahoo.jdisc.Response.Status
- UnsafeContentInputStream - Class in com.yahoo.jdisc.handler
-
This class provides an adapter from a
ReadableContentChannel
to an InputStream. - UnsafeContentInputStream(ReadableContentChannel) - Constructor for class com.yahoo.jdisc.handler.UnsafeContentInputStream
-
Constructs a new ContentInputStream that reads from the given
ReadableContentChannel
. - unscheduleTimeout(Request) - Method in interface com.yahoo.jdisc.TimeoutManager
-
Unschedule timeout management for a previously scheduled request.
- UNSUPPORTED_MEDIA_TYPE - Static variable in interface com.yahoo.jdisc.Response.Status
- uri() - Method in exception com.yahoo.jdisc.handler.BindingNotFoundException
-
Returns the
URI
that has no binding. - uri() - Method in exception com.yahoo.jdisc.service.NoBindingSetSelectedException
-
Returns the
URI
for which there was noBindingSet
selected. - UriPattern - Class in com.yahoo.jdisc.application
-
This class holds a regular expression designed so that it only matches certain
URI
s. - UriPattern(String) - Constructor for class com.yahoo.jdisc.application.UriPattern
-
Creates a new instance of this class that represents the given pattern string, with a priority of
0
. - UriPattern.Match - Class in com.yahoo.jdisc.application
-
This class holds the result of a
UriPattern.match(URI)
operation. - USE_PROXY - Static variable in interface com.yahoo.jdisc.Response.Status
V
- validateResponse(V) - Method in interface com.yahoo.jdisc.test.ServerProviderConformanceTest.Adapter
- valueOf(String) - Static method in enum class com.yahoo.jdisc.Request.RequestType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yahoo.jdisc.SharedResource.Debug
-
Returns the enum constant of this class with the specified name.
- values() - Method in class com.yahoo.jdisc.HeaderFields
- values() - Static method in enum class com.yahoo.jdisc.Request.RequestType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yahoo.jdisc.SharedResource.Debug
-
Returns an array containing the constants of this enum class, in the order they are declared.
- version() - Method in record class com.yahoo.jdisc.application.BsnVersion
-
Returns the value of the
version
record component. - VERSION_NOT_SUPPORTED - Static variable in interface com.yahoo.jdisc.Response.Status
W
- withZone(ZoneId) - Method in class com.yahoo.jdisc.Timer.ClockAdapter
- write(byte[]) - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
- write(byte[]) - Method in class com.yahoo.jdisc.handler.FastContentWriter
-
This is a convenience method to convert the given byte array into a ByteBuffer object, and then passing that to
FastContentWriter.write(java.nio.ByteBuffer)
. - write(byte[], int, int) - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
- write(byte[], int, int) - Method in class com.yahoo.jdisc.handler.FastContentWriter
-
This is a convenience method to convert a subarray of the given byte array into a ByteBuffer object, and then passing that to
FastContentWriter.write(java.nio.ByteBuffer)
. - write(int) - Method in class com.yahoo.jdisc.handler.FastContentOutputStream
- write(String) - Method in class com.yahoo.jdisc.handler.FastContentWriter
-
This is a convenience method to convert the given string to a ByteBuffer of UTF8 bytes, and then passing that to
FastContentWriter.write(ByteBuffer)
. - write(ByteBuffer) - Method in class com.yahoo.jdisc.handler.BlockingContentWriter
-
Writes to the underlying
ContentChannel
and waits for the operation to complete. - write(ByteBuffer) - Method in class com.yahoo.jdisc.handler.FastContentWriter
-
Writes to the underlying
ContentChannel
. - write(ByteBuffer, CompletionHandler) - Method in class com.yahoo.jdisc.handler.BufferedContentChannel
- write(ByteBuffer, CompletionHandler) - Method in interface com.yahoo.jdisc.handler.ContentChannel
-
Schedules the given
ByteBuffer
to be written to the content corresponding to this ContentChannel. - write(ByteBuffer, CompletionHandler) - Method in class com.yahoo.jdisc.handler.NullContent
- write(ByteBuffer, CompletionHandler) - Method in class com.yahoo.jdisc.handler.ReadableContentChannel
- write(ByteBuffer, CompletionHandler) - Method in class com.yahoo.jdisc.test.NonWorkingContentChannel
- WRITE - Enum constant in enum class com.yahoo.jdisc.Request.RequestType
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form