Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MyCATApache/Mycat-IPC
/ functions
Functions
92 in github.com/MyCATApache/Mycat-IPC
⨍
Functions
92
◇
Types & classes
13
↓ 9 callers
Method
compareAndSwapLong
(long pos, long expected, long value)
src/main/java/io/mycat/ipc/UnsafeMemory.java:326
↓ 8 callers
Method
getStartPos
()
src/main/java/io/mycat/ipc/SharedMMRing.java:26
↓ 6 callers
Method
putByte
Writes a byte to the specified position. @param pos the position in the memory mapped file @param val the value to write
src/main/java/io/mycat/ipc/UnsafeMemory.java:191
↓ 6 callers
Method
putByteVolatile
Writes a byte (volatile) to the specified position. @param pos the position in the memory mapped file @param val the value to w
src/main/java/io/mycat/ipc/UnsafeMemory.java:203
↓ 5 callers
Method
getBytes
Reads a buffer of data. @param pos the position in the memory mapped file @param data the input buffer @param offset
src/main/java/io/mycat/ipc/UnsafeMemory.java:302
↓ 4 callers
Method
getEndPos
()
src/main/java/io/mycat/ipc/UnsafeMemory.java:76
↓ 4 callers
Method
getLongVolatile
Reads a long (volatile) from the specified position. @param pos position in the memory mapped file @return the value read
src/main/java/io/mycat/ipc/UnsafeMemory.java:179
↓ 4 callers
Method
getStartPos
()
src/main/java/io/mycat/ipc/FastestFileStorage.java:55
↓ 4 callers
Method
getWriteIndexPos
()
src/main/java/io/mycat/ipc/SharedMMRing.java:30
↓ 4 callers
Method
mapAndSetOffset
(final String loc, long fileSize, boolean createNewFile, long startPos, long mapSize)
src/main/java/io/mycat/ipc/UnsafeMemory.java:37
↓ 4 callers
Method
roundTo4096
(long i)
src/main/java/io/mycat/ipc/util/Util.java:10
↓ 3 callers
Method
close
()
src/main/java/io/mycat/ipc/FastestFileStorage.java:72
↓ 3 callers
Method
getAddr
()
src/main/java/io/mycat/ipc/QueueMeta.java:30
↓ 3 callers
Method
getByteVolatile
Reads a byte (volatile) from the specified position. @param pos the position in the memory mapped file @return the value read
src/main/java/io/mycat/ipc/UnsafeMemory.java:113
↓ 3 callers
Method
getNextDataAddr
()
src/main/java/io/mycat/ipc/SharedMMRing.java:70
↓ 3 callers
Method
getNextDataFlagIndexPos
()
src/main/java/io/mycat/ipc/SharedMMRing.java:34
↓ 3 callers
Method
getQueueCountInMM
()
src/main/java/io/mycat/ipc/SharedMMIPMemPool.java:103
↓ 3 callers
Method
getWriteIndexPos
()
src/main/java/io/mycat/ipc/FastestFileStorage.java:51
↓ 3 callers
Method
unmap
()
src/main/java/io/mycat/ipc/UnsafeMemory.java:90
↓ 2 callers
Method
createNewRing
(short groupId, int rawLength, byte storageType)
src/main/java/io/mycat/ipc/SharedMMIPMemPool.java:70
↓ 2 callers
Method
getFirstQueueAddr
()
src/main/java/io/mycat/ipc/SharedMMIPMemPool.java:66
↓ 2 callers
Method
getMethod
(Class<?> cls, String name, Class<?>... params)
src/main/java/io/mycat/ipc/UnsafeMemory.java:84
↓ 2 callers
Method
getMsgTotalSpace
(byte[] msg)
src/main/java/io/mycat/ipc/SharedMMRing.java:66
↓ 2 callers
Method
getRelovePos
(long abPos)
src/main/java/io/mycat/ipc/UnsafeMemory.java:67
↓ 2 callers
Method
getShortVolatile
Reads a short (volatile) from the specified position. @param pos the position in the memory mapped file @return the value read
src/main/java/io/mycat/ipc/UnsafeMemory.java:135
↓ 2 callers
Method
getStartPos
()
src/main/java/io/mycat/ipc/UnsafeMemory.java:72
↓ 2 callers
Method
getWriteStartAddr
()
src/main/java/io/mycat/ipc/FastestFileStorage.java:150
↓ 2 callers
Method
getWriteStartAddr
()
src/main/java/io/mycat/ipc/SharedMMRing.java:75
↓ 2 callers
Method
pullData
()
src/main/java/io/mycat/ipc/SharedMMRing.java:206
↓ 2 callers
Method
putData
if return false,means can't put ,ring is full @param rawMsg @return
src/main/java/io/mycat/ipc/SharedMMRing.java:177
↓ 2 callers
Method
putLongVolatile
Writes a long (volatile) to the specified position. @param pos the position in the memory mapped file @param val the value to w
src/main/java/io/mycat/ipc/UnsafeMemory.java:275
↓ 2 callers
Method
putShort
Writes an short to the specified position. @param pos the position in the memory mapped file @param val the value to write
src/main/java/io/mycat/ipc/UnsafeMemory.java:239
↓ 2 callers
Method
putShortVolatile
Writes an short (volatile) to the specified position. @param pos the position in the memory mapped file @param val the value to
src/main/java/io/mycat/ipc/UnsafeMemory.java:251
↓ 2 callers
Method
readData
(long prevNextDataFlagPos, long curDataFlagPos)
src/main/java/io/mycat/ipc/SharedMMRing.java:195
↓ 2 callers
Method
setBytes
Writes a buffer of data. @param pos the position in the memory mapped file @param data the output buffer @param offset
src/main/java/io/mycat/ipc/UnsafeMemory.java:318
↓ 2 callers
Method
tryReWindWrite
(byte[] rawMsg)
src/main/java/io/mycat/ipc/SharedMMRing.java:88
↓ 2 callers
Method
writeMsg
(UnsafeMemory mm, long pos, byte[] data)
src/main/java/io/mycat/ipc/FastestFileStorage.java:136
↓ 2 callers
Method
writeMsg
(long pos, byte[] data)
src/main/java/io/mycat/ipc/SharedMMRing.java:58
↓ 1 callers
Method
getAddrEnd
()
src/main/java/io/mycat/ipc/QueueMeta.java:20
↓ 1 callers
Method
getEndPos
()
src/main/java/io/mycat/ipc/SharedMMRing.java:38
↓ 1 callers
Method
getIntVolatile
Reads an int (volatile) from the specified position. @param pos position in the memory mapped file @return the value read
src/main/java/io/mycat/ipc/UnsafeMemory.java:157
↓ 1 callers
Method
getMetaData
()
src/main/java/io/mycat/ipc/SharedMMRing.java:84
↓ 1 callers
Method
getMsgTotalSpace
(byte[] msg)
src/main/java/io/mycat/ipc/FastestFileStorage.java:155
↓ 1 callers
Method
getNextDataAddr
()
src/main/java/io/mycat/ipc/FastestFileStorage.java:145
↓ 1 callers
Method
getNextDataFlagIndexPos
()
src/main/java/io/mycat/ipc/FastestFileStorage.java:47
↓ 1 callers
Method
getRawLenth
()
src/main/java/io/mycat/ipc/QueueMeta.java:27
↓ 1 callers
Method
getRing
(short i)
src/main/java/io/mycat/ipc/SharedMMIPMemPool.java:95
↓ 1 callers
Method
getShort
Reads a short from the specified position. @param pos the position in the memory mapped file @return the value read
src/main/java/io/mycat/ipc/UnsafeMemory.java:124
↓ 1 callers
Method
getSize
()
src/main/java/io/mycat/ipc/UnsafeMemory.java:80
↓ 1 callers
Method
init
()
src/main/java/io/mycat/ipc/FastestFileStorage.java:59
↓ 1 callers
Method
init
()
src/main/java/io/mycat/ipc/SharedMMIPMemPool.java:44
↓ 1 callers
Method
putIntVolatile
Writes an int (volatile) to the specified position. @param pos the position in the memory mapped file @param val the value to w
src/main/java/io/mycat/ipc/UnsafeMemory.java:227
↓ 1 callers
Method
tryWriteData
return 0 ,wirte ok , 1 ,try agagin ,-1 no space @param rawMsg @return
src/main/java/io/mycat/ipc/SharedMMRing.java:125
↓ 1 callers
Method
writeData
(byte[] rawMsg)
src/main/java/io/mycat/ipc/FastestFileStorage.java:83
Method
FastestFileStorage
Constructs a new memory mapped file. @param loc the file name @param len the file length @throws Exception in case
src/main/java/io/mycat/ipc/FastestFileStorage.java:34
Method
NativeMemoryRegion
(UnsafeMemory mm, long addr, long size)
src/main/java/io/mycat/ipc/NativeMemoryRegion.java:7
Method
QueueMeta
(short groupId, int rawLenth, long addr,byte storageType)
src/main/java/io/mycat/ipc/QueueMeta.java:8
Method
RawMessage
()
src/main/java/io/mycat/ipc/RawMessage.java:11
Method
SharedMMIPMemPool
Constructs a new memory mapped file. @param loc the file name @param len the file length @throws Exception in case
src/main/java/io/mycat/ipc/SharedMMIPMemPool.java:33
Method
SharedMMRing
(QueueMeta metaData, long rawMemoryStartAddr)
src/main/java/io/mycat/ipc/SharedMMRing.java:42
Method
UnsafeMemory
(long addr, long startPos, long size)
src/main/java/io/mycat/ipc/UnsafeMemory.java:54
Method
compareAndSwapInt
(long pos, int expected, int value)
src/main/java/io/mycat/ipc/UnsafeMemory.java:322
Method
equals
(Object obj)
src/main/java/io/mycat/ipc/QueueMeta.java:45
Method
getAddr
()
src/main/java/io/mycat/ipc/NativeMemoryRegion.java:16
Method
getAddr
()
src/main/java/io/mycat/ipc/UnsafeMemory.java:60
Method
getAndAddLong
(long pos, long delta)
src/main/java/io/mycat/ipc/UnsafeMemory.java:330
Method
getByte
Reads a byte from the specified position. @param pos the position in the memory mapped file @return the value read
src/main/java/io/mycat/ipc/UnsafeMemory.java:102
Method
getDataFlag
()
src/main/java/io/mycat/ipc/RawMessage.java:19
Method
getEndAddr
()
src/main/java/io/mycat/ipc/UnsafeMemory.java:64
Method
getGroupId
()
src/main/java/io/mycat/ipc/QueueMeta.java:24
Method
getInt
Reads an int from the specified position. @param pos the position in the memory mapped file @return the value read
src/main/java/io/mycat/ipc/UnsafeMemory.java:146
Method
getLastRing
()
src/main/java/io/mycat/ipc/SharedMMIPMemPool.java:99
Method
getLoc
()
src/main/java/io/mycat/ipc/SharedMMIPMemPool.java:40
Method
getLong
Reads a long from the specified position. @param pos position in the memory mapped file @return the value read
src/main/java/io/mycat/ipc/UnsafeMemory.java:168
Method
getMm
()
src/main/java/io/mycat/ipc/NativeMemoryRegion.java:13
Method
getMm
()
src/main/java/io/mycat/ipc/SharedMMRing.java:80
Method
getRawData
()
src/main/java/io/mycat/ipc/RawMessage.java:15
Method
getSize
()
src/main/java/io/mycat/ipc/NativeMemoryRegion.java:19
Method
getStorageType
()
src/main/java/io/mycat/ipc/QueueMeta.java:16
Method
hashCode
()
src/main/java/io/mycat/ipc/QueueMeta.java:34
Method
lazySetInt
(long pos, int val)
src/main/java/io/mycat/ipc/UnsafeMemory.java:285
Method
lazySetLong
(long pos, long val)
src/main/java/io/mycat/ipc/UnsafeMemory.java:280
Method
main
(String[] args)
src/test/java/io/mycat/ipc/Reader.java:4
Method
main
(String[] args)
src/test/java/io/mycat/ipc/Writer.java:4
Method
main
(String[] args)
src/main/java/io/mycat/ipc/util/Util.java:13
Method
putInt
Writes an int to the specified position. @param pos the position in the memory mapped file @param val the value to write
src/main/java/io/mycat/ipc/UnsafeMemory.java:215
Method
putLong
Writes a long to the specified position. @param pos the position in the memory mapped file @param val the value to write
src/main/java/io/mycat/ipc/UnsafeMemory.java:263
Method
readerFarBehindWriter
()
src/main/java/io/mycat/ipc/FastestFileStorage.java:77
Method
testInitFromFile
()
src/test/java/io/mycat/ipc/TestSharedMMIPMemPool.java:8
Method
testWriteAndRead
()
src/test/java/io/mycat/ipc/TestFastFileStorage.java:7
Method
testbitOp
()
src/test/java/io/mycat/ipc/TestBase.java:7
Method
toString
()
src/main/java/io/mycat/ipc/QueueMeta.java:65