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

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

The newest version!
package Alachisoft.NCache.DataModel;

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

import java.util.List;

public class BridgeCache extends BridgeCacheMetaData {

    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 BridgeCache fromBridgedCacheMetaData(BridgeCacheMetaData bridgeCache) {
        BridgeCache result = new BridgeCache();
        result.setBridgeConfigId(bridgeCache.getBridgeConfigId());
        result.setBridgeId(bridgeCache.getBridgeId());
        result.setCacheId(bridgeCache.getCacheId());
        result.setSessionId(bridgeCache.getSessionId());
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy