Package io.goobi.viewer.managedbeans
Class MessageQueueBean
java.lang.Object
io.goobi.viewer.managedbeans.MessageQueueBean
- All Implemented Interfaces:
Serializable
MessageQueueBean class.
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionConstructor for MessageQueueBean.MessageQueueBean
(MessageQueueManager broker) Constructor for MessageQueueBean. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearQueue.void
close()
close.void
deleteMessage
(ViewerMessage ticket) Delete a single message from the queueGet a list of all active messages in the goobi_slow queue.Getter for the fieldlazyModelViewerHistory
.getListeners.Getter for the fieldmessageType
.getQueryMessages
(String messageType) getQueryMessages.getQueueContent.int
void
init()
init.void
initMessageBrokerStart.boolean
isMessageBrokerStart.boolean
isPaused()
isPaused.void
pauseQueue.void
Remove all active messages of a given type from the queue.void
restartAllListeners.void
resumeQueue.void
setMessageType
(String messageType) Setter for the fieldmessageType
.void
updateMessageQueueState.
-
Constructor Details
-
MessageQueueBean
public MessageQueueBean()Constructor for MessageQueueBean.
-
MessageQueueBean
Constructor for MessageQueueBean.
- Parameters:
broker
- aMessageQueueManager
object
-
-
Method Details
-
init
@PostConstruct public void init()init.
-
close
@PreDestroy public void close() throws jakarta.jms.JMSExceptionclose.
- Throws:
jakarta.jms.JMSException
- if any.
-
getQueueContent
getQueueContent.
- Returns:
- a
Map
object
-
getTotalMessagesInQueueCount
public int getTotalMessagesInQueueCount() -
pauseQueue
public void pauseQueue()pauseQueue.
-
resumeQueue
public void resumeQueue()resumeQueue.
-
clearQueue
public void clearQueue()clearQueue.
-
initMessageBrokerStart
public void initMessageBrokerStart()initMessageBrokerStart.
-
getActiveQueryMesssages
Get a list of all active messages in the goobi_slow queue.- Returns:
- List
-
getQueryMessages
getQueryMessages.
- Parameters:
messageType
- aString
object- Returns:
- List
-
removeMessagesFromQueue
Remove all active messages of a given type from the queue.- Parameters:
type
- aString
object
-
deleteMessage
Delete a single message from the queue- Parameters:
ticket
- aViewerMessage
object
-
getMessageType
Getter for the field
messageType
.- Returns:
- a
String
object
-
setMessageType
Setter for the field
messageType
.- Parameters:
messageType
- aString
object
-
isMessageBrokerStart
public boolean isMessageBrokerStart()isMessageBrokerStart.
- Returns:
- a boolean
-
isPaused
public boolean isPaused()isPaused.
- Returns:
- a boolean
-
getLazyModelViewerHistory
Getter for the field
lazyModelViewerHistory
.- Returns:
- a
TableDataProvider
object
-
updateMessageQueueState
public void updateMessageQueueState()updateMessageQueueState.
-
getListeners
getListeners.
- Returns:
- a
List
object
-
restartAllListeners
public void restartAllListeners()restartAllListeners.
-
getMessageQueueState
-