Record Class MsgLogSpec

java.lang.Object
java.lang.Record
com.iamsoft.fixparser.MsgLogSpec
Record Components:
id - A unique id of the spec. The ID need not remain consistent from one execution of the application to another.
msgRepo - Mount specification of the message repo.
dict - The application dictionary.
transportDict - The application dictionary.
logSize - The size of log repo in bytes (-1 if unknown).
loadStart - Specifies when the load of the message repository started.
loadComplete - Specifies when the load of the message repository finished.
errorMsg - Specifies error message, or null if there are no issues.

public record MsgLogSpec(int id, com.iamsoft.locationfacade.select.mount.MountSpec msgRepo, com.iamsoft.locationfacade.select.mount.MountSpec dict, com.iamsoft.locationfacade.select.mount.MountSpec transportDict, long logSize, LocalDateTime loadStart, LocalDateTime loadComplete, String errorMsg) extends Record
Specification for a message repository.
  • Field Details

  • Constructor Details

    • MsgLogSpec

      public MsgLogSpec(com.iamsoft.locationfacade.select.mount.MountSpec pMsgRepo)
    • MsgLogSpec

      public MsgLogSpec(com.iamsoft.locationfacade.select.mount.MountSpec pMsgRepo, com.iamsoft.locationfacade.select.mount.MountSpec pDict)
    • MsgLogSpec

      public MsgLogSpec(com.iamsoft.locationfacade.select.mount.MountSpec pMsgRepo, com.iamsoft.locationfacade.select.mount.MountSpec pDict, com.iamsoft.locationfacade.select.mount.MountSpec pTransportDict)
    • MsgLogSpec

      public MsgLogSpec(com.iamsoft.locationfacade.select.mount.MountSpec pMsgRepo, com.iamsoft.locationfacade.select.mount.MountSpec pDict, com.iamsoft.locationfacade.select.mount.MountSpec pTransportDict, long pSize)
    • MsgLogSpec

      public MsgLogSpec(int id, com.iamsoft.locationfacade.select.mount.MountSpec msgRepo, com.iamsoft.locationfacade.select.mount.MountSpec dict, com.iamsoft.locationfacade.select.mount.MountSpec transportDict, long logSize, LocalDateTime loadStart, LocalDateTime loadComplete, String errorMsg)
      Creates an instance of a MsgLogSpec record class.
      Parameters:
      id - the value for the id record component
      msgRepo - the value for the msgRepo record component
      dict - the value for the dict record component
      transportDict - the value for the transportDict record component
      logSize - the value for the logSize record component
      loadStart - the value for the loadStart record component
      loadComplete - the value for the loadComplete record component
      errorMsg - the value for the errorMsg record component
  • Method Details

    • withLogSize

      public MsgLogSpec withLogSize(long pSize)
    • withLoadStart

      public MsgLogSpec withLoadStart(LocalDateTime pLoadStart)
    • withLoadComplete

      public MsgLogSpec withLoadComplete(LocalDateTime pLoadComplete)
    • isArchiveEntry

      public boolean isArchiveEntry()
    • getArchivePath

      public String getArchivePath()
    • getUncompressedSize

      public Long getUncompressedSize()
    • withArchiveEntry

      public MsgLogSpec withArchiveEntry(String pArchivePath, long pSize, Long pUncompressedSize)
    • withArchiveEntry

      public static com.iamsoft.locationfacade.select.mount.MountSpec withArchiveEntry(com.iamsoft.locationfacade.select.mount.MountSpec pMountSpec, String pArchivePath, Long pSize)
    • withErrorMsg

      public MsgLogSpec withErrorMsg(String pErrorMsg)
    • isArchive

      public boolean isArchive()
    • isArchive

      public static boolean isArchive(String pFileName)
    • archivePathStream

      public static Stream<com.iamsoft.locationfacade.select.mount.MountSpec> archivePathStream(com.iamsoft.locationfacade.select.mount.MountSpec pMountSpec) throws IOException
      Returns null if unsupported archive type is specified. The returned stream should be closed.
      Throws:
      IOException
    • generateId

      public static int generateId()
      Generated IDs are always in ascending order.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • msgRepo

      public com.iamsoft.locationfacade.select.mount.MountSpec msgRepo()
      Returns the value of the msgRepo record component.
      Returns:
      the value of the msgRepo record component
    • dict

      public com.iamsoft.locationfacade.select.mount.MountSpec dict()
      Returns the value of the dict record component.
      Returns:
      the value of the dict record component
    • transportDict

      public com.iamsoft.locationfacade.select.mount.MountSpec transportDict()
      Returns the value of the transportDict record component.
      Returns:
      the value of the transportDict record component
    • logSize

      public long logSize()
      Returns the value of the logSize record component.
      Returns:
      the value of the logSize record component
    • loadStart

      public LocalDateTime loadStart()
      Returns the value of the loadStart record component.
      Returns:
      the value of the loadStart record component
    • loadComplete

      public LocalDateTime loadComplete()
      Returns the value of the loadComplete record component.
      Returns:
      the value of the loadComplete record component
    • errorMsg

      public String errorMsg()
      Returns the value of the errorMsg record component.
      Returns:
      the value of the errorMsg record component