Class 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 of RestRequestServiceFactory.

    Sets up all the supporting cast required for the operation of FrontendRestRequestService and returns a new instance on getRestRequestService().

    • 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 of FrontendRestRequestService.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 - the ClusterMap to use.
        router - the Router to use.
        accountService - the AccountService 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 of FrontendRestRequestService.
        Specified by:
        getRestRequestService in interface com.github.ambry.rest.RestRequestServiceFactory
        Returns:
        a new instance of FrontendRestRequestService.