Class LoadDeviceState

java.lang.Object
com.portal.common.LoadDeviceState

public class LoadDeviceState extends Object
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 Details

  • Constructor Details

    • LoadDeviceState

      public LoadDeviceState(LoaderOptions options)
      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

      public com.portal.common.FileParser createParser(LoaderOptions options)
      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

      public String getStorableObject(LoaderOptions options)
      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

      public static void main(String[] args)
    • processConfig

      public 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 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

      protected void updateParseFlist(FList parseFlist, FList resultFlist) throws EBufException
      Optionally override this method to update the parse Flist for your particular loader application.
      Parameters:
      parseFlist - the parseFList that is returned from the parser
      resultFlist - the resultFlist contains the results of the database search
      Throws:
      EBufException