Class DefaultPmFilesProvider
java.lang.Object
com._1c.g5.v8.dt.internal.pm.connection.mmf.DefaultPmFilesProvider
- All Implemented Interfaces:
PmTempFilesProvider
,AutoCloseable
- Direct Known Subclasses:
CreatingPmFilesProvider
Provides temporary files for given directory. Does not creates them, so they created by
CreatingPmFilesProvider
in the other process (other side of IPC channel).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Represents direction of data in IPC channel. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructs new instance which provides files located in given root directory.DefaultPmFilesProvider
(File processRootDir, DefaultPmFilesProvider.DataDirection direction) Constructs new instance with given process root dir and data direction. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Creates and returns file to be mapped to memory transfer data from process to process.getLockA()
Creates and returns file for lock A.getLockB()
Creates and returns file for lock B.getLockC()
Creates and returns file for lock C.protected static File
getRootDir
(File processRootDir, DefaultPmFilesProvider.DataDirection direction) Returns temporary files root directory for given process root directory and data direction.
-
Field Details
-
dir
-
lockA
-
lockB
-
lockC
-
dataBuffer
-
-
Constructor Details
-
DefaultPmFilesProvider
Constructs new instance with given process root dir and data direction.- Parameters:
processRootDir
- given process root dir (notnull
)direction
- given data direction (notnull
)
-
DefaultPmFilesProvider
Constructs new instance which provides files located in given root directory.- Parameters:
dir
- given root directory (notnull
)
-
-
Method Details
-
getLockA
Description copied from interface:PmTempFilesProvider
Creates and returns file for lock A.- Specified by:
getLockA
in interfacePmTempFilesProvider
- Returns:
- file for lock A (not
null
)
-
getLockB
Description copied from interface:PmTempFilesProvider
Creates and returns file for lock B.- Specified by:
getLockB
in interfacePmTempFilesProvider
- Returns:
- file for lock B (not
null
)
-
getLockC
Description copied from interface:PmTempFilesProvider
Creates and returns file for lock C.- Specified by:
getLockC
in interfacePmTempFilesProvider
- Returns:
- file for lock C (not
null
)
-
getDataBuffer
Description copied from interface:PmTempFilesProvider
Creates and returns file to be mapped to memory transfer data from process to process.- Specified by:
getDataBuffer
in interfacePmTempFilesProvider
- Returns:
- file to be mapped to memory transfer data from process to process (not
null
)
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacePmTempFilesProvider
- Throws:
IOException
-
getRootDir
protected static File getRootDir(File processRootDir, DefaultPmFilesProvider.DataDirection direction) Returns temporary files root directory for given process root directory and data direction.- Parameters:
processRootDir
- given process root directory (notnull
)direction
- given data direction notnull
)- Returns:
- temporary files root directory (not
null
)
-