public class WebconsoleClient extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONSOLE_BUNDLES_PATH |
static String |
JSON_KEY_DATA |
static String |
JSON_KEY_ID |
static String |
JSON_KEY_STATE |
static String |
JSON_KEY_VERSION |
Constructor and Description |
---|
WebconsoleClient(String slingServerUrl,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
void |
checkBundleInstalled(String symbolicName,
int timeoutSeconds)
Check that specified bundle is installed - must be called
before other methods that take a symbolicName parameter,
in case installBundle was just called and the actual
installation hasn't happened yet.
|
long |
getBundleId(String symbolicName)
Get bundle id
|
String |
getBundleState(String symbolicName)
Get specified bundle state
|
String |
getBundleVersion(String symbolicName)
Get bundle version
|
void |
installBundle(File f,
boolean startBundle)
Install a bundle using the Felix webconsole HTTP interface, with a specific start level
|
void |
installBundle(File f,
boolean startBundle,
int startLevel)
Install a bundle using the Felix webconsole HTTP interface, with a specific start level
|
void |
refreshPackages()
Calls PackageAdmin.refreshPackages to enforce re-wiring of all bundles.
|
void |
startBundle(String symbolicName)
Start specified bundle
|
void |
uninstallBundle(String symbolicName,
File f) |
public static final String JSON_KEY_ID
public static final String JSON_KEY_VERSION
public static final String JSON_KEY_DATA
public static final String JSON_KEY_STATE
public static final String CONSOLE_BUNDLES_PATH
public void uninstallBundle(String symbolicName, File f) throws Exception
Exception
public void installBundle(File f, boolean startBundle) throws Exception
Exception
public void installBundle(File f, boolean startBundle, int startLevel) throws Exception
Exception
public void checkBundleInstalled(String symbolicName, int timeoutSeconds)
public long getBundleId(String symbolicName) throws Exception
Exception
public String getBundleVersion(String symbolicName) throws Exception
Exception
public String getBundleState(String symbolicName) throws Exception
Exception
public void startBundle(String symbolicName) throws Exception
Exception
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.