All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.andyshao.distribution.election.ElectionNode Maven / Gradle / Ivy

The newest version!
package com.github.andyshao.distribution.election;

import com.github.andyshao.lang.number.ByteSize;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 
 * Title:
* Descript:
* Copyright: Copryright(c) Mar 27, 2018
* Encoding: UNIX UTF-8 * @author andy.shao * */ @Getter @Setter @EqualsAndHashCode(onlyExplicitlyIncluded = true) public class ElectionNode implements Serializable { @Serial private static final long serialVersionUID = 7411111126118539635L; /**name*/ @EqualsAndHashCode.Include private String name; /**host*/ @EqualsAndHashCode.Include private String host; /**port number*/ @EqualsAndHashCode.Include private int port; /**memory*/ private ByteSize memory; /**cpu number*/ private int cpuNum; /**pros*/ private Map pros = new HashMap<>(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy