Package uk.co.ractf.polaris.controller
Class ConsulController
- java.lang.Object
-
- uk.co.ractf.polaris.controller.ConsulController
-
- All Implemented Interfaces:
io.dropwizard.lifecycle.Managed,Controller
public class ConsulController extends java.lang.Object implements Controller, io.dropwizard.lifecycle.Managed
-
-
Constructor Summary
Constructors Constructor Description ConsulController(java.util.Set<com.google.common.util.concurrent.Service> services, ClusterState clusterState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceAllocatorgetInstanceAllocator()Returns theInstanceAllocatorthat should be used to decide whichInstances are allocated to which usersvoidstart()voidstop()
-
-
-
Constructor Detail
-
ConsulController
@Inject public ConsulController(java.util.Set<com.google.common.util.concurrent.Service> services, ClusterState clusterState)
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceio.dropwizard.lifecycle.Managed
-
stop
public void stop()
- Specified by:
stopin interfaceio.dropwizard.lifecycle.Managed
-
getInstanceAllocator
public InstanceAllocator getInstanceAllocator()
Description copied from interface:ControllerReturns theInstanceAllocatorthat should be used to decide whichInstances are allocated to which users- Specified by:
getInstanceAllocatorin interfaceController- Returns:
- the instance allocator
-
-