public abstract class AbstractSparkHttpServiceHandler extends Object implements SparkHttpServiceHandler
SparkHttpServiceHandler.| Constructor and Description |
|---|
AbstractSparkHttpServiceHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
This method is called when the http service is about to shutdown.
|
protected SparkHttpServiceContext |
getContext()
Returns the
SparkHttpServiceContext object that was passed
to the initialize(SparkHttpServiceContext) method. |
void |
initialize(SparkHttpServiceContext context)
Initializes the service handler.
|
public void initialize(SparkHttpServiceContext context) throws Exception
SparkHttpServiceHandlerSparkHttpServiceHandler instance.initialize in interface ProgramLifecycle<SparkHttpServiceContext>initialize in interface SparkHttpServiceHandlercontext - An instance of SparkHttpServiceContextException - If there is any error during initialization.protected SparkHttpServiceContext getContext()
SparkHttpServiceContext object that was passed
to the initialize(SparkHttpServiceContext) method.public void destroy()
SparkHttpServiceHandlerdestroy in interface ProgramLifecycle<SparkHttpServiceContext>destroy in interface SparkHttpServiceHandlerCopyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.