Package com.yahoo.container
Class Container
- java.lang.Object
-
- com.yahoo.container.Container
-
public class Container extends java.lang.Object
The container instance. This is a Vespa internal object, external code should only depend on this if there are no other options, and must be prepared to see it change at no warning.- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description Container()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Container
get()
com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.service.ClientProvider>
getClientProviderRegistry()
com.yahoo.component.provider.ComponentRegistry<com.yahoo.component.AbstractComponent>
getComponentRegistry()
com.yahoo.filedistribution.fileacquirer.FileAcquirer
getFileAcquirer()
com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.handler.RequestHandler>
getRequestHandlerRegistry()
com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.service.ServerProvider>
getServerProviderRegistry()
static void
resetInstance()
Hack.void
setClientProviderRegistry(com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.service.ClientProvider> clientProviderRegistry)
void
setComponentRegistry(com.yahoo.component.provider.ComponentRegistry<com.yahoo.component.AbstractComponent> registry)
void
setCustomFileAcquirer(com.yahoo.filedistribution.fileacquirer.FileAcquirer fileAcquirer)
Only for internal use.void
setRequestHandlerRegistry(com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.handler.RequestHandler> requestHandlerRegistry)
void
setServerProviderRegistry(com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.service.ServerProvider> serverProviderRegistry)
void
setupFileAcquirer(QrConfig.Filedistributor filedistributorConfig)
void
setupUrlDownloader()
void
shutdown()
-
-
-
Method Detail
-
get
public static Container get()
-
shutdown
public void shutdown()
-
getFileAcquirer
public com.yahoo.filedistribution.fileacquirer.FileAcquirer getFileAcquirer()
-
resetInstance
public static void resetInstance()
Hack. For internal use only, will be removed later. Used by Application to be able to repeatedly set up containers.
-
getRequestHandlerRegistry
public com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.handler.RequestHandler> getRequestHandlerRegistry()
-
setRequestHandlerRegistry
public void setRequestHandlerRegistry(com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.handler.RequestHandler> requestHandlerRegistry)
-
getClientProviderRegistry
public com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.service.ClientProvider> getClientProviderRegistry()
-
setClientProviderRegistry
public void setClientProviderRegistry(com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.service.ClientProvider> clientProviderRegistry)
-
getServerProviderRegistry
public com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.service.ServerProvider> getServerProviderRegistry()
-
setServerProviderRegistry
public void setServerProviderRegistry(com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.service.ServerProvider> serverProviderRegistry)
-
getComponentRegistry
public com.yahoo.component.provider.ComponentRegistry<com.yahoo.component.AbstractComponent> getComponentRegistry()
-
setComponentRegistry
public void setComponentRegistry(com.yahoo.component.provider.ComponentRegistry<com.yahoo.component.AbstractComponent> registry)
-
setupFileAcquirer
public void setupFileAcquirer(QrConfig.Filedistributor filedistributorConfig)
-
setCustomFileAcquirer
public void setCustomFileAcquirer(com.yahoo.filedistribution.fileacquirer.FileAcquirer fileAcquirer)
Only for internal use.
-
setupUrlDownloader
public void setupUrlDownloader()
-
-