Package org.bsc.confluence
Class DeployStateManager
- java.lang.Object
-
- org.bsc.confluence.DeployStateManager
-
public class DeployStateManager extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeployStateManager.Data
-
Field Summary
Fields Modifier and Type Field Description static String
STORAGE_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeployStateManager
clear()
static javax.json.JsonNumber
createValue(int value)
static javax.json.JsonString
createValue(String value)
Optional<DeployStateManager.Data>
getAttributes(URI uri)
<U> CompletableFuture<U>
isUpdated(URI uri, DeployStateManager.Data attributes, Supplier<CompletableFuture<U>> yes, Supplier<CompletableFuture<U>> no)
static DeployStateManager
load(String endpoint, Path outdir)
factory methodboolean
removeState(URI uri)
DeployStateManager
save()
void
setAttributes(URI uri, DeployStateManager.Data attributes)
String
toString()
-
-
-
Field Detail
-
STORAGE_NAME
public static final String STORAGE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createValue
public static javax.json.JsonString createValue(String value)
-
createValue
public static javax.json.JsonNumber createValue(int value)
-
load
public static DeployStateManager load(String endpoint, Path outdir)
factory method- Parameters:
endpoint
-
-
save
public DeployStateManager save()
-
isUpdated
public <U> CompletableFuture<U> isUpdated(URI uri, DeployStateManager.Data attributes, Supplier<CompletableFuture<U>> yes, Supplier<CompletableFuture<U>> no)
- Type Parameters:
U
-- Parameters:
uri
-attributes
-yes
-no
-- Returns:
-
getAttributes
public Optional<DeployStateManager.Data> getAttributes(URI uri)
- Parameters:
uri
-- Returns:
-
setAttributes
public void setAttributes(URI uri, DeployStateManager.Data attributes)
- Parameters:
uri
-attributes
-
-
clear
public DeployStateManager clear()
-
removeState
public boolean removeState(URI uri)
- Parameters:
uri
-- Returns:
-
-