public interface WarManager
| Modifier and Type | Field and Description |
|---|---|
static int |
ALREADY_STARTED |
static int |
ALREADY_STOPPED |
static int |
SUCCESS |
static int |
WAR_NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
int |
start(long bundleId,
String contextName)
Starts a war bundle under an optional configurable content name.
|
int |
stop(long bundleId)
Stops a war bundle.
|
static final int SUCCESS
static final int WAR_NOT_FOUND
static final int ALREADY_STARTED
static final int ALREADY_STOPPED
int start(long bundleId,
String contextName)
bundleId - The bundle id that contains the war.contextName - an optional context name to host the war under, if null it
will use the context name configured in the war OSGi metadata.SUCCESS if the war was started, or
WAR_NOT_FOUND if the bundle is not a war bundle, or
ALREADY_STARTED if the war had already been started.int stop(long bundleId)
bundleId - The bundle id that contains the war.Copyright © 2006–2015 OPS4J - Open Participation Software for Java. All rights reserved.