jvm

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Attach

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

func CheckFlagValues added in v0.3.0

func CheckFlagValues(ctx context.Context, 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(ctx context.Context, username string) (port string, err error)

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

func Detach

func Detach(ctx context.Context, port string) *spec.Response

func Prepare added in v0.7.0

func Prepare(ctx context.Context, processName, processId, javaHome string) (response *spec.Response, port string)

func Revoke added in v0.7.0

func Revoke(ctx context.Context, 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(ctx context.Context) *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