public interface BServer
Modifier and Type | Method and Description |
---|---|
void |
killServer()
Forcefully kills the server.
|
void |
shutdownServer()
Stops the server started by startServer method.
|
void |
startServer(String balFile)
Start ballerina server passing provided .bal files.
|
void |
startServer(String balFile,
int[] requiredPorts)
Start ballerina server passing provided .bal files.
|
void |
startServer(String sourceRoot,
String packagePath)
Start ballerina server passing provided bal package.
|
void |
startServer(String balFile,
String[] args,
int[] requiredPorts)
Start ballerina server passing provided .bal files.
|
void |
startServer(String balFile,
String[] args,
Map<String,String> envProperties,
int[] requiredPorts)
Start ballerina server passing provided .bal files.
|
void |
startServer(String sourceRoot,
String packagePath,
int[] requiredPorts)
Start ballerina server passing provided bal package.
|
void |
startServer(String sourceRoot,
String packagePath,
String[] args,
int[] requiredPorts)
Start ballerina server passing provided bal package.
|
void |
startServer(String sourceRoot,
String packagePath,
String[] args,
Map<String,String> envProperties,
int[] requiredPorts)
Start ballerina server passing provided bal package.
|
void startServer(String balFile) throws BallerinaTestException
balFile
- bal file pathBallerinaTestException
- if services start failsvoid startServer(String balFile, int[] requiredPorts) throws BallerinaTestException
balFile
- bal file pathrequiredPorts
- ports required for the server instanceBallerinaTestException
- if services start failsvoid startServer(String balFile, String[] args, int[] requiredPorts) throws BallerinaTestException
balFile
- bal file pathargs
- arguments to passrequiredPorts
- ports required for the server instanceBallerinaTestException
- if services start failsvoid startServer(String balFile, String[] args, Map<String,String> envProperties, int[] requiredPorts) throws BallerinaTestException
balFile
- bal file pathargs
- arguments to passenvProperties
- environment propertiesrequiredPorts
- ports required for the server instanceBallerinaTestException
- if services start failsvoid startServer(String sourceRoot, String packagePath) throws BallerinaTestException
sourceRoot
- source root directorypackagePath
- package pathBallerinaTestException
- if starting failsvoid startServer(String sourceRoot, String packagePath, int[] requiredPorts) throws BallerinaTestException
sourceRoot
- source root directorypackagePath
- package pathrequiredPorts
- ports required for the server instanceBallerinaTestException
- if starting failsvoid startServer(String sourceRoot, String packagePath, String[] args, int[] requiredPorts) throws BallerinaTestException
sourceRoot
- source root directorypackagePath
- package pathargs
- arguments to parserequiredPorts
- ports required for the server instanceBallerinaTestException
- if starting failsvoid startServer(String sourceRoot, String packagePath, String[] args, Map<String,String> envProperties, int[] requiredPorts) throws BallerinaTestException
sourceRoot
- source root directorypackagePath
- package pathargs
- arguments to parseenvProperties
- environment propertiesrequiredPorts
- ports required for the server instanceBallerinaTestException
- if starting failsvoid shutdownServer() throws BallerinaTestException
BallerinaTestException
- if service stop failsvoid killServer() throws BallerinaTestException
BallerinaTestException
- if service stop failsCopyright © 2018 WSO2. All rights reserved.