Package com.portal.common
Class LoadDeviceState
java.lang.Object
com.portal.common.LoadDeviceState
This class extends the LoadPinConfig class and provides a concrete
implementation for the parser, it calls the base class's
processConfig with the right object name and
opcodes for delete and insert.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLoadDeviceState
(LoaderOptions options) Constructor takes the Loader options object as the param. -
Method Summary
Modifier and TypeMethodDescriptioncom.portal.common.FileParser
createParser
(LoaderOptions options) This implements the createParser method of FileParser createParser returns the DeviceStateConfigParser objectgetStorableObject
(LoaderOptions options) getStorableObject returns the name of the storable object.static void
void
processConfig
(LoadPinConfigParams configParams) processConfig is the method invoked by the derived classes, this method connects to Portal and invokes the parser, gets an Flist and calls the updateInfranet method with the Flistprotected void
updateParseFlist
(FList parseFlist, FList resultFlist) Optionally override this method to update the parse Flist for your particular loader application.
-
Field Details
-
mOptions
-
mContext
-
-
Constructor Details
-
LoadDeviceState
Constructor takes the Loader options object as the param.- Parameters:
options
- the LoaderOptions object that contains info about the command line args
-
-
Method Details
-
createParser
This implements the createParser method of FileParser createParser returns the DeviceStateConfigParser object- Parameters:
options
- the LoaderOptions object that contains info about the command line args
-
getStorableObject
getStorableObject returns the name of the storable object. This object is returned by the getStorableObject method implemented by the parser.- Parameters:
options
- the LoaderOptions object that contains info about the command line args
-
main
-
processConfig
processConfig is the method invoked by the derived classes, this method connects to Portal and invokes the parser, gets an Flist and calls the updateInfranet method with the Flist- Parameters:
configParams
- Object contains the params used, most commonly contains the objectName, Opcode to be used for insertion and opcode to be used for deletion
-
updateParseFlist
Optionally override this method to update the parse Flist for your particular loader application.- Parameters:
parseFlist
- the parseFList that is returned from the parserresultFlist
- the resultFlist contains the results of the database search- Throws:
EBufException
-