public class StorageState extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BUNDLE_DIRECTORY_PREFIX |
static String |
BUNDLE_PERSISTENT_PROPERTIES |
static String |
PROPERTY_ACTIVATION_POLICY_USED |
static String |
PROPERTY_BUNDLE_FILE |
static String |
PROPERTY_BUNDLE_ID |
static String |
PROPERTY_BUNDLE_LOCATION |
static String |
PROPERTY_BUNDLE_REV |
static String |
PROPERTY_LAST_MODIFIED |
static String |
PROPERTY_PERSISTENTLY_STARTED |
static String |
PROPERTY_START_LEVEL |
Constructor and Description |
---|
StorageState(File storageDir,
org.jboss.osgi.vfs.VirtualFile rootFile,
Properties props) |
Modifier and Type | Method and Description |
---|---|
static StorageState |
createStorageState(File storageDir) |
static StorageState |
createStorageState(File storageDir,
org.jboss.osgi.vfs.VirtualFile rootFile,
Properties props) |
long |
getBundleId() |
long |
getLastModified() |
String |
getLocation() |
Properties |
getProperties() |
int |
getRevisionId() |
org.jboss.osgi.vfs.VirtualFile |
getRootFile() |
int |
getStartLevel() |
File |
getStorageDir() |
boolean |
isBundleActivationPolicyUsed() |
boolean |
isPersistentlyStarted() |
static Properties |
loadProperties(File storageDir) |
void |
setBundleActivationPolicyUsed(boolean usePolicy) |
void |
setPersistentlyStarted(boolean started) |
void |
setStartLevel(int level) |
String |
toString() |
void |
updateLastModified() |
public static final String PROPERTY_BUNDLE_FILE
public static final String PROPERTY_BUNDLE_ID
public static final String PROPERTY_BUNDLE_LOCATION
public static final String PROPERTY_BUNDLE_REV
public static final String PROPERTY_LAST_MODIFIED
public static final String PROPERTY_PERSISTENTLY_STARTED
public static final String PROPERTY_ACTIVATION_POLICY_USED
public static final String PROPERTY_START_LEVEL
public static final String BUNDLE_PERSISTENT_PROPERTIES
public static final String BUNDLE_DIRECTORY_PREFIX
public StorageState(File storageDir, org.jboss.osgi.vfs.VirtualFile rootFile, Properties props)
public static StorageState createStorageState(File storageDir) throws IOException
IOException
public static StorageState createStorageState(File storageDir, org.jboss.osgi.vfs.VirtualFile rootFile, Properties props) throws IOException
IOException
public static Properties loadProperties(File storageDir) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public Properties getProperties()
public File getStorageDir()
public String getLocation()
public org.jboss.osgi.vfs.VirtualFile getRootFile()
public long getBundleId()
public int getRevisionId()
public long getLastModified()
public boolean isPersistentlyStarted()
public boolean isBundleActivationPolicyUsed()
public int getStartLevel()
public void updateLastModified()
public void setPersistentlyStarted(boolean started)
public void setBundleActivationPolicyUsed(boolean usePolicy)
public void setStartLevel(int level)
Copyright © 2013 JBoss by Red Hat. All rights reserved.