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, wantsTablesNotification
public LiteralBasedProvider()
public void init(Map<String,String> parameters, String configFile) throws MetadataProviderException
init
in interface MetadataProvider
init
in class MetadataProviderAdapter
parameters
- 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 MetadataProvider
notifyUser
in class MetadataProviderAdapter
user
- 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 MetadataProvider
getAllowedMaxBandwidth
in class MetadataProviderAdapter
user
- A User name. Not used.public double getAllowedMaxItemFrequency(String user, String item)
getAllowedMaxItemFrequency
in interface MetadataProvider
getAllowedMaxItemFrequency
in class MetadataProviderAdapter
user
- A User name. Not used.item
- An Item Name. Not used.public int getAllowedBufferSize(String user, String item)
getAllowedBufferSize
in interface MetadataProvider
getAllowedBufferSize
in class MetadataProviderAdapter
user
- A User name. Not used.item
- An Item Name. Not used.public int getDistinctSnapshotLength(String item)
getDistinctSnapshotLength
in interface MetadataProvider
getDistinctSnapshotLength
in class MetadataProviderAdapter
item
- An Item Name.Copyright © 2021. All rights reserved.