public final class ProgressManagerService extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addReport(String strFeedToken,
String strReportLine)
add report line
|
int |
getFailureNb(String strFeedToken)
get the failure nb
|
static ProgressManagerService |
getInstance()
Returns the unique instance of the service
|
int |
getProgressStatus(String strFeedToken)
get the progress status in pourcent
|
List<String> |
getReport(String strFeedToken)
get the report list
|
int |
getSuccessNb(String strFeedToken)
get the success nb
|
void |
incrementFailure(String strFeedToken,
int nFailureItems)
increment nb of success items
|
void |
incrementSuccess(String strFeedToken,
int nSuccessItems)
increment nb of success items
|
boolean |
isRegistred(String strFeedToken)
register new progress feed
|
String |
registerFeed(String strProgressFeedName,
int nTotalItems)
register new progress feed
returns a generated token to identify the feed for rest webservice
|
void |
unRegisterFeed(String strFeedToken)
unregister progress feed
|
public static ProgressManagerService getInstance()
public String registerFeed(String strProgressFeedName, int nTotalItems)
strProgressFeedName - nTotalItems - public void unRegisterFeed(String strFeedToken)
strFeedToken - public boolean isRegistred(String strFeedToken)
strFeedToken - public void incrementSuccess(String strFeedToken, int nSuccessItems)
strFeedToken - nSuccessItems - public void incrementFailure(String strFeedToken, int nFailureItems)
strFeedToken - nFailureItems - public void addReport(String strFeedToken, String strReportLine)
strFeedToken - strReportLine - public int getProgressStatus(String strFeedToken)
strFeedToken - public int getSuccessNb(String strFeedToken)
strFeedToken - public int getFailureNb(String strFeedToken)
strFeedToken - Copyright © 2020 City of Paris. All rights reserved.