jvm

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultNamespace = "default"
View Source
const DefaultUri = "sandbox/default/module/http/chaosblade"

Variables

This section is empty.

Functions

func Attach

func Attach(port string, javaHome string, pid string) (*spec.Response, string)

func CheckFlagValues added in v0.3.0

func CheckFlagValues(processName, processId string) (string, *spec.Response)

checkFlagValues query pre-record from sqlite by process name or process id 1. The process and pid are not empty, then the process is used to find the process. If the process id and the found process are not found, the error is returned. 2. Process is empty, pid is not empty, then determine if the pid process exists 3. Process is not empty, pid is empty, then it is judged whether the process exists, there is no error, and the process id is assigned to pid. 4. Process and pid are both empty, then an error is returned.

func CheckPortFromSandboxToken added in v0.2.0

func CheckPortFromSandboxToken(username string) (port string, err error)

CheckPortFromSandboxToken will read last line and curl the port for testing connectivity

func Detach

func Detach(port string) *spec.Response

func Prepare added in v0.7.0

func Prepare(processName, processId string) (response *spec.Response, port string)

func Revoke added in v0.7.0

func Revoke(record *data.PreparationRecord, processName, processId string) *spec.Response

Revoke 卸载 Java agent

Types

type Executor

type Executor struct {
	Uri string
	// contains filtered or unexported fields
}

Executor for jvm experiment

func NewExecutor

func NewExecutor() *Executor

func (*Executor) Exec

func (e *Executor) Exec(uid string, ctx context.Context, model *spec.ExpModel) *spec.Response

func (*Executor) Name

func (e *Executor) Name() string

func (*Executor) QueryStatus added in v0.2.0

func (e *Executor) QueryStatus(uid string) *spec.Response

func (*Executor) SetChannel

func (e *Executor) SetChannel(channel spec.Channel)

Jump to

Keyboard shortcuts

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