|
SL-GMS Enterprise RTView Customization | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.sl.gmsjrtview.GmsRtViewDs
com.sl.gmsjrtviewds.GmsRtViewDs
public abstract class GmsRtViewDs
The GmsRtViewDs class is the base class for an Enterprise RTView datasource, providing methods to customize information about the files, classes, and resources available with the datasource, the data objects used to create data attachments, the conn info objects used to establish connections with external systems, the options object used to provide datasource-specific options, and the dialogs that are displayed in the Enterprise RTView Builder.
This class also identifies the
GmsRtViewDsAdapter
class for the datasource, which
provides methods to initialize and update the data objects used
by the datasource from external data, to manage connections with the
external data source, to apply custom options, execute commands, and
validate information entered into dialogs.
The GmsRtViewDs class manages the following types of objects:
(GmsTabularData).
Data tables are stored and updated using the storeData
methods in this class. The
getStoredDataTable()
method is used to retrieve a data table from the datasource.
When storing data, the table name is specified either directly by
supplying a data key, or indirectly by supplying a
Data Object.
When a data object is supplied, the data key is automatically
constructed from the values of the
data key column fields
defined during initialization. If a data object is not available, the
data key can be constructed using the method
buildDataKey().
Note that this datasource does not store historical data. Whenever new data is stored, the previous data table is replaced. To store historical data, use the Cache Datasource in conjunction with attachments to data from this datasource.
(GmsRtViewDataObject)
specifies an active attachment between a property of an Enterprise RTView
object and the datasource. Data objects are created and freed as displays
are loaded and unloaded by a running application.
(GmsRtViewDsConnInfo)
holds information that
can be used to establish a connection to the external data source. The
datasource monitors the status of connections, and instructs the
GmsRtViewDsAdapter to attempt or close a connection. Connections are
defined and edited in the Connections Tab of the Options Dialog in the
Enterprise RTView Builder.
(GmsRtViewDsOptions)
holds information about
custom options specific to this datasource. The options are entered in
the Options Tab of the Options Dialog in the Enterprise RTView Builder.
To configure the datasource, subclasses are responsible for providing implementations of the following abstract methods:
initDsBaseProperties()
method the subclass sets information in a
GmsRtViewDsBaseProperties
object to configure the base metadata for the datasource. The metadata
includes descriptive information, the names of auxiliary classes and files,
available datasource behaviors, and localization information. This method
is called when the class is constructed, before any command-line arguments
or ds options have been processed.
initDsControlProperties()
method the subclass sets information in a
GmsRtViewDsControlProperties
object to configure the control metadata for the datasource. The metadata
includes descriptive information, the names of auxiliary classes and files,
available datasource behaviors, and localization information. This method
is called after the command-line arguments and ds options have been
processed, so information from these sources is available for customization.
initDataObjectExemplar()
method the subclass defines the structure of the
Data Object
used to specify data attachments. The method will add fields, with
optional information about the UI elements used to display the fields
in the Attach To Data Dialog. The method will also specify
the fields used to identify the data key, and will optionally specify index
fields to be included with the data when it is stored in the datasource.
initConnInfoExemplar()
method the subclass defines the structure of the
ConnInfo Object,
which describes a named connection to the external data source.
The method will add fields, with optional information about the
UI elements used to display the fields in the Connections Tab of
the Options Dialog.
initDsOptionsExemplar()
method the subclass defines the structure of the
DS Options Object,
which describes the custom options available for the datasource.
The method will add fields, with optional information about the
UI elements used to display the fields in the DS Options Tab of
the Options Dialog.
| Nested Class Summary | |
|---|---|
static class |
GmsRtViewDs.UpdateMode
Update mode used to update polled data |
| Field Summary | |
|---|---|
static java.util.Set |
ALL_UPDATE_MODES
Convenience to enable all update modes |
static java.util.Set |
DEFAULT_UPDATE_MODES
Update modes enabled by default |
static java.util.Set |
NO_UPDATE_MODES
Convenience to disable all update modes |
| Fields inherited from class com.sl.gmsjrtview.GmsRtViewDs |
|---|
appMgr, connectToDatasource, dataEnabled, editFlag, Graphs, loginMode, loginPassword, loginUserName, MULTI_CLIENT_DSSTRING_LOGIN, MULTI_CLIENT_SUB_LOGIN, NO_LOGIN, rtvHome, SINGLE_CLIENT_LOGIN, subDelims, timeTrace, traceLevel |
| Constructor Summary | |
|---|---|
GmsRtViewDs()
Construct a GmsRtViewDs. |
|
| Method Summary | |
|---|---|
protected void |
addConnection(GmsRtViewDsConnInfo connInfo)
This is called from the command line, applet params, options file and options dialog to add a new or modified connInfo. |
java.lang.String |
buildDataKey(GmsRtViewDataObject dataObject)
Construct the data key for a data object, using the current values of the data key fields. |
java.lang.String |
buildDataKey(java.lang.String[] values)
Construct a data key given an array of values. |
void |
closeConnection(GmsRtViewDsConnInfo connInfo)
Close a connection. |
GmsRtViewDsConnInfo |
getConnInfoFromName(java.lang.String name)
Get the GmsRtViewDsConnInfo with the given name. |
java.util.Set |
getConnInfoNames()
Get the set of GmsRtViewDsConnInfo names for this datasource. |
java.util.Collection |
getConnInfos()
Get the collection of GmsRtViewDsConnInfo objects for this datasource. |
GmsRtViewDataObject |
getDataObjectByKey(java.lang.String key)
Get the GmsRtViewDataObject with the specified name. |
java.util.List |
getDataObjects()
Get a List of all currently active GmsRtViewDataObjects. |
java.util.Vector |
getDsFileNames()
Returns the Vector containing names of jars, dlls or other application files needed for this data source. |
GmsRtViewDsOptions |
getDsOptions()
Get the GmsRtViewDsOptions object for this datasource. |
java.lang.String |
getLoginPassword()
Get the login password for RTView. |
java.lang.String |
getLoginUserName()
Get the login user name for RTView. |
GmsTabularData |
getStoredDataTable(java.lang.String dataKey)
Retrieve a data table from the datasource, using the given key. |
protected abstract void |
initConnInfoExemplar(GmsRtViewDsConnInfo exemplar)
Define the fields available in the conn infos used by this datasource. |
protected abstract void |
initDataObjectExemplar(GmsRtViewDataObject exemplar)
Define the fields available in the data objects used by this datasource. |
protected abstract void |
initDsBaseProperties(GmsRtViewDsBaseProperties properties)
Initialize the base properties associated with this datasource. |
protected abstract void |
initDsControlProperties(GmsRtViewDsControlProperties properties)
Initialize the control properties associated with this datasource. |
protected abstract void |
initDsOptionsExemplar(GmsRtViewDsOptions exemplar)
Define the fields available in the ds options used by this datasource. |
protected void |
removeConnection(GmsRtViewDsConnInfo connInfo)
This is called to remove a connection. |
void |
storeData(GmsRtViewDataObject dataObj,
GmsTabularData table)
Store a table in the data object. |
void |
storeData(GmsRtViewDataObject dataObj,
GmsTabularData table,
java.lang.String[] indexColumnValues)
Store a table in the data object, adding the specified index values. |
void |
storeData(GmsRtViewDataObject dataObj,
GmsTabularData table,
java.lang.String[] indexColumnValues,
boolean replaceByIndex)
Store a table in the data object, adding the specified index values. |
void |
storeData(java.lang.String dataKey,
GmsTabularData table)
Store a table in all data objects that match the data key. |
void |
storeData(java.lang.String dataKey,
GmsTabularData table,
java.lang.String[] indexColumnValues)
Store a table in all data objects that match the data key, adding the specified index values. |
void |
storeData(java.lang.String dataKey,
GmsTabularData table,
java.lang.String[] indexColumnValues,
boolean replaceByIndex)
Store a table in all data objects that match the data key, adding the specified index values. |
| Methods inherited from class com.sl.gmsjrtview.GmsRtViewDs |
|---|
addListener, applyData, applyDataField, dc, ec, escapeSingleQuotes, exec_command, executeCommand, executeCommand, executeCommand, fixDsStringForVersion, getAlertClassNames, getAttachDataDialogName, getCacheClassNames, getDataObject, getDefineCommandDialogName, getDsAttribute, getDsDescription, getDsKey, getObjectNames, getOptionFileName, getOptionTabClassName, getRowNameSubs, getStringPool, getTableSubs, initializeData, isDataServer, isGlobalPanel, loginPassthroughActive, makeTokenizer, nextString, nextString, nextString, parseOptionString, processAppletParameters, processMainArgument, removeEscapeOnQuotes, removeListener, saveOption, saveOptionString, setDsAttribute, setupGraph, standbyModeChanged, startData, synchData, terminateData, updateData, updateData, updateGraphsData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
compare, equals |
| Field Detail |
|---|
public static final java.util.Set ALL_UPDATE_MODES
public static final java.util.Set DEFAULT_UPDATE_MODES
public static final java.util.Set NO_UPDATE_MODES
| Constructor Detail |
|---|
public GmsRtViewDs()
| Method Detail |
|---|
protected void addConnection(GmsRtViewDsConnInfo connInfo)
connInfo - the GmsRtViewDsConnInfo to addpublic java.lang.String buildDataKey(GmsRtViewDataObject dataObject)
public java.lang.String buildDataKey(java.lang.String[] values)
values - the values of each of the data key fields
public void closeConnection(GmsRtViewDsConnInfo connInfo)
connInfo - the connection to closepublic GmsRtViewDsConnInfo getConnInfoFromName(java.lang.String name)
public java.util.Set getConnInfoNames()
public java.util.Collection getConnInfos()
public GmsRtViewDataObject getDataObjectByKey(java.lang.String key)
Leading and trailing whitespace are removed from the name before searching for the data object. If the name begins with the datasource key, the key is removed from the name before searching for the data object.
This method will return null if there is no GmsRtViewDataObject with the specified name.
This method will also return null if the datasource key returned from the method getDsKey() is null or empty.
key - the name of the GmsRtViewDataObject
public java.util.List getDataObjects()
public java.util.Vector getDsFileNames()
This method is called from the Deployment Wizard to package up the correct files for this data source. If the data source returns null, no files will be included in the generated deployment for this data source.
getDsFileNames in class com.sl.gmsjrtview.GmsRtViewDspublic GmsRtViewDsOptions getDsOptions()
public java.lang.String getLoginPassword()
public java.lang.String getLoginUserName()
public GmsTabularData getStoredDataTable(java.lang.String dataKey)
dataKey - the name of the table to retrieve
protected abstract void initConnInfoExemplar(GmsRtViewDsConnInfo exemplar)
exemplar - the conn info exemplar for this datasourceprotected abstract void initDataObjectExemplar(GmsRtViewDataObject exemplar)
exemplar - the data object exemplar for this datasourceprotected abstract void initDsBaseProperties(GmsRtViewDsBaseProperties properties)
properties - the datasource base propertiesprotected abstract void initDsControlProperties(GmsRtViewDsControlProperties properties)
properties - the datasource control propertiesprotected abstract void initDsOptionsExemplar(GmsRtViewDsOptions exemplar)
exemplar - the ds options exemplar for this datasourceprotected void removeConnection(GmsRtViewDsConnInfo connInfo)
connInfo - the GmsRtViewDsConnInfo to remove
public void storeData(GmsRtViewDataObject dataObj,
GmsTabularData table)
dataObj - the data objecttable - the table to store
public void storeData(GmsRtViewDataObject dataObj,
GmsTabularData table,
java.lang.String[] indexColumnValues)
dataObj - the data objecttable - the table to storeindexColumnValues - the values to store in the index columns
public void storeData(GmsRtViewDataObject dataObj,
GmsTabularData table,
java.lang.String[] indexColumnValues,
boolean replaceByIndex)
dataObj - the data objecttable - the table to storeindexColumnValues - the values to store in the index columnsreplaceByIndex - should the indexColumnValues be used to replace previously-stored data
public void storeData(java.lang.String dataKey,
GmsTabularData table)
dataKey - the key to locate the data objectstable - the table to store
public void storeData(java.lang.String dataKey,
GmsTabularData table,
java.lang.String[] indexColumnValues)
dataKey - the key to locate the data objectstable - the table to storeindexColumnValues - the values to store in the index columns
public void storeData(java.lang.String dataKey,
GmsTabularData table,
java.lang.String[] indexColumnValues,
boolean replaceByIndex)
dataKey - the key to locate the data objectstable - the table to storeindexColumnValues - the values to store in the index columnsreplaceByIndex - should the indexColumnValues be used to replace previously stored data
|
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||