public class CloudRouterFactory
extends java.lang.Object
implements com.github.ambry.router.RouterFactory
RouterFactory
that creates routers that work with cloud storage.
This is somewhat experimental, written to enable Ambry frontend to talk to Azure. Eventually
the router will need to work with both cloud and data stores.Constructor and Description |
---|
CloudRouterFactory(com.github.ambry.config.VerifiableProperties verifiableProperties,
com.github.ambry.clustermap.ClusterMap clusterMap,
com.github.ambry.notification.NotificationSystem notificationSystem,
com.github.ambry.commons.SSLFactory sslFactory,
com.github.ambry.account.AccountService accountService)
Creates an instance of NonBlockingRouterFactory with the given
verifiableProperties ,
clusterMap and notificationSystem . |
Modifier and Type | Method and Description |
---|---|
com.github.ambry.router.Router |
getRouter()
Construct and return a
NonBlockingRouter that works with cloud storage. |
public CloudRouterFactory(com.github.ambry.config.VerifiableProperties verifiableProperties, com.github.ambry.clustermap.ClusterMap clusterMap, com.github.ambry.notification.NotificationSystem notificationSystem, com.github.ambry.commons.SSLFactory sslFactory, com.github.ambry.account.AccountService accountService) throws java.lang.Exception
verifiableProperties
,
clusterMap
and notificationSystem
.verifiableProperties
- the in-memory properties to use to construct configurations.clusterMap
- the ClusterMap
to use to determine where operations should go.notificationSystem
- the NotificationSystem
to use to log operations.sslFactory
- the SSLFactory
to support SSL transmissions. Required if SSL is enabled for any
datacenters.accountService
- the AccountService
to use.java.lang.Exception
- if any of the arguments are null or if instantiation of KMS or CryptoService failspublic com.github.ambry.router.Router getRouter() throws java.lang.InstantiationException
NonBlockingRouter
that works with cloud storage.getRouter
in interface com.github.ambry.router.RouterFactory
NonBlockingRouter
java.lang.InstantiationException