Package com.github.ambry.cloud
Class VcrServer
- java.lang.Object
-
- com.github.ambry.cloud.VcrServer
-
public class VcrServer extends java.lang.Object
Virtual Cloud Replicator server
-
-
Constructor Summary
Constructors Constructor Description VcrServer(com.github.ambry.config.VerifiableProperties properties, com.github.ambry.clustermap.ClusterAgentsFactory clusterAgentsFactory, com.github.ambry.notification.NotificationSystem notificationSystem)
VcrServer constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitShutdown(int timeoutMs)
VcrReplicationManager
getVcrReplicationManager()
com.github.ambry.clustermap.VirtualReplicatorCluster
getVirtualReplicatorCluster()
void
shutdown()
This method is expected to be called in the exit path as long as the AmbryServer instance construction was successful.void
startup()
Start the VCR Server.
-
-
-
Constructor Detail
-
VcrServer
public VcrServer(com.github.ambry.config.VerifiableProperties properties, com.github.ambry.clustermap.ClusterAgentsFactory clusterAgentsFactory, com.github.ambry.notification.NotificationSystem notificationSystem)
VcrServer constructor.- Parameters:
properties
- the config properties to use.clusterAgentsFactory
- theClusterAgentsFactory
to use.notificationSystem
- theNotificationSystem
to use.
-
-
Method Detail
-
startup
public void startup() throws java.lang.InstantiationException
Start the VCR Server.- Throws:
java.lang.InstantiationException
- if an error was encountered during startup.
-
shutdown
public void shutdown()
This method is expected to be called in the exit path as long as the AmbryServer instance construction was successful. This is expected to be called even ifstartup()
did not succeed.
-
awaitShutdown
public boolean awaitShutdown(int timeoutMs) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
getVirtualReplicatorCluster
public com.github.ambry.clustermap.VirtualReplicatorCluster getVirtualReplicatorCluster()
-
getVcrReplicationManager
public VcrReplicationManager getVcrReplicationManager()
-
-