Class State
- java.lang.Object
-
- org.apache.felix.configurator.impl.model.AbstractState
-
- org.apache.felix.configurator.impl.model.State
-
- All Implemented Interfaces:
Serializable
public class State extends AbstractState implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description State()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAll(String pid, ConfigList configs)Add all configurations for a pidvoidcheckEnvironments(long bundleId)Mark all configurations from that bundle as changed to reprocess themstatic StatecreateOrReadState(File f)Set<Long>getBundleIdsUsingConfigAdmin()LonggetConfigAdminBundleId(long bundleId)Set<String>getInitialHashes()Set<Long>getKnownBundleIds()LonggetLastModified(long bundleId)voidremoveConfigAdminBundleId(long bundleId)voidremoveLastModified(long bundleId)voidsetConfigAdminBundleId(long bundleId, long lastModified)voidsetInitialHashes(Set<String> value)voidsetLastModified(long bundleId, long lastModified)StringtoString()static voidwriteState(File f, State state)-
Methods inherited from class org.apache.felix.configurator.impl.model.AbstractState
add, getConfigurations, getConfigurations, getPids
-
-
-
-
Field Detail
-
FILE_NAME
public static final String FILE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createOrReadState
public static State createOrReadState(File f) throws ClassNotFoundException, IOException
- Throws:
ClassNotFoundExceptionIOException
-
writeState
public static void writeState(File f, State state) throws IOException
- Throws:
IOException
-
getLastModified
public Long getLastModified(long bundleId)
-
setLastModified
public void setLastModified(long bundleId, long lastModified)
-
removeLastModified
public void removeLastModified(long bundleId)
-
getConfigAdminBundleId
public Long getConfigAdminBundleId(long bundleId)
-
setConfigAdminBundleId
public void setConfigAdminBundleId(long bundleId, long lastModified)
-
removeConfigAdminBundleId
public void removeConfigAdminBundleId(long bundleId)
-
addAll
public void addAll(String pid, ConfigList configs)
Add all configurations for a pid- Parameters:
pid- The pidconfigs- The list of configurations
-
checkEnvironments
public void checkEnvironments(long bundleId)
Mark all configurations from that bundle as changed to reprocess them- Parameters:
bundleId- The bundle id
-
-