@Beta
public interface PiPipeconfService
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
bindToDevice(PiPipeconfId pipeconfId,
DeviceId deviceId)
Binds the given pipeconf to the given infrastructure device.
|
java.util.Optional<PiPipeconf> |
getPipeconf(PiPipeconfId id)
Returns the pipeconf instance associated with the given identifier, if present.
|
java.lang.Iterable<PiPipeconf> |
getPipeconfs()
Returns all pipeconfs registered.
|
java.util.Optional<PiPipeconfId> |
ofDevice(DeviceId deviceId)
Returns the pipeconf identifier currently associated with the given device identifier, if present.
|
void |
register(PiPipeconf pipeconf)
Registers the given pipeconf.
|
void |
remove(PiPipeconfId pipeconfId)
Unregisters the Pipeconf identified by the given PiPipeconfId.
|
void register(PiPipeconf pipeconf) throws java.lang.IllegalStateException
pipeconf
- a pipeconfjava.lang.IllegalStateException
- if the same pipeconf identifier is already registered.void remove(PiPipeconfId pipeconfId) throws java.lang.IllegalStateException
pipeconfId
- a pipeconfIdjava.lang.IllegalStateException
- if the same pipeconf identifier is already registered.java.lang.Iterable<PiPipeconf> getPipeconfs()
java.util.Optional<PiPipeconf> getPipeconf(PiPipeconfId id)
id
- a pipeconf identifierjava.util.concurrent.CompletableFuture<java.lang.Boolean> bindToDevice(PiPipeconfId pipeconfId, DeviceId deviceId)
deviceId
- a device identifierpipeconfId
- a pipeconf identifierjava.util.Optional<PiPipeconfId> ofDevice(DeviceId deviceId)
deviceId
- device identifier