|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LiveDataSource
This interface must be implemented by the "data source" class that provides
data to one or more
LiveDataPanel objects for your
GWT application. The methods in this class are invoked by the
LiveDataServiceImpl servlet during initial
data fetch and subsequently when a refresh request is received from the
client-side.
| Method Summary | |
|---|---|
void |
close(Principal user,
HttpSession session,
LiveDataSessionInfo sessionData)
This method is invoked by the LiveDataServiceImpl servlet
to information the data source that the session is closed. |
ChartInitData |
getChartInfoAndInitialData(Principal user,
HttpSession session,
LiveDataSessionInfo sessionData)
This method is invoked by the LiveDataServiceImpl servlet when the
chart is intialized at the client-side. |
ChartData |
getNextData(Principal user,
HttpSession session,
LiveDataSessionInfo sessionData)
This method is invoked by the LiveDataServiceImpl servlet
periodically to retrieve data that is used to refresh the live data
panel. |
| Method Detail |
|---|
ChartInitData getChartInfoAndInitialData(Principal user,
HttpSession session,
LiveDataSessionInfo sessionData)
LiveDataServiceImpl servlet when the
chart is intialized at the client-side. The method must return a
ChartInitData object that specifies the property of the chart and the
initial data. The client-side of the application displays the chart and
the data accordingly.
user - the user who is displaying the live data panel. The parameter
has a null value of the user has not been authenticated by the
servlet container.session - the HTTPSession object is passed so that you application can
use session-scope variables to maintain states.sessionData - Session data.
ChartData getNextData(Principal user,
HttpSession session,
LiveDataSessionInfo sessionData)
LiveDataServiceImpl servlet
periodically to retrieve data that is used to refresh the live data
panel. The method returns the ChartData object that contains the data.
user - the user who is displaying the live data panel. The parameter
has a null value of the user has not been authenticated by the
servlet container.session - the HTTPSession object is passed so that you application can
use session-scope variables to maintain states.sessionData - Information on the session.
void close(Principal user,
HttpSession session,
LiveDataSessionInfo sessionData)
LiveDataServiceImpl servlet
to information the data source that the session is closed. This
gives the application a chance to perform cleanup.
user - the user who is displaying the live data panel. The parameter
has a null value of the user has not been authenticated by the
servlet container.session - the HTTPSession object is passed so that you application can
use session-scope variables to maintain states.sessionData - Information on the session.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||