Package com.github.ambry.frontend
Class FrontendRestRequestServiceFactory
- java.lang.Object
-
- com.github.ambry.frontend.FrontendRestRequestServiceFactory
-
- All Implemented Interfaces:
com.github.ambry.rest.RestRequestServiceFactory
public class FrontendRestRequestServiceFactory extends java.lang.Object implements com.github.ambry.rest.RestRequestServiceFactory
Ambry frontend specific implementation ofRestRequestServiceFactory
. Sets up all the supporting cast required for the operation ofFrontendRestRequestService
and returns a new instance ongetRestRequestService()
.
-
-
Constructor Summary
Constructors Constructor 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, com.github.ambry.quota.QuotaManager quotaManager)
Creates a new instance of FrontendRestRequestServiceFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.ambry.rest.RestRequestService
getRestRequestService()
Returns a new instance ofFrontendRestRequestService
.
-
-
-
Constructor Detail
-
FrontendRestRequestServiceFactory
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, com.github.ambry.quota.QuotaManager quotaManager)
Creates a new instance of FrontendRestRequestServiceFactory.- Parameters:
verifiableProperties
- the properties to use to create configs.clusterMap
- theClusterMap
to use.router
- theRouter
to use.accountService
- theAccountService
to use.- Throws:
java.lang.IllegalArgumentException
- if any of the arguments are null.
-
-
Method Detail
-
getRestRequestService
public com.github.ambry.rest.RestRequestService getRestRequestService()
Returns a new instance ofFrontendRestRequestService
.- Specified by:
getRestRequestService
in interfacecom.github.ambry.rest.RestRequestServiceFactory
- Returns:
- a new instance of
FrontendRestRequestService
.
-
-