public class LiteralBasedProvider extends MetadataProviderAdapter
| Constructor and Description |
|---|
LiteralBasedProvider()
Void constructor required by the Remote Server.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAllowedBufferSize(String user,
String item)
Returns the size of the buffer internally used to enqueue subsequent
ItemUpdates for the same Item.
|
double |
getAllowedMaxBandwidth(String user)
Returns the bandwidth level to be allowed to a User for a push Session.
|
double |
getAllowedMaxItemFrequency(String user,
String item)
Returns the ItemUpdate frequency to be allowed to a User for a specific
Item.
|
int |
getDistinctSnapshotLength(String item)
Returns the maximum allowed length for a Snapshot of any Item that
has been requested with publishing Mode DISTINCT.
|
String[] |
getItems(String user,
String sessionID,
String itemList)
Resolves an Item List specification supplied in a Request.
|
String[] |
getSchema(String user,
String sessionID,
String itemList,
String fieldList)
Resolves a Field List specification supplied in a Request.
|
void |
init(Map<String,String> parameters,
String configFile)
Reads configuration settings for user and resource constraints.
|
void |
notifyUser(String user,
String password,
Map<String,String> httpHeaders)
Checks if a user is enabled to make Requests to the related Data
Providers.
|
getMinSourceFrequency, isModeAllowed, modeMayBeAllowed, notifyMpnDeviceAccess, notifyMpnDeviceTokenChange, notifyMpnSubscriptionActivation, notifyNewSession, notifyNewTables, notifySessionClose, notifyTablesClose, notifyUser, notifyUserMessage, wantsTablesNotificationpublic LiteralBasedProvider()
public void init(Map<String,String> parameters, String configFile) throws MetadataProviderException
init in interface MetadataProviderinit in class MetadataProviderAdapterparameters - Can contain the configuration settings.configFile - Not used.MetadataProviderException - in case of configuration errors.public String[] getItems(String user, String sessionID, String itemList)
user - A User name.sessionID - A Session ID. Not used.itemList - An Item List specification.public String[] getSchema(String user, String sessionID, String itemList, String fieldList)
user - A User name. Not used.sessionID - A Session ID. Not used.itemList - The specification of the Item List whose Items the Field List
is to be applied to.fieldList - A Field List specification.public void notifyUser(String user, String password, Map<String,String> httpHeaders) throws AccessException
notifyUser in interface MetadataProvidernotifyUser in class MetadataProviderAdapteruser - A User name.password - An optional password. Not used.httpHeaders - A Map that contains a name-value pair for each
header found in the HTTP request that originated the call. Not used.AccessException - if a list of User names has been configured
and the supplied name does not belong to the list.MetadataProvider.notifyUser(String, String, Map, String)public double getAllowedMaxBandwidth(String user)
getAllowedMaxBandwidth in interface MetadataProvidergetAllowedMaxBandwidth in class MetadataProviderAdapteruser - A User name. Not used.public double getAllowedMaxItemFrequency(String user, String item)
getAllowedMaxItemFrequency in interface MetadataProvidergetAllowedMaxItemFrequency in class MetadataProviderAdapteruser - A User name. Not used.item - An Item Name. Not used.public int getAllowedBufferSize(String user, String item)
getAllowedBufferSize in interface MetadataProvidergetAllowedBufferSize in class MetadataProviderAdapteruser - A User name. Not used.item - An Item Name. Not used.public int getDistinctSnapshotLength(String item)
getDistinctSnapshotLength in interface MetadataProvidergetDistinctSnapshotLength in class MetadataProviderAdapteritem - An Item Name.Copyright © 2021. All rights reserved.