public final class Main extends Object
Modifier and Type | Field and Description |
---|---|
static int |
burstFilterRate |
static int |
burstFilterThreshold |
static org.thales.punch.platform.api.IApplicationExitReporter |
exitReporter |
static org.thales.punch.libraries.metrics.impl.MetricRegistryImpl |
metricRegistry |
static org.thales.punch.libraries.reporters.api.ReporterGroup |
reporterGroup |
static org.thales.punch.platform.api.IApplicationStartReporter |
startReporter |
static ThreadPoolExecutor |
threadPool |
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
static org.thales.punch.platform.api.LogRecord |
getLogRecord(org.thales.punch.libraries.shiva.api.Application application,
String runnerId,
String clusterName)
return a ready to use log record (this version is faster because we do not need to parse
the app name each log).
|
static org.thales.punch.platform.api.LogRecord |
getLogRecord(String shivaWorker,
String clusterName) |
static org.thales.punch.platform.api.LogRecord |
getLogRecord(String appName,
String runnerId,
String clusterName)
return a ready to use log record
Warning: prefer the signature using
Application instead of task name, for performance. |
static void |
main(String... args)
Main entry point.
|
static void |
startFilesystemLeader(String root,
ILeader leader,
long tickInterval) |
static void |
startFilesystemWorker(String root,
IWorker worker,
long tickInterval) |
static void |
startLeader(String kafkaUrl,
ILeader leader,
long tickInterval) |
static void |
startWorker(String kafkaUrl,
IWorker worker,
long tickInterval) |
public static org.thales.punch.libraries.reporters.api.ReporterGroup reporterGroup
public static org.thales.punch.libraries.metrics.impl.MetricRegistryImpl metricRegistry
public static ThreadPoolExecutor threadPool
public static org.thales.punch.platform.api.IApplicationStartReporter startReporter
public static org.thales.punch.platform.api.IApplicationExitReporter exitReporter
public static int burstFilterRate
public static int burstFilterThreshold
public static void main(String... args) throws IOException, org.apache.commons.cli.ParseException
args
- the command line argsIOException
org.apache.commons.cli.ParseException
public static void startFilesystemLeader(String root, ILeader leader, long tickInterval) throws IOException
IOException
public static void startFilesystemWorker(String root, IWorker worker, long tickInterval) throws IOException
IOException
public static org.thales.punch.platform.api.LogRecord getLogRecord(String appName, String runnerId, String clusterName)
Application
instead of task name, for performance.appName
- the shiva app namerunnerId
- the runner typeclusterName
- the shiva cluser namepublic static org.thales.punch.platform.api.LogRecord getLogRecord(org.thales.punch.libraries.shiva.api.Application application, String runnerId, String clusterName)
application
- the shiva ApplicationrunnerId
- the runner typeclusterName
- the shiva cluser nameCopyright © 2022. All rights reserved.