public class PedestrianAttrRecogApp extends SparkStreamingApp
Modifier and Type | Class and Description |
---|---|
static class |
PedestrianAttrRecogApp.Algorithm
Available algorithms of pedestrian attribute recognition.
|
static class |
PedestrianAttrRecogApp.AppPropertyCenter
|
static class |
PedestrianAttrRecogApp.RecogStream
|
Modifier and Type | Field and Description |
---|---|
static String |
APP_NAME
The name of this application.
|
private static long |
serialVersionUID
|
loggerSingleton
Constructor and Description |
---|
PedestrianAttrRecogApp(PedestrianAttrRecogApp.AppPropertyCenter propCenter)
Constructor of the application, configuring properties read from
a
property center.
|
Modifier and Type | Method and Description |
---|---|
void |
addToContext()
Add streaming actions directly to the global streaming context.
|
static void |
main(String[] args)
|
awaitTermination,
buildDirectStream,
buildDirectStream,
finalize,
initialize,
registerStreams,
start,
stop
private static final long serialVersionUID
public static final String APP_NAME
public PedestrianAttrRecogApp(PedestrianAttrRecogApp.AppPropertyCenter propCenter) throws Exception
propCenter
- A class saving all the properties this application may
need.
Exception
- Any exception
that might occur during execution.
public void addToContext() throws Exception
SparkStreamingApp
TaskData
.
Actions that take TaskData
as input
should be implemented in the
Stream.addToGlobalStream(Map)
,
in order to save time of deserialization.
Note that existence of Kafka topics used in this method is not automatically
checked.
addToContext
in
class SparkStreamingApp
Exception