public class FrontendRestRequestServiceFactory
extends java.lang.Object
implements com.github.ambry.rest.RestRequestServiceFactory
RestRequestServiceFactory
.
Sets up all the supporting cast required for the operation of FrontendRestRequestService
and returns a new
instance on getRestRequestService()
.Constructor and Description |
---|
FrontendRestRequestServiceFactory(com.github.ambry.config.VerifiableProperties verifiableProperties,
com.github.ambry.clustermap.ClusterMap clusterMap,
com.github.ambry.router.Router router,
com.github.ambry.account.AccountService accountService)
Creates a new instance of FrontendRestRequestServiceFactory.
|
Modifier and Type | Method and Description |
---|---|
com.github.ambry.rest.RestRequestService |
getRestRequestService()
Returns a new instance of
FrontendRestRequestService . |
public FrontendRestRequestServiceFactory(com.github.ambry.config.VerifiableProperties verifiableProperties, com.github.ambry.clustermap.ClusterMap clusterMap, com.github.ambry.router.Router router, com.github.ambry.account.AccountService accountService)
verifiableProperties
- the properties to use to create configs.clusterMap
- the ClusterMap
to use.router
- the Router
to use.accountService
- the AccountService
to use.java.lang.IllegalArgumentException
- if any of the arguments are null.public com.github.ambry.rest.RestRequestService getRestRequestService()
FrontendRestRequestService
.getRestRequestService
in interface com.github.ambry.rest.RestRequestServiceFactory
FrontendRestRequestService
.