Package me.ahoo.cosid.proxy.api
Interface MachineApi
- All Known Subinterfaces:
MachineClient
@HttpExchange("machines/{namespace}")
public interface MachineApi
-
Method Summary
Modifier and TypeMethodDescriptiondistribute
(String namespace, int machineBit, String instanceId, boolean stable, String safeGuardDuration) void
void
-
Method Details
-
distribute
@PostExchange MachineState distribute(@PathVariable String namespace, @RequestParam int machineBit, @RequestParam String instanceId, @RequestParam boolean stable, @RequestParam String safeGuardDuration) throws MachineIdOverflowException - Throws:
MachineIdOverflowException
-
revert
-
guard
@PatchExchange void guard(@PathVariable String namespace, @RequestParam String instanceId, @RequestParam boolean stable, @RequestParam String safeGuardDuration) throws MachineIdLostException - Throws:
MachineIdLostException
-