Constructor and Description |
---|
BMainInstance(BalServer balServer) |
Modifier and Type | Method and Description |
---|---|
void |
runMain(String balFile)
Run ballerina main function provided .bal file.
|
void |
runMain(String balFile,
LogLeecher[] leechers)
Run ballerina main function provided .bal file.
|
void |
runMain(String sourceRoot,
String packagePath)
Run ballerina main function provided bal package.
|
void |
runMain(String command,
String[] args,
Map<String,String> envProperties,
String[] clientArgs,
LogLeecher[] leechers,
String commandDir)
Executing the sh or bat file to start the server.
|
void |
runMain(String balFile,
String[] flags,
String[] args)
Run ballerina main function provided .bal file.
|
void |
runMain(String balFile,
String[] flags,
String[] args,
LogLeecher[] leechers)
Run ballerina main function provided .bal file.
|
void |
runMain(String balFile,
String[] flags,
String[] args,
Map<String,String> envProperties,
String[] clientArgs)
Run ballerina main function provided .bal file.
|
void |
runMain(String balFile,
String[] flags,
String[] args,
Map<String,String> envProperties,
String[] clientArgs,
LogLeecher[] leechers)
Run ballerina main function provided .bal file.
|
void |
runMain(String sourceRoot,
String packagePath,
LogLeecher[] leechers)
Run ballerina main function provided bal package.
|
void |
runMain(String sourceRoot,
String packagePath,
String[] flags,
String[] args)
Run ballerina main function provided bal package.
|
void |
runMain(String sourceRoot,
String packagePath,
String[] flags,
String[] args,
LogLeecher[] leechers)
Run ballerina main function provided bal package.
|
void |
runMain(String sourceRoot,
String packagePath,
String[] flags,
String[] args,
Map<String,String> envProperties,
String[] clientArgs)
Run ballerina main function provided bal package.
|
void |
runMain(String sourceRoot,
String packagePath,
String[] flags,
String[] args,
Map<String,String> envProperties,
String[] clientArgs,
LogLeecher[] leechers)
Run ballerina main function provided bal package.
|
String |
runMainAndReadStdOut(String command,
String[] args,
String commandDir)
Executing the sh or bat file to start the server and returns the logs printed to stdout.
|
public BMainInstance(BalServer balServer) throws BallerinaTestException
BallerinaTestException
public void runMain(String balFile) throws BallerinaTestException
BMain
runMain
in interface BMain
balFile
- bal file pathBallerinaTestException
- if any exception is thrown when running the main functionpublic void runMain(String balFile, LogLeecher[] leechers) throws BallerinaTestException
BMain
runMain
in interface BMain
balFile
- bal file pathleechers
- log leechers to check the log if anyBallerinaTestException
- if any exception is thrown when running the main functionpublic void runMain(String balFile, String[] flags, String[] args) throws BallerinaTestException
BMain
runMain
in interface BMain
balFile
- bal file pathflags
- flags to passargs
- arguments to passBallerinaTestException
- if any exception is thrown when running the main functionpublic void runMain(String balFile, String[] flags, String[] args, LogLeecher[] leechers) throws BallerinaTestException
BMain
runMain
in interface BMain
balFile
- bal file pathflags
- flags to passargs
- arguments to passleechers
- log leechers to check the log if anyBallerinaTestException
- if any exception is thrown when running the main functionpublic void runMain(String balFile, String[] flags, String[] args, Map<String,String> envProperties, String[] clientArgs) throws BallerinaTestException
BMain
runMain
in interface BMain
balFile
- bal file pathflags
- flags to passargs
- arguments to passenvProperties
- environment propertiesclientArgs
- arguments which program expectsBallerinaTestException
- if any exception is thrown when running the main functionpublic void runMain(String balFile, String[] flags, String[] args, Map<String,String> envProperties, String[] clientArgs, LogLeecher[] leechers) throws BallerinaTestException
BMain
runMain
in interface BMain
balFile
- bal file pathflags
- flags to passargs
- arguments to passenvProperties
- environment propertiesclientArgs
- arguments which program expectsleechers
- log leechers to check the log if anyBallerinaTestException
- if any exception is thrown when running the main functionpublic void runMain(String sourceRoot, String packagePath) throws BallerinaTestException
BMain
runMain
in interface BMain
sourceRoot
- source root directorypackagePath
- package pathBallerinaTestException
- if any exception is thrown when running the main functionpublic void runMain(String sourceRoot, String packagePath, LogLeecher[] leechers) throws BallerinaTestException
BMain
runMain
in interface BMain
sourceRoot
- source root directorypackagePath
- package pathleechers
- log leechers to check the log if anyBallerinaTestException
- if any exception is thrown when running the main functionpublic void runMain(String sourceRoot, String packagePath, String[] flags, String[] args) throws BallerinaTestException
BMain
runMain
in interface BMain
sourceRoot
- source root directorypackagePath
- package pathflags
- flags to passargs
- arguments to parseBallerinaTestException
- if any exception is thrown when running the main functionpublic void runMain(String sourceRoot, String packagePath, String[] flags, String[] args, LogLeecher[] leechers) throws BallerinaTestException
BMain
runMain
in interface BMain
sourceRoot
- source root directorypackagePath
- package pathflags
- flags to passargs
- arguments to parseleechers
- log leechers to check the log if anyBallerinaTestException
- if any exception is thrown when running the main functionpublic void runMain(String sourceRoot, String packagePath, String[] flags, String[] args, Map<String,String> envProperties, String[] clientArgs) throws BallerinaTestException
BMain
runMain
in interface BMain
sourceRoot
- source root directorypackagePath
- package pathflags
- flags to passargs
- arguments to parseenvProperties
- environment propertiesclientArgs
- arguments which program expectsBallerinaTestException
- if any exception is thrown when running the main functionpublic void runMain(String sourceRoot, String packagePath, String[] flags, String[] args, Map<String,String> envProperties, String[] clientArgs, LogLeecher[] leechers) throws BallerinaTestException
BMain
runMain
in interface BMain
sourceRoot
- source root directorypackagePath
- package pathflags
- flags to passargs
- arguments to parseenvProperties
- environment propertiesclientArgs
- arguments which program expectsleechers
- log leechers to check the log if anyBallerinaTestException
- if any exception is thrown when running the main functionpublic void runMain(String command, String[] args, Map<String,String> envProperties, String[] clientArgs, LogLeecher[] leechers, String commandDir) throws BallerinaTestException
command
- command to runargs
- command line arguments to pass when executing the sh or bat fileenvProperties
- environmental properties to be appended to the environmentclientArgs
- arguments which program expectsleechers
- log leechers to check the log if anycommandDir
- where to execute the commandBallerinaTestException
- if starting services failedpublic String runMainAndReadStdOut(String command, String[] args, String commandDir) throws BallerinaTestException
command
- command to runargs
- command line arguments to pass when executing the sh or bat filecommandDir
- where to execute the commandBallerinaTestException
- if starting services failed or if an error occurs when reading the stdoutCopyright © 2018 WSO2. All rights reserved.