Documentation
¶
Index ¶
- func JSONToKVMap(jsonStr string) (map[string]string, error)
- type APIErr
- type AgentClient
- type AgentInterface
- type JMXRequestOperationType
- type JXMInterface
- type JolokiaClient
- func (client *JolokiaClient) ExecuteMbeanOperation(mbean string, operation string, arguments []interface{}) (interface{}, error)
- func (client *JolokiaClient) GetMbeanAttribute(mbean string, attribute string, path string) (interface{}, error)
- func (client *JolokiaClient) ListMbean(mbean string) (interface{}, error)
- func (client *JolokiaClient) SearchMbeans(pattern string) (interface{}, error)
- func (client *JolokiaClient) SetMbeanAttribute(mbean string, attribute string, path string, value interface{}) (interface{}, error)
- type JolokiaResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentClient ¶
AgentClient stores the information of agent client
func NewAgentClient ¶
func NewAgentClient(host, port string) *AgentClient
NewAgentClient creates the agent client
func (*AgentClient) UpdateCanary ¶
func (agent *AgentClient) UpdateCanary(globalHeaders *spec.GlobalCanaryHeaders, version int64) error
UpdateCanary updates canary.
func (*AgentClient) UpdateService ¶
func (agent *AgentClient) UpdateService(newService *spec.Service, version int64) error
UpdateService updates service.
type AgentInterface ¶
type AgentInterface interface {
UpdateService(newService *spec.Service, version int64) error
UpdateCanary(globalHeaders *spec.GlobalCanaryHeaders, version int64) error
}
AgentInterface is the interface operate the agent client
type JMXRequestOperationType ¶
type JMXRequestOperationType string
JMXRequestOperationType for read, write, exec, list, search
type JXMInterface ¶
type JXMInterface interface {
GetMbeanAttribute(mbean string, attribute string, path string) (interface{}, error)
SetMbeanAttribute(mbean string, attribute string, path string, value interface{}) (interface{}, error)
ExecuteMbeanOperation(mbean string, operation string, arguments []interface{}) (interface{}, error)
ListMbean(mbean string) (interface{}, error)
SearchMbeans(pattern string) (interface{}, error)
}
JXMInterface describes all of methods of Mbean operation
type JolokiaClient ¶
JolokiaClient wraps the URL and HTTPClient
func NewJolokiaClient ¶
func NewJolokiaClient(host, port, path string) *JolokiaClient
NewJolokiaClient creates Jolokia client
func (*JolokiaClient) ExecuteMbeanOperation ¶
func (client *JolokiaClient) ExecuteMbeanOperation(mbean string, operation string, arguments []interface{}) (interface{}, error)
ExecuteMbeanOperation executes Mbean operation
func (*JolokiaClient) GetMbeanAttribute ¶
func (client *JolokiaClient) GetMbeanAttribute(mbean string, attribute string, path string) (interface{}, error)
GetMbeanAttribute reads Mbean attribute.
func (*JolokiaClient) ListMbean ¶
func (client *JolokiaClient) ListMbean(mbean string) (interface{}, error)
ListMbean lists the Mbean
func (*JolokiaClient) SearchMbeans ¶
func (client *JolokiaClient) SearchMbeans(pattern string) (interface{}, error)
SearchMbeans searches Mbean
func (*JolokiaClient) SetMbeanAttribute ¶
func (client *JolokiaClient) SetMbeanAttribute(mbean string, attribute string, path string, value interface{}) (interface{}, error)
SetMbeanAttribute writes Mbean attribute
Click to show internal directories.
Click to hide internal directories.