presenter

package
v1.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PresenterStatusHandler

type PresenterStatusHandler struct {
	// contains filtered or unexported fields
}

PresenterStatusHandler is the AppStatusHandler impl that is able to process and store received data

func NewPresenterStatusHandler

func NewPresenterStatusHandler() *PresenterStatusHandler

NewPresenterStatusHandler will return an instance of the struct

func (*PresenterStatusHandler) AddUint64

func (psh *PresenterStatusHandler) AddUint64(key string, value uint64)

AddUint64 - will increase the value of a key with a value

func (*PresenterStatusHandler) CalculateSynchronizationSpeed

func (psh *PresenterStatusHandler) CalculateSynchronizationSpeed(numMillisecondsRefreshTime int) uint64

CalculateSynchronizationSpeed will calculate and return speed of synchronization how many blocks per second are synchronized

func (*PresenterStatusHandler) CalculateTimeToSynchronize

func (psh *PresenterStatusHandler) CalculateTimeToSynchronize(numMillisecondsRefreshTime int) string

CalculateTimeToSynchronize will calculate and return an estimation of the time required for synchronization in a human friendly format

func (*PresenterStatusHandler) CheckSoftwareVersion

func (psh *PresenterStatusHandler) CheckSoftwareVersion() (bool, string)

CheckSoftwareVersion will check if node is the latest version and will return the latest stable version

func (*PresenterStatusHandler) Close

func (psh *PresenterStatusHandler) Close()

Close method - won't do anything

func (*PresenterStatusHandler) Decrement

func (psh *PresenterStatusHandler) Decrement(key string)

Decrement - will decrement the value of a key

func (*PresenterStatusHandler) GetAppVersion

func (psh *PresenterStatusHandler) GetAppVersion() string

GetAppVersion will return application version

func (*PresenterStatusHandler) GetBlockSize

func (psh *PresenterStatusHandler) GetBlockSize() uint64

GetBlockSize will return current block size

func (*PresenterStatusHandler) GetChainID

func (psh *PresenterStatusHandler) GetChainID() string

GetChainID returns the chain ID

func (*PresenterStatusHandler) GetConnectedNodes

func (psh *PresenterStatusHandler) GetConnectedNodes() uint64

GetConnectedNodes will return how many intra-shard nodes are connected

func (*PresenterStatusHandler) GetConsensusRoundState

func (psh *PresenterStatusHandler) GetConsensusRoundState() string

GetConsensusRoundState will return consensus round state

func (*PresenterStatusHandler) GetConsensusState

func (psh *PresenterStatusHandler) GetConsensusState() string

GetConsensusState will return consensus state of node

func (*PresenterStatusHandler) GetCountAcceptedBlocks

func (psh *PresenterStatusHandler) GetCountAcceptedBlocks() uint64

GetCountAcceptedBlocks will return count of how many accepted blocks was proposed by the node

func (*PresenterStatusHandler) GetCountConsensus

func (psh *PresenterStatusHandler) GetCountConsensus() uint64

GetCountConsensus will return count of how many times node was in consensus group

func (*PresenterStatusHandler) GetCountConsensusAcceptedBlocks

func (psh *PresenterStatusHandler) GetCountConsensusAcceptedBlocks() uint64

GetCountConsensusAcceptedBlocks will return a count if how many times the node was in consensus group and a block was produced

func (*PresenterStatusHandler) GetCountLeader

func (psh *PresenterStatusHandler) GetCountLeader() uint64

GetCountLeader will return count of how many times node was leader in consensus group

func (*PresenterStatusHandler) GetCpuLoadPercent

func (psh *PresenterStatusHandler) GetCpuLoadPercent() uint64

GetCpuLoadPercent wil return cpu load

func (*PresenterStatusHandler) GetCrossCheckBlockHeight

func (psh *PresenterStatusHandler) GetCrossCheckBlockHeight() string

GetCrossCheckBlockHeight will return cross block height

func (*PresenterStatusHandler) GetCurrentBlockHash

func (psh *PresenterStatusHandler) GetCurrentBlockHash() string

GetCurrentBlockHash will return current block hash

func (*PresenterStatusHandler) GetCurrentRound

func (psh *PresenterStatusHandler) GetCurrentRound() uint64

GetCurrentRound will return current round of node

func (*PresenterStatusHandler) GetCurrentRoundTimestamp

func (psh *PresenterStatusHandler) GetCurrentRoundTimestamp() uint64

