Documentation ¶
Index ¶
Constants ¶
View Source
const ( PartitionDoesNotExists = "Partition not found" MissingParamsName = "Missing parameters" QueueDoesNotExists = "Queue not found" UserDoesNotExists = "User not found" GroupDoesNotExists = "Group not found" UserNameMissing = "User name is missing" GroupNameMissing = "Group name is missing" ApplicationDoesNotExists = "Application not found" NodeDoesNotExists = "Node not found" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatedStateInfo ¶
type AggregatedStateInfo struct { Timestamp int64 `json:"timestamp,omitempty"` Partitions []*dao.PartitionInfo `json:"partitions,omitempty"` Applications []*dao.ApplicationDAOInfo `json:"applications,omitempty"` AppHistory []*dao.ApplicationHistoryDAOInfo `json:"appHistory,omitempty"` Nodes []*dao.NodesDAOInfo `json:"nodes,omitempty"` ClusterInfo []*dao.ClusterDAOInfo `json:"clusterInfo,omitempty"` ContainerHistory []*dao.ContainerHistoryDAOInfo `json:"containerHistory,omitempty"` Queues []dao.PartitionQueueDAOInfo `json:"queues,omitempty"` RMDiagnostics map[string]interface{} `json:"rmDiagnostics,omitempty"` LogLevel string `json:"logLevel,omitempty"` Config *dao.ConfigDAOInfo `json:"config,omitempty"` EventStreams []events.EventStreamData `json:"eventStreams,omitempty"` }
type StreamingLimiter ¶ added in v1.5.0
StreamingLimiter tracks the concurrent streaming connections.
func NewStreamingLimiter ¶ added in v1.5.0
func NewStreamingLimiter() *StreamingLimiter
func (*StreamingLimiter) AddHost ¶ added in v1.5.0
func (sl *StreamingLimiter) AddHost(host string) bool
func (*StreamingLimiter) RemoveHost ¶ added in v1.5.0
func (sl *StreamingLimiter) RemoveHost(host string)
type WebService ¶
type WebService struct {
// contains filtered or unexported fields
}
func NewWebApp ¶
func NewWebApp(context *scheduler.ClusterContext, internalMetrics *history.InternalMetricsHistory) *WebService
func (*WebService) StartWebApp ¶
func (m *WebService) StartWebApp()
StartWebApp starts the web app on the default port. TODO we need the port to be configurable
func (*WebService) StopWebApp ¶
func (m *WebService) StopWebApp() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.