Class AttributesGeneric

java.lang.Object
com.uc4.api.objects.AttributesGeneric
All Implemented Interfaces:
IHostAttributes, PythonJob

public class AttributesGeneric extends Object implements IHostAttributes, PythonJob
Host attributes for Generic Jobs.
  • Constructor Details

    • AttributesGeneric

      public AttributesGeneric()
  • Method Details

    • pythonAttributes

      public Optional<PythonJobAttributes> pythonAttributes()
      Description copied from interface: PythonJob
      Returns PythonJobAttributes or empty if the sub type of the OS Job is not Python.
      Specified by:
      pythonAttributes in interface PythonJob
      Returns:
      Python job attributes
    • load

      public void load(com.uc4.util.XMLDocument doc, Element hostAttr, ConnectionAttributes sessionInfo)
      Description copied from interface: IHostAttributes
      Loads the host attributes.
      Specified by:
      load in interface IHostAttributes
      Parameters:
      doc - XML Document containing the Job
      hostAttr - Element which contains host attributes
      sessionInfo - Session details
    • store

      public void store(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes sessionInfo)
      Description copied from interface: IHostAttributes
      Writes the host attributes back to the XMLDocument.
      Specified by:
      store in interface IHostAttributes
      Parameters:
      doc - Document
      objectElement - ObjectElement
      sessionInfo - Session details
    • fieldCount

      public int fieldCount()
      Description copied from interface: IHostAttributes
      Returns the number of fields in the host attributes.
      Specified by:
      fieldCount in interface IHostAttributes
      Returns:
      number of fields
    • name

      public String name()
      Description copied from interface: IHostAttributes
      Returns the host attributes name.
      Specified by:
      name in interface IHostAttributes
      Returns:
      name