GetCurrentRoundTimestamp will return current round timestamp

func (*PresenterStatusHandler) GetEpochInfo

func (psh *PresenterStatusHandler) GetEpochInfo() (uint64, uint64, int, string)

GetEpochInfo will return information about current epoch

func (*PresenterStatusHandler) GetEpochNumber

func (psh *PresenterStatusHandler) GetEpochNumber() uint64

GetEpochNumber will return current epoch

func (*PresenterStatusHandler) GetHighestFinalBlock

func (psh *PresenterStatusHandler) GetHighestFinalBlock() uint64

GetHighestFinalBlock will return the highest nonce block notarized by metachain for current shard

func (*PresenterStatusHandler) GetIntraShardValidators

func (psh *PresenterStatusHandler) GetIntraShardValidators() uint64

GetIntraShardValidators will return how many intra-shard validator nodes are and known by the current node to be active

func (*PresenterStatusHandler) GetIsSyncing

func (psh *PresenterStatusHandler) GetIsSyncing() uint64

GetIsSyncing will return state of the node

func (*PresenterStatusHandler) GetLiveValidatorNodes

func (psh *PresenterStatusHandler) GetLiveValidatorNodes() uint64

GetLiveValidatorNodes will return how many validator nodes are in blockchain and known by the current node to be active

func (*PresenterStatusHandler) GetLogLines

func (psh *PresenterStatusHandler) GetLogLines() []string

GetLogLines will return log lines that's need to be displayed

func (*PresenterStatusHandler) GetMemLoadPercent

func (psh *PresenterStatusHandler) GetMemLoadPercent() uint64

GetMemLoadPercent will return mem percent usage of node

func (*PresenterStatusHandler) GetMemUsedByNode

func (psh *PresenterStatusHandler) GetMemUsedByNode() uint64

GetMemUsedByNode will return how many memory node uses

func (*PresenterStatusHandler) GetNetworkReceivedBytesInEpoch

func (psh *PresenterStatusHandler) GetNetworkReceivedBytesInEpoch() uint64

GetNetworkReceivedBytesInEpoch will return the number of bytes received in current epoch

func (*PresenterStatusHandler) GetNetworkRecvBps

func (psh *PresenterStatusHandler) GetNetworkRecvBps() uint64

GetNetworkRecvBps will return network received bytes per second

func (*PresenterStatusHandler) GetNetworkRecvBpsPeak

func (psh *PresenterStatusHandler) GetNetworkRecvBpsPeak() uint64

GetNetworkRecvBpsPeak will return received bytes per seconds peak

func (*PresenterStatusHandler) GetNetworkRecvPercent

func (psh *PresenterStatusHandler) GetNetworkRecvPercent() uint64

GetNetworkRecvPercent will return network receive percent

func (*PresenterStatusHandler) GetNetworkSentBps

func (psh *PresenterStatusHandler) GetNetworkSentBps() uint64

GetNetworkSentBps will return network sent bytes per second

func (*PresenterStatusHandler) GetNetworkSentBpsPeak

func (psh *PresenterStatusHandler) GetNetworkSentBpsPeak() uint64

GetNetworkSentBpsPeak will return sent bytes per seconds peak

func (*PresenterStatusHandler) GetNetworkSentBytesInEpoch

func (psh *PresenterStatusHandler) GetNetworkSentBytesInEpoch() uint64

GetNetworkSentBytesInEpoch will return the number of bytes sent in current epoch

func (*PresenterStatusHandler) GetNetworkSentPercent

func (psh *PresenterStatusHandler) GetNetworkSentPercent() uint64

GetNetworkSentPercent will return network sent percent

func (*PresenterStatusHandler) GetNodeName

func (psh *PresenterStatusHandler) GetNodeName() string

GetNodeName will return node's display name

func (*PresenterStatusHandler) GetNodeType

func (psh *PresenterStatusHandler) GetNodeType() string

GetNodeType will return type of node

func (*PresenterStatusHandler) GetNonce

func (psh *PresenterStatusHandler) GetNonce() uint64

GetNonce will return current nonce of node

func (*PresenterStatusHandler) GetNumConnectedPeers

func (psh *PresenterStatusHandler) GetNumConnectedPeers() uint64

GetNumConnectedPeers will return how many peers are connected

func (*PresenterStatusHandler) GetNumMiniBlocks

func (psh *PresenterStatusHandler) GetNumMiniBlocks() uint64

GetNumMiniBlocks will return how many miniblocks are in a block

