Class/Object

com.bwsw.tstreams.coordination.producer

PeerAgent

Related Docs: object PeerAgent | package producer

Permalink

class PeerAgent extends AnyRef

Agent for providing peer to peer interaction between Producers

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PeerAgent
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PeerAgent(agentsStateManager: AgentsStateDBService, zkService: ZookeeperDLMService, zkRetriesAmount: Int, producer: Producer[_], usedPartitions: List[Int], isLowPriorityToBeMaster: Boolean, transport: TcpTransport, threadPoolAmount: Int, threadPoolPublisherThreadsAmount: Int, partitionRedistributionDelay: Int, isMasterBootstrapModeFull: Boolean, isMasterProcessVote: Boolean)

    Permalink

    producer

    Producer reference

    usedPartitions

    List of used producer partitions

    isLowPriorityToBeMaster

    Flag which indicate to have low priority to be master

    transport

    Transport to provide interaction

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val awaitPartitionRedistributionThreadComplete: CountDownLatch

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def generateNewTransaction(partition: Int): Long

    Permalink

    Retrieve new transaction from agent

    Retrieve new transaction from agent

    partition

    Transaction partition

    returns

    TransactionID

  11. def getAgentAddress(): String

    Permalink
  12. def getAgentsStateManager(): AgentsStateDBService

    Permalink
  13. def getAndIncSequentialID(partition: Int): Long

    Permalink
  14. def getCassandraAsyncExecutor(partition: Int): FirstFailLockableTaskExecutor

    Permalink
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getProducer(): Producer[_]

    Permalink
  17. def getTransport(): TcpTransport

    Permalink
  18. def getUniqueAgentID(): Int

    Permalink
  19. def getUsedPartitions(): List[Int]

    Permalink
  20. def handleMessage(channel: Channel, rawMessage: String): Unit

    Permalink
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. val myInetAddress: String

    Permalink
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def notifyMaterialize(msg: TransactionStateMessage, to: String): Unit

    Permalink
  28. def publish(msg: TransactionStateMessage, isUpdateMaster: Boolean = false): Boolean

    Permalink

    Allows to publish update/pre/post/cancel messages.

  29. def stop(): Unit

    Permalink

    Stop this agent

  30. def submitPipelinedTaskToCassandraExecutor(partition: Int, task: () ⇒ Unit): Unit

    Permalink

    public method which allows to submit delayed task for execution

  31. def submitPipelinedTaskToMaterializeExecutor(partition: Int, task: () ⇒ Unit): Unit

    Permalink

    public method which allows to submit delayed task for execution

  32. def submitPipelinedTaskToNewTransactionExecutors(partition: Int, task: () ⇒ Unit): Unit

    Permalink

    public method which allows to submit delayed task for execution

  33. def submitPipelinedTaskToPublishExecutors(partition: Int, task: () ⇒ Unit): Unit

    Permalink

    public method which allows to submit delayed task for execution

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. def updateMaster(partition: Int, init: Boolean, retries: Int = zkRetriesAmount): Unit

    Permalink

    Updating master on concrete partition

    Updating master on concrete partition

    partition

    Partition to update master

    init

    If flag true master will be reselected anyway else old master can stay

    retries

    Retries to try to interact with master

  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped