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 void
addAll(String pid, ConfigList configs)
Add all configurations for a pidvoid
checkEnvironments(long bundleId)
Mark all configurations from that bundle as changed to reprocess themstatic State
createOrReadState(File f)
Set<Long>
getBundleIdsUsingConfigAdmin()
Long
getConfigAdminBundleId(long bundleId)
Set<String>
getInitialHashes()
Set<Long>
getKnownBundleIds()
Long
getLastModified(long bundleId)
void
removeConfigAdminBundleId(long bundleId)
void
removeLastModified(long bundleId)
void
setConfigAdminBundleId(long bundleId, long lastModified)
void
setInitialHashes(Set<String> value)
void
setLastModified(long bundleId, long lastModified)
String
toString()
static void
writeState(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:
ClassNotFoundException
IOException
-
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
-
-