func (*PresenterStatusHandler) GetNumShardHeadersInPool

func (psh *PresenterStatusHandler) GetNumShardHeadersInPool() uint64

GetNumShardHeadersInPool will return number of shard headers that are in pool

func (*PresenterStatusHandler) GetNumShardHeadersProcessed

func (psh *PresenterStatusHandler) GetNumShardHeadersProcessed() uint64

GetNumShardHeadersProcessed will return number of shard header processed until now

func (*PresenterStatusHandler) GetNumTxInBlock

func (psh *PresenterStatusHandler) GetNumTxInBlock() uint64

GetNumTxInBlock will return how many transactions are in block

func (*PresenterStatusHandler) GetNumTxProcessed

func (psh *PresenterStatusHandler) GetNumTxProcessed() uint64

GetNumTxProcessed will return number of processed transactions since node starts

func (*PresenterStatusHandler) GetPeerSubType

func (psh *PresenterStatusHandler) GetPeerSubType() string

GetPeerSubType will return subtype of peer (regular, full history)

func (*PresenterStatusHandler) GetPeerType

func (psh *PresenterStatusHandler) GetPeerType() string

GetPeerType will return type of peer (eligible, waiting, and so on)

func (*PresenterStatusHandler) GetProbableHighestNonce

func (psh *PresenterStatusHandler) GetProbableHighestNonce() uint64

GetProbableHighestNonce will return the highest nonce of blockchain

func (*PresenterStatusHandler) GetPublicKeyBlockSign

func (psh *PresenterStatusHandler) GetPublicKeyBlockSign() string

GetPublicKeyBlockSign will return node public key for sign blocks

func (*PresenterStatusHandler) GetRedundancyIsMainActive

func (psh *PresenterStatusHandler) GetRedundancyIsMainActive() string

GetRedundancyIsMainActive will return the info about redundancy main machine

func (*PresenterStatusHandler) GetRedundancyLevel

func (psh *PresenterStatusHandler) GetRedundancyLevel() int64

GetRedundancyLevel will return the redundancy level of the node

func (*PresenterStatusHandler) GetRoundTime

func (psh *PresenterStatusHandler) GetRoundTime() uint64

GetRoundTime will return duration of a round

func (*PresenterStatusHandler) GetShardId

func (psh *PresenterStatusHandler) GetShardId() uint64

GetShardId will return shard ID of node

func (*PresenterStatusHandler) GetSynchronizedRound

func (psh *PresenterStatusHandler) GetSynchronizedRound() uint64

GetSynchronizedRound will return number of synchronized round

func (*PresenterStatusHandler) GetTotalMem

func (psh *PresenterStatusHandler) GetTotalMem() uint64

GetTotalMem will return how much memory does the computer have

func (*PresenterStatusHandler) GetTrieSyncNumBytesReceived

func (psh *PresenterStatusHandler) GetTrieSyncNumBytesReceived() uint64

GetTrieSyncNumBytesReceived will return the number of bytes synced during trie sync

func (*PresenterStatusHandler) GetTrieSyncNumProcessedNodes

func (psh *PresenterStatusHandler) GetTrieSyncNumProcessedNodes() uint64

GetTrieSyncNumProcessedNodes will return the number of processed nodes during trie sync

func (*PresenterStatusHandler) GetTxPoolLoad

func (psh *PresenterStatusHandler) GetTxPoolLoad() uint64

GetTxPoolLoad will return how many transactions are in the pool

func (*PresenterStatusHandler) Increment

func (psh *PresenterStatusHandler) Increment(key string)

Increment - will increment the value of a key

func (*PresenterStatusHandler) InvalidateCache

func (psh *PresenterStatusHandler) InvalidateCache()

InvalidateCache will clear the entire map

func (*PresenterStatusHandler) IsInterfaceNil

func (psh *PresenterStatusHandler) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*PresenterStatusHandler) SetInt64Value

func (psh *PresenterStatusHandler) SetInt64Value(key string, value int64)

SetInt64Value method - will update the value for a key

func (*PresenterStatusHandler) SetStringValue

func (psh *PresenterStatusHandler) SetStringValue(key string, value string)

SetStringValue method - will update the value of a key

func (*PresenterStatusHandler) SetUInt64Value

func (psh *PresenterStatusHandler) SetUInt64Value(key string, value uint64)

SetUInt64Value method - will update the value for a key

func (*PresenterStatusHandler) Write

func (psh *PresenterStatusHandler) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL