X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.api.cms%2Fsrc%2Forg%2Fargeo%2Fapi%2Fcms%2FCmsState.java;h=3ccf0320687c62c3bacb4ba3c5044e0e29351f52;hb=369abbec35158f11bcca3651c1c3f2f7d6652226;hp=3828b080b6e029983de83f2311051243ca870ee1;hpb=da9d144b6b241e1526a3bd255dff905a7969a5bc;p=lgpl%2Fargeo-commons.git
diff --git a/org.argeo.api.cms/src/org/argeo/api/cms/CmsState.java b/org.argeo.api.cms/src/org/argeo/api/cms/CmsState.java
index 3828b080b..3ccf03206 100644
--- a/org.argeo.api.cms/src/org/argeo/api/cms/CmsState.java
+++ b/org.argeo.api.cms/src/org/argeo/api/cms/CmsState.java
@@ -1,12 +1,31 @@
package org.argeo.api.cms;
+import java.nio.file.Path;
+import java.util.List;
import java.util.UUID;
/** A running node process. */
public interface CmsState {
+ /** Local host on which this state is running. */
String getHostname();
+ /** Since when this state has been available. */
Long getAvailableSince();
UUID getUuid();
+
+ /** A deploy property, or null
if it is not set. */
+ String getDeployProperty(String property);
+
+ /**
+ * A list of size of the max count for this property, with null values when the
+ * property is not set, or an empty list (size 0) if this property is unknown.
+ */
+ List getDeployProperties(String property);
+
+ /** A local path in the data area. */
+ Path getDataPath(String relativePath);
+
+ /** A local path in the state area. */
+ Path getStatePath(String relativePath);
}