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

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

The newest version!
package Alachisoft.NCache.DataModel;

import Alachisoft.NCache.Common.Monitoring.MetricsServer.BridgeMetaData;

import java.util.List;

public class Bridge extends BridgeMetaData {

    private int id;
    private List metrics;

    public int getId() {
        return id;
    }

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

    public List getMetrics() {
        return metrics;
    }

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

    public static Bridge fromBridgeMetaData(BridgeMetaData bridgeMeta) {
        Bridge result = new Bridge();
        result.setBridgeConfigId(bridgeMeta.getBridgeConfigId());
        result.setBridgeName(bridgeMeta.getBridgeName());
        result.setCacheId(bridgeMeta.getCacheId());
        result.setEnvironmentName(bridgeMeta.getEnvironmentName());
        result.setSessionId(bridgeMeta.getSessionId());
        result.setReplica(bridgeMeta.isReplica());
        result.setServer(bridgeMeta.getServer());
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy