public class Swarm extends Container
main(...) if an application does not provide one.
This simply constructs a default container, starts it and performs a default deployment. Typically only useful for barren WAR applications.
| Modifier and Type | Field and Description |
|---|---|
static ArtifactManager |
ARTIFACT_MANAGER |
| Modifier and Type | Method and Description |
|---|---|
static List<org.jboss.shrinkwrap.api.spec.JavaArchive> |
allArtifacts() |
static org.jboss.shrinkwrap.api.spec.JavaArchive |
artifact(String gav) |
static org.jboss.shrinkwrap.api.spec.JavaArchive |
artifact(String gav,
String asName) |
static ArtifactManager |
artifactManager() |
Swarm |
deploy()
Deploy the default WAR deployment.
|
Swarm |
deploy(org.jboss.shrinkwrap.api.Archive<?> deployment)
Deploy an archive.
|
static void |
factoryMain(ContainerFactory factory,
String... args) |
Swarm |
fraction(org.wildfly.swarm.spi.api.Fraction fraction)
Add a fraction to the container.
|
Swarm |
fraction(Supplier<org.wildfly.swarm.spi.api.Fraction> supplier) |
Swarm |
iface(String name,
String expression)
Configure a network interface.
|
static void |
main(String... args)
Main entry-point.
|
static void |
simpleMain(String... args) |
Swarm |
socketBindingGroup(org.wildfly.swarm.spi.api.SocketBindingGroup group)
Configure a socket-binding-group.
|
Swarm |
start()
Start the container.
|
Swarm |
start(org.jboss.shrinkwrap.api.Archive<?> deployment)
Start the container with a deployment.
|
Swarm |
start(boolean eagerlyOpen) |
Swarm |
stop()
Stop the container, undeploying all deployments.
|
applyFractionDefaults, createDefaultDeployment, createPostInitContext, determineDeploymentType, fractions, getArgs, getSocketBindingGroup, ifaces, isFatJar, outboundSocketBindings, setArgs, socketBindingGroups, socketBindings, stageConfig, withStageConfig, withXmlConfigpublic static ArtifactManager ARTIFACT_MANAGER
public Swarm fraction(org.wildfly.swarm.spi.api.Fraction fraction)
Containerpublic Swarm iface(String name, String expression)
Containerpublic Swarm socketBindingGroup(org.wildfly.swarm.spi.api.SocketBindingGroup group)
ContainersocketBindingGroup in class Containergroup - The socket-binding group to add.public Swarm stop() throws Exception
Containerpublic Swarm start() throws Exception
Containerpublic Swarm start(org.jboss.shrinkwrap.api.Archive<?> deployment) throws Exception
ContainerEffectively calls start().deploy(deployment)
start in class Containerdeployment - The deployment to deploy.Exception - if an error occurs.Container.start(),
Container.deploy(Archive)public Swarm deploy() throws DeploymentException
ContainerFor WAR-based applications, the primary WAR artifact iwll be deployed.
deploy in class ContainerDeploymentException - if an error occurs.public Swarm deploy(org.jboss.shrinkwrap.api.Archive<?> deployment) throws DeploymentException
Containerdeploy in class Containerdeployment - The ShrinkWrap archive to deploy.DeploymentException - if an error occurs.public static void main(String... args) throws Exception
args - Ignored.Exception - if an error occurs.public static void factoryMain(ContainerFactory factory, String... args) throws Exception
Exceptionpublic static ArtifactManager artifactManager() throws IOException
IOExceptionpublic static org.jboss.shrinkwrap.api.spec.JavaArchive artifact(String gav) throws Exception
Exceptionpublic static org.jboss.shrinkwrap.api.spec.JavaArchive artifact(String gav, String asName) throws Exception
ExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.