public class DataUsage extends org.apache.camel.builder.RouteBuilder implements DataUsageMBean
| Modifier and Type | Field and Description |
|---|---|
static String |
CRON_TIME_ID_KEY |
static String |
CRON_TIME_KEY |
static String |
DEFAULT_CRON_TIME |
static String |
ID |
static String |
TXT_PREFIX |
| Constructor and Description |
|---|
DataUsage(AttributesStore attributesStore,
PersistentStore persistentStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure() |
String |
cronTime()
Gets the current configured Cron Time.
|
void |
destroy() |
void |
init() |
void |
updateCronTime(String cronTime)
Updates the Cron Time with the given string
|
void |
updateUserDataLimit(Map<String,Long> userMap)
Updates the user properties for users that are known in the
AttributesStore |
Map<String,List<Long>> |
userMap()
Queries the
AttributesStore for all known Users
and their Data Usages |
addRoutes, addRoutesToCamelContext, checkInitialized, configureRest, configureRests, configureRoute, configureRoutes, createContainer, errorHandler, from, from, from, from, fromF, getContext, getRestCollection, getRestConfigurations, getRouteCollection, includeRoutes, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, onCompletion, onException, onException, populateRests, populateRoutes, rest, rest, restConfiguration, restConfiguration, setErrorHandlerBuilder, setRestCollection, setRouteCollection, toStringbean, bean, bean, bean, body, body, bodyAs, constant, createErrorHandlerBuilder, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, exchangeProperty, faultBody, faultBodyAs, getErrorHandlerBuilder, header, language, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, method, method, method, method, noErrorHandler, outBody, outBody, property, regexReplaceAll, regexReplaceAll, sendTo, setContext, setContext, simple, simple, systemProperty, systemProperty, xpath, xpathpublic static final String DEFAULT_CRON_TIME
public static final String CRON_TIME_ID_KEY
public static final String CRON_TIME_KEY
public static final String ID
public static final String TXT_PREFIX
public DataUsage(AttributesStore attributesStore, PersistentStore persistentStore)
public void init()
public Map<String,List<Long>> userMap()
DataUsageMBeanAttributesStore for all known Users
and their Data UsagesuserMap in interface DataUsageMBeanpublic void updateUserDataLimit(Map<String,Long> userMap)
DataUsageMBeanAttributesStoreupdateUserDataLimit in interface DataUsageMBeanuserMap - a map from the front end for userspublic void updateCronTime(String cronTime)
DataUsageMBeanupdateCronTime in interface DataUsageMBeancronTime - - a String representing a Cron Timepublic String cronTime()
DataUsageMBeancronTime in interface DataUsageMBeanpublic void configure()
configure in class org.apache.camel.builder.RouteBuilderpublic void destroy()
This work is licensed under a Creative Commons Attribution 4.0 International License.