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

Alachisoft.NCache.DataModel.Client Maven / Gradle / Ivy

The newest version!
package Alachisoft.NCache.DataModel;

import com.alachisoft.ncache.common.monitoring.ClientMetaData;

import java.util.List;

public class Client extends ClientMetaData {

    private int id;
    private String sessionId;
    private List metrics;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public List getMetrics() {
        return metrics;
    }

    public void setMetrics(List metrics) {
        this.metrics = metrics;
    }

    public static Client fromClientMetaData(ClientMetaData clientMeta) {
        Client client = new Client();
        client.setBindIP(clientMeta.getBindIP());
        client.setCacheName(clientMeta.getCacheName());
        client.setCacheConfigId(clientMeta.getCacheConfigId());
        return client;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy