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, ornull
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMsgLogSpec
(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 aMsgLogSpec
record class.MsgLogSpec
(com.iamsoft.locationfacade.select.mount.MountSpec pMsgRepo) MsgLogSpec
(com.iamsoft.locationfacade.select.mount.MountSpec pMsgRepo, com.iamsoft.locationfacade.select.mount.MountSpec pDict) MsgLogSpec
(com.iamsoft.locationfacade.select.mount.MountSpec pMsgRepo, com.iamsoft.locationfacade.select.mount.MountSpec pDict, com.iamsoft.locationfacade.select.mount.MountSpec pTransportDict) MsgLogSpec
(com.iamsoft.locationfacade.select.mount.MountSpec pMsgRepo, com.iamsoft.locationfacade.select.mount.MountSpec pDict, com.iamsoft.locationfacade.select.mount.MountSpec pTransportDict, long pSize) -
Method Summary
Modifier and TypeMethodDescriptionstatic Stream
<com.iamsoft.locationfacade.select.mount.MountSpec> archivePathStream
(com.iamsoft.locationfacade.select.mount.MountSpec pMountSpec) Returnsnull
if unsupported archive type is specified.com.iamsoft.locationfacade.select.mount.MountSpec
dict()
Returns the value of thedict
record component.final boolean
Indicates whether some other object is "equal to" this one.errorMsg()
Returns the value of theerrorMsg
record component.static int
Generated IDs are always in ascending order.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.boolean
static boolean
boolean
Returns the value of theloadComplete
record component.Returns the value of theloadStart
record component.long
logSize()
Returns the value of thelogSize
record component.com.iamsoft.locationfacade.select.mount.MountSpec
msgRepo()
Returns the value of themsgRepo
record component.final String
toString()
Returns a string representation of this record class.com.iamsoft.locationfacade.select.mount.MountSpec
Returns the value of thetransportDict
record component.static com.iamsoft.locationfacade.select.mount.MountSpec
withArchiveEntry
(com.iamsoft.locationfacade.select.mount.MountSpec pMountSpec, String pArchivePath, Long pSize) withArchiveEntry
(String pArchivePath, long pSize, Long pUncompressedSize) withErrorMsg
(String pErrorMsg) withLoadComplete
(LocalDateTime pLoadComplete) withLoadStart
(LocalDateTime pLoadStart) withLogSize
(long pSize)
-
Field Details
-
ARCHIVE_ENTRY_KEY
- See Also:
-
UNCOMPRESSED_SIZE_KEY
- See Also:
-
-
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 aMsgLogSpec
record class.- Parameters:
id
- the value for theid
record componentmsgRepo
- the value for themsgRepo
record componentdict
- the value for thedict
record componenttransportDict
- the value for thetransportDict
record componentlogSize
- the value for thelogSize
record componentloadStart
- the value for theloadStart
record componentloadComplete
- the value for theloadComplete
record componenterrorMsg
- the value for theerrorMsg
record component
-
-
Method Details
-
withLogSize
-
withLoadStart
-
withLoadComplete
-
isArchiveEntry
public boolean isArchiveEntry() -
getArchivePath
-
getUncompressedSize
-
withArchiveEntry
-
withArchiveEntry
-
withErrorMsg
-
isArchive
public boolean isArchive() -
isArchive
-
archivePathStream
public static Stream<com.iamsoft.locationfacade.select.mount.MountSpec> archivePathStream(com.iamsoft.locationfacade.select.mount.MountSpec pMountSpec) throws IOException Returnsnull
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
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
public int id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
msgRepo
public com.iamsoft.locationfacade.select.mount.MountSpec msgRepo()Returns the value of themsgRepo
record component.- Returns:
- the value of the
msgRepo
record component
-
dict
public com.iamsoft.locationfacade.select.mount.MountSpec dict()Returns the value of thedict
record component.- Returns:
- the value of the
dict
record component
-
transportDict
public com.iamsoft.locationfacade.select.mount.MountSpec transportDict()Returns the value of thetransportDict
record component.- Returns:
- the value of the
transportDict
record component
-
logSize
public long logSize()Returns the value of thelogSize
record component.- Returns:
- the value of the
logSize
record component
-
loadStart
Returns the value of theloadStart
record component.- Returns:
- the value of the
loadStart
record component
-
loadComplete
Returns the value of theloadComplete
record component.- Returns:
- the value of the
loadComplete
record component
-
errorMsg
Returns the value of theerrorMsg
record component.- Returns:
- the value of the
errorMsg
record component
-