PmonHandler

abstract class PmonHandler(var manId: ProtoManId, isDemon: Boolean = false)

Inheritors

Constructors

Link copied to clipboard
constructor(manId: ProtoManId, isDemon: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
lateinit var broker: MessageBroker<ByteString, ProtoMessageWrapper>
Link copied to clipboard
var manId: ProtoManId
Link copied to clipboard
Link copied to clipboard
var requestedIds: MutableMap<ByteString, ProtoManager.Builder>
Link copied to clipboard
var thisManager: ProtoManager.Builder

Functions

Link copied to clipboard
fun answer(msg: ProtoMessageWrapper, txt: String = "", topic: String = msg.getSource().toTopicName())
Link copied to clipboard
abstract fun controller(msg: ProtoMessageWrapper)
Link copied to clipboard
fun getRequested(id: ByteString): ProtoManager.Builder?
Link copied to clipboard
fun installBroker(brokerProps: Map<String, Any> = mapOf( ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG to "false", "app.id" to thisManager.id.toGroupName() ))
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun mgrInit()
Link copied to clipboard
Link copied to clipboard
fun requestManagerState(id: ProtoManId.Builder)
Link copied to clipboard
Link copied to clipboard
fun send(id: ByteString = getUUID(), inData: ProtoMessageWrapper, destTopic: String = "")
Link copied to clipboard
suspend fun sendAndReceive(msg: ProtoMessageWrapper, topicName: String = Config.getPmonTopicName(), messageId: String = UUID.randomUUID().toString(), waitTime: Long = TIME_5S): ProtoMessageWrapper
Link copied to clipboard
fun sendCmdToMgr(cmd: ProtoCmdType, mgr: ProtoManager.Builder): ProtoMessageWrapper
Link copied to clipboard
fun sendDelMgrInCfg(id: ProtoManId.Builder): String
Link copied to clipboard
fun sendInit()
Link copied to clipboard
fun sendManagerToPmon(manager: ProtoManager.Builder = thisManager)
Link copied to clipboard
Link copied to clipboard
fun sendUpMgrInCfg(mgr: ProtoManager.Builder): Boolean
Link copied to clipboard
fun start(topicName: String)
Link copied to clipboard
fun stopManager(incomingUUID: ByteString)
Link copied to clipboard
fun subscribe(topicName: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun updateState(msg: ProtoMessageWrapper)