Giter Club home page Giter Club logo

gkertasef / codenet-minerva-java-instrumenter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibm/codenet-minerva-java-instrumenter

0.0 0.0 0.0 66 KB

Project Minerva is a set of libraries to analyze Java applications using AI and provide recommendations as a base for microservices. This binary instrumenter enables the instrumenting of a running Java application's classes and methods in order to collect data for AI refactoring consideration.

License: Apache License 2.0

Shell 0.75% Java 98.03% Dockerfile 1.22%

codenet-minerva-java-instrumenter's Introduction

Project Minerva for Modernization - Java Binary Instrumenter

License

Project Minerva for Modernization is a set of libraries to analyze Java applications using AI and provide recommendations for refactoring them into partitions, which can be starting points for microservices. This binary instrumenter component enables the instrumenting of a running Java application's classes and methods in order to collect data for AI refactoring consideration.

Build (Maven Based)

mvn install

Build (Docker Based)

docker build -t minerva-agent .

docker run --rm -it -v [target dir]:/var/install minerva-agent

Usage

java -javaagent:[base dir]/minerva-agent-1.0-jar-with-dependencies.jar=[JSON-based configuration file or a directory containing instrumenter-config.json] ...

e.g. java -javaagent:/c/eclipse/minerva-agent/agent/target/minerva-agent-1.0-jar-with-dependencies.jar=/c/example/agent-config.json ...

e.g. java -javaagent:/c/eclipse/minerva-agent/agent/target/minerva-agent-1.0-jar-with-dependencies.jar=/c/example ... (if /c/example contains instrumenter-config.json)

Configuration (JSON)

{
	"filter": {
		"type": (required, string :: filter type name),
		"version": (required, string :: filter version),
		"config": (optional, JSON element :: filter configuration)
	},
	"generator": {
		"type": (required, string :: generator type name),
		"version": (required, string :: generator version),
		"config": (optional, JSON element :: generator configuration)
	}
}

Example:

{
	"filter": {
		"type": "sym-ref-tables",
		"version": "1.0",
		"config": "/c/daytrader/application-data/tables"
	},
	"generator": {
		"type": "println",
		"version": "1.0"
	}
}

Filter Configuration (Minerva Analyzer symTable/refTable)

"filter": {
	"type": "sym-ref-tables",
	"version": "1.0",
	"config": (string :: directory containing symTable/refTable JSON files)
}

Example:

"filter": {
	"type": "sym-ref-tables",
	"version": "1.0",
	"config": "/c/daytrader/application-data/tables"
}

Filter Configuration (List of packages)

"filter": {
	"type": "package",
	"version": "1.0",
	"config": (array :: package name) or (string :: package name)
}

Example:

"filter": {
	"type": "package",
	"version": "1.0",
	"config": ["com.ibm.websphere.samples.daytrader"]
}

Generator Configuration (Minerva System.out/System.err instrumentation)

"generator": {
	"type": "println",
	"version": "1.0"
}

Generator Configuration (java.util.logging based instrumentation)

"generator": {
	"type": "java-util-logging",
	"version": "1.0"
}

codenet-minerva-java-instrumenter's People

Contributors

ibm-open-source-bot avatar lentheivendra avatar mrglavas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.