|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lightstreamer.interfaces.metadata.MetadataProviderAdapter
public abstract class MetadataProviderAdapter
Provides a default implementation of all the MetadataProvider interface methods. Overriding this class may facilitate the coding of simple Metadata Adapters.
| Constructor Summary | |
|---|---|
MetadataProviderAdapter()
|
|
| Method Summary | |
|---|---|
void |
customizeUpdate(java.lang.String user,
java.lang.String item,
CustomizableItemEvent event)
Called by Lightstreamer Kernel in order to customize events pertaining to an ItemEventBuffer, if such customization has been requested through the enableUpdateCustomization method. |
boolean |
enableUpdateCustomization(java.lang.String user,
java.lang.String item)
Called by Lightstreamer Kernel to know whether the Metadata Adapter must or must not be given a chance to modify the values carried by the updates for a supplied Item in a push Session owned by a supplied User. |
int |
getAllowedBufferSize(java.lang.String user,
java.lang.String item)
Called by Lightstreamer Kernel to ask for the maximum allowed size of the buffer internally used to enqueue subsequent ItemUpdates for the same Item. |
double |
getAllowedMaxBandwidth(java.lang.String user)
Called by Lightstreamer Kernel to ask for the bandwidth amount to be allowed to a User for a push Session. |
double |
getAllowedMaxItemFrequency(java.lang.String user,
java.lang.String item)
Called by Lightstreamer Kernel to ask for the ItemUpdate frequency to be allowed to a User for a specific Item. |
int |
getDistinctSnapshotLength(java.lang.String item)
Called by Lightstreamer Kernel to ask for the maximum allowed length for a Snapshot of an Item that has been requested with publishing Mode DISTINCT. |
double |
getMinSourceFrequency(java.lang.String item)
Called by Lightstreamer Kernel to ask for the minimum ItemEvent frequency from the supplier Data Adapter at which the events for an Item are guaranteed to be delivered to the Clients without loss of information. |
java.lang.String[] |
getUserSessions(java.lang.String user)
Deprecated. |
void |
init(java.util.Map params,
java.io.File configDir)
No-op initialization. |
boolean |
isModeAllowed(java.lang.String user,
java.lang.String item,
Mode mode)
Called by Lightstreamer Kernel to ask for the allowance of a publishing Mode for an Item. |
boolean |
isSelected(java.lang.String user,
java.lang.String item,
java.lang.String selector,
ItemEvent event)
Called by Lightstreamer Kernel in order to filter events pertaining to an ItemEventBuffer, if the related Item was requested within a table with an associated Selector. |
boolean |
isSelectorAllowed(java.lang.String user,
java.lang.String item,
java.lang.String selector)
Called by Lightstreamer Kernel to ask for the allowance of a Selector for an Item. |
boolean |
modeMayBeAllowed(java.lang.String item,
Mode mode)
Called by Lightstreamer Kernel to ask for the allowance of a publishing Mode for an Item (for at least one User). |
void |
notifyNewSession(java.lang.String user,
java.lang.String session)
2-arguments version of the User authentication method. |
void |
notifyNewSession(java.lang.String user,
java.lang.String session,
java.util.Map clientContext)
Called by Lightstreamer Kernel to check that a User is enabled to open a new push Session. |
void |
notifyNewTables(java.lang.String user,
java.lang.String session,
TableInfo[] tables)
Called by Lightstreamer Kernel to check that a User is enabled to add some Tables to a push Session. |
void |
notifySessionClose(java.lang.String session)
Called by Lightstreamer Kernel to notify the Metadata Adapter that a push Session has been closed. |
void |
notifyTablesClose(java.lang.String session,
TableInfo[] tables)
Called by Lightstreamer Kernel to notify the Metadata Adapter that some Tables have been removed from a push Session. |
void |
notifyUser(java.lang.String user,
java.lang.String password)
2-arguments version of the User authentication method. |
void |
notifyUser(java.lang.String user,
java.lang.String password,
java.util.Map httpHeaders)
Called by Lightstreamer Kernel as a preliminary check that a user is enabled to make Requests to the related Data Providers. |
void |
notifyUserMessage(java.lang.String user,
java.lang.String session,
java.lang.String message)
Called by Lightstreamer Kernel to forward a message received by a User. |
boolean |
wantsTablesNotification(java.lang.String user)
Called by Lightstreamer Kernel to know whether the Metadata Adapter must or must not be notified any time a Table is added or removed from a push Session owned by a supplied User. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.lightstreamer.interfaces.metadata.MetadataProvider |
|---|
getItems, getSchema |
| Constructor Detail |
|---|
public MetadataProviderAdapter()
| Method Detail |
|---|
public void init(java.util.Map params,
java.io.File configDir)
throws MetadataProviderException
init in interface MetadataProviderparams - not used.configDir - not used.
MetadataProviderException - never thrown.
public void notifyUser(java.lang.String user,
java.lang.String password,
java.util.Map httpHeaders)
throws AccessException,
CreditsException
notifyUser in interface MetadataProvideruser - A User name.password - A password optionally required to validate the User.httpHeaders - A Map-type value object that contains a name-value
pair for each header found in the HTTP request that originated the call.
Not used.
AccessException - never thrown.
CreditsException - never thrown.
public void notifyUser(java.lang.String user,
java.lang.String password)
throws AccessException,
CreditsException
user - not used.password - not used.
AccessException - never thrown.
CreditsException - never thrown.public double getAllowedMaxBandwidth(java.lang.String user)
getAllowedMaxBandwidth in interface MetadataProvideruser - not used.
public double getAllowedMaxItemFrequency(java.lang.String user,
java.lang.String item)
getAllowedMaxItemFrequency in interface MetadataProvideruser - not used.item - not used.
public int getAllowedBufferSize(java.lang.String user,
java.lang.String item)
getAllowedBufferSize in interface MetadataProvideruser - not used.item - not used.
public boolean isModeAllowed(java.lang.String user,
java.lang.String item,
Mode mode)
isModeAllowed in interface MetadataProvideruser - not used.item - not used.mode - not used.
public boolean modeMayBeAllowed(java.lang.String item,
Mode mode)
modeMayBeAllowed in interface MetadataProvideritem - not used.mode - not used.
public boolean isSelectorAllowed(java.lang.String user,
java.lang.String item,
java.lang.String selector)
isSelectorAllowed in interface MetadataProvideruser - not used.item - not used.selector - not used.
public boolean isSelected(java.lang.String user,
java.lang.String item,
java.lang.String selector,
ItemEvent event)
isSelected in interface MetadataProvideruser - not used.item - not used.selector - not used.event - not used.
public boolean enableUpdateCustomization(java.lang.String user,
java.lang.String item)
enableUpdateCustomization in interface MetadataProvideruser - not used.item - not used.
public void customizeUpdate(java.lang.String user,
java.lang.String item,
CustomizableItemEvent event)
customizeUpdate in interface MetadataProvideruser - not used.item - not used.event - not used.public double getMinSourceFrequency(java.lang.String item)
getMinSourceFrequency in interface MetadataProvideritem - not used.
public int getDistinctSnapshotLength(java.lang.String item)
getDistinctSnapshotLength in interface MetadataProvideritem - An Item Name.
public void notifyUserMessage(java.lang.String user,
java.lang.String session,
java.lang.String message)
throws CreditsException,
NotificationException
notifyUserMessage in interface MetadataProvideruser - not used.session - not used.message - not used.
CreditsException - always thrown.
NotificationException - never thrown.
public java.lang.String[] getUserSessions(java.lang.String user)
throws AccessException
getUserSessions in interface MetadataProvideruser - not used.
AccessException - always thrown.
public void notifyNewSession(java.lang.String user,
java.lang.String session,
java.util.Map clientContext)
throws CreditsException,
NotificationException
notifyNewSession in interface MetadataProvideruser - A User name.session - The name of a new Session.clientContext - not used.
CreditsException
NotificationException
public void notifyNewSession(java.lang.String user,
java.lang.String session)
throws CreditsException,
NotificationException
user - not used.session - not used.
CreditsException - never thrown.
NotificationException - never thrown.
public void notifySessionClose(java.lang.String session)
throws NotificationException
notifySessionClose in interface MetadataProvidersession - not used.
NotificationException - never thrown.public boolean wantsTablesNotification(java.lang.String user)
wantsTablesNotification in interface MetadataProvideruser - not used.
public void notifyNewTables(java.lang.String user,
java.lang.String session,
TableInfo[] tables)
throws CreditsException,
NotificationException
notifyNewTables in interface MetadataProvideruser - not used.session - not used.tables - not used.
CreditsException - never thrown.
NotificationException - never thrown.
public void notifyTablesClose(java.lang.String session,
TableInfo[] tables)
throws NotificationException
notifyTablesClose in interface MetadataProvidersession - not used.tables - not used.
NotificationException - never thrown.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||