@Beta public final class Application extends Object implements AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
Application.Builder
A wrapper around ApplicationBuilder that generates a services.xml
|
Modifier and Type | Field and Description |
---|---|
private JDisc |
container |
private List<com.yahoo.application.content.ContentCluster> |
contentClusters |
private boolean |
deletePathWhenClosing |
private Path |
path |
static String |
vespaLocalProperty
This system property is set to "true" upon creation of an Application.
|
Constructor and Description |
---|
Application(Path path,
Networking networking,
boolean deletePathWhenClosing) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down all services.
|
private com.yahoo.vespa.model.VespaModel |
createVespaModel() |
static Application |
fromApplicationPackage(File file,
Networking networking)
Factory method to create an Application from an application package.
|
static Application |
fromApplicationPackage(Path path,
Networking networking)
Factory method to create an Application from an application package.
|
static Application |
fromBuilder(Application.Builder builder) |
static Application |
fromServicesXml(String xml,
Networking networking)
Factory method to create an Application from an XML String.
|
JDisc |
getJDisc(String id) |
public static final String vespaLocalProperty
private final JDisc container
private final List<com.yahoo.application.content.ContentCluster> contentClusters
private final Path path
private final boolean deletePathWhenClosing
Application(Path path, Networking networking, boolean deletePathWhenClosing)
@Beta public static Application fromBuilder(Application.Builder builder) throws Exception
Exception
public static Application fromServicesXml(String xml, Networking networking)
fromApplicationPackage(Path, Networking)
.xml
- the XML configuration to usepublic static Application fromApplicationPackage(Path path, Networking networking)
path
- the reference to the application package to usepublic static Application fromApplicationPackage(File file, Networking networking)
file
- the reference to the application package to useprivate com.yahoo.vespa.model.VespaModel createVespaModel()
public JDisc getJDisc(String id)
id
- from the jdisc element in services xml. Default id in services.xml is "jdisc"public void close()
close
in interface AutoCloseable
Copyright © 2018. All rights reserved.