The other servlets are all registered
in 
asterix-app/src/main/java/org/apache/asterix/hyracks/bootstrap/CCApplicationEntryPoint.java.

For adding your own servlets, I'd take a look
at 
asterix-app/src/main/java/org/apache/asterix/api/http/servlet/QueryStatusAPIServlet.java
, which is a very simple servlet that just implements doGet() returning a
JSON response. Also see how that servlet is registered with Jetty in
CCApplicationEntryPoint.java.

Something that was discussed today that I might be working on would be to
make the set of servlets that is registered with Jetty more dynamic and
configurable at runtime via classpath properties. Haven't gone very far in
thinking about how that might happen, but if you have any ideas about how
that might be helpful for you, let me know!

Ceej
aka Chris Hillery

On Mon, Jan 18, 2016 at 5:00 PM, Vignesh Raghunathan <
[email protected]> wrote:

> Hi,
>
> I was looking at the AsterixDB web interface code in asterix-app package to
> determine whether i could reuse parts of it for creating an interface to
> show details about health of data feeds.
>
> In class org.apache.asterix.drivers.AsterixWebServer, APIServlet is added
> to the context. Could someone please explain how the other servlets are
> loaded into the jetty container in code?
>
> Also, any pointers on how I should go about setting up a 'hello world' page
> that could be accessed after AsterixDB is installed would be very helpful.
>
> Thanks,
> Vignesh
>

Reply via email to