Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A java library for deserializing data gathered from dmidecode into typed entities

License

Notifications You must be signed in to change notification settings

eggy03/dmidecode4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Maven Central Version Minimum JDK Version

About

dmidecode4j is a lightweight, free Java library that parses human-readable dmidecode output and deserializes it into strongly-typed Java entities.

Supported Operating Systems

  • Any Linux distributions that support dmidecode will be able to use this library

⚠️ Root privileges are required to run dmidecode.

CI Stats

GitHub Actions Workflow Status Commits to main since latest release

Download

Minimum Supported Java Version: 8

Maven:

<dependency>
    <groupId>io.github.eggy03</groupId>
    <artifactId>dmidecode4j</artifactId>
    <version>VERSION</version>
</dependency>

Gradle:

implementation group: 'io.github.eggy03', name: 'dmidecode4j', version: 'VERSION'

Replace VERSION with the latest version available in maven central

For other build ecosystems, check out the Maven Central Repository

Note

The sources.jar published with this library includes de-lomboked code which should prevent the IDEs from complaining about source mismatch between the decompiled class files and the downloaded sources. It should also make your debugging easier, should you step into the library code during the debugging process of your project.

Usage

public class ProcessorExample {

    public static void main(String[] args) {

        DMIProcessorService service = new DMIProcessorService();
        Optional<DMIProcessor> processor = service.get(10L);

        processor.ifPresent(System.out::println);

        // can also access individual metrics via the getters
    }
}

License

This project is licensed under the MIT License.

About

A java library for deserializing data gathered from dmidecode into typed entities

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages