public class LiteralBasedProvider extends MetadataProviderAdapter
| Constructor and Description |
|---|
LiteralBasedProvider()
Void constructor required by the Remote Server.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAllowedBufferSize(java.lang.String user,
java.lang.String item)
Returns the size of the buffer internally used to enqueue subsequent
ItemUpdates for the same Item.
|
double |
getAllowedMaxBandwidth(java.lang.String user)
Returns the bandwidth level to be allowed to a User for a push Session.
|
double |
getAllowedMaxItemFrequency(java.lang.String user,
java.lang.String item)
Returns the ItemUpdate frequency to be allowed to a User for a specific
Item.
|
int |
getDistinctSnapshotLength(java.lang.String item)
Returns the maximum allowed length for a Snapshot of any Item that
has been requested with publishing Mode DISTINCT.
|
java.lang.String[] |
getItems(java.lang.String user,
java.lang.String sessionID,
java.lang.String itemList)
Resolves an Item List specification supplied in a Request.
|
java.lang.String[] |
getSchema(java.lang.String user,
java.lang.String sessionID,
java.lang.String itemList,
java.lang.String fieldList)
Resolves a Field List specification supplied in a Request.
|
void |
init(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String configFile)
Reads configuration settings for user and resource constraints.
|
void |
notifyUser(java.lang.String user,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.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 java.lang.String[] getItems(java.lang.String user,
java.lang.String sessionID,
java.lang.String itemList)
user - A User name.sessionID - A Session ID. Not used.itemList - An Item List specification.public java.lang.String[] getSchema(java.lang.String user,
java.lang.String sessionID,
java.lang.String itemList,
java.lang.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(java.lang.String user,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.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(java.lang.String user)
getAllowedMaxBandwidth in interface MetadataProvidergetAllowedMaxBandwidth in class MetadataProviderAdapteruser - A User name. Not used.public double getAllowedMaxItemFrequency(java.lang.String user,
java.lang.String item)
getAllowedMaxItemFrequency in interface MetadataProvidergetAllowedMaxItemFrequency in class MetadataProviderAdapteruser - A User name. Not used.item - An Item Name. Not used.public int getAllowedBufferSize(java.lang.String user,
java.lang.String item)
getAllowedBufferSize in interface MetadataProvidergetAllowedBufferSize in class MetadataProviderAdapteruser - A User name. Not used.item - An Item Name. Not used.public int getDistinctSnapshotLength(java.lang.String item)
getDistinctSnapshotLength in interface MetadataProvidergetDistinctSnapshotLength in class MetadataProviderAdapteritem - An Item Name.