public class State extends AbstractState implements Serializable
Constructor and Description |
---|
State() |
Modifier and Type | Method and Description |
---|---|
void |
addAll(String pid,
ConfigList configs)
Add all configurations for a pid
|
void |
checkEnvironments(long bundleId)
Mark all configurations from that bundle as changed to reprocess them
|
static 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) |
add, getConfigurations, getConfigurations, getPids
public static final String FILE_NAME
public static State createOrReadState(File f) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
public static void writeState(File f, State state) throws IOException
IOException
public Long getLastModified(long bundleId)
public void setLastModified(long bundleId, long lastModified)
public void removeLastModified(long bundleId)
public Long getConfigAdminBundleId(long bundleId)
public void setConfigAdminBundleId(long bundleId, long lastModified)
public void removeConfigAdminBundleId(long bundleId)
public void addAll(String pid, ConfigList configs)
pid
- The pidconfigs
- The list of configurationspublic void checkEnvironments(long bundleId)
bundleId
- The bundle idCopyright © 2006–2020 The Apache Software Foundation. All rights reserved.