Package com.queue.file.controller
Class StableController
java.lang.Object
com.queue.file.controller.StableController
- All Implemented Interfaces:
Controller
-
Constructor Summary
ConstructorsConstructorDescriptionStableController(String queue) StableController(String queuePath, String queueName) StableController(Map<String, Object> config) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()longlonglongintlonggetQueue()intbooleanisOk()booleanopen()readAll()voidreadCommit(String threadName) voidreadRollBack(String threadName) voidlongrealignKey(List<Long> keyList, org.h2.mvstore.MVMap<Long, String> dataMap) voidvoidremoveReadBufferOne(String threadName) booleanvalidate()voidwrite(FileQueueData fData) voidvoidvoidwriteQueueData(List<FileQueueData> fileQueueDataList) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.queue.file.controller.Controller
clearAll
-
Constructor Details
-
StableController
-
StableController
-
StableController
-
-
Method Details
-
validate
public boolean validate()- Specified by:
validatein interfaceController
-
open
public boolean open()- Specified by:
openin interfaceController
-
realignData
- Specified by:
realignDatain interfaceController- Throws:
InitializeException
-
realignKey
- Specified by:
realignKeyin interfaceController
-
write
- Specified by:
writein interfaceController- Throws:
QueueWriteException
-
write
- Specified by:
writein interfaceController- Throws:
QueueWriteException
-
write
- Specified by:
writein interfaceController- Throws:
QueueWriteException
-
writeQueueData
- Specified by:
writeQueueDatain interfaceController- Throws:
QueueWriteException
-
read
- Specified by:
readin interfaceController- Throws:
QueueReadException
-
read
- Specified by:
readin interfaceController- Throws:
QueueReadException
-
readAll
- Specified by:
readAllin interfaceController
-
removeOne
- Specified by:
removeOnein interfaceController- Throws:
QueueReadException
-
removeReadBufferOne
- Specified by:
removeReadBufferOnein interfaceController- Throws:
QueueReadException
-
clearData
- Specified by:
clearDatain interfaceController- Throws:
QueueReadException
-
clearReadBuffer
- Specified by:
clearReadBufferin interfaceController- Throws:
QueueReadException
-
readCommit
- Specified by:
readCommitin interfaceController- Throws:
QueueReadException
-
readRollBack
-
getInputCount
public long getInputCount() -
getOutputCount
public long getOutputCount() -
getLastInTime
public long getLastInTime() -
getLastOutTime
public long getLastOutTime() -
isOk
public boolean isOk()- Specified by:
isOkin interfaceController
-
getQueueSize
public int getQueueSize()- Specified by:
getQueueSizein interfaceController
-
getMaxSize
public int getMaxSize()- Specified by:
getMaxSizein interfaceController
-
close
public void close()- Specified by:
closein interfaceController
-
getQueue
- Specified by:
getQueuein interfaceController
-
getQueueName
- Specified by:
getQueueNamein interfaceController
-
getQueuePath
- Specified by:
getQueuePathin interfaceController
-