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

com.alachisoft.ncache.common.monitoring.ClientMetaData Maven / Gradle / Ivy

package com.alachisoft.ncache.common.monitoring;

import Alachisoft.NCache.Common.Common;
import com.alachisoft.ncache.serialization.core.io.InternalCompactSerializable;
import com.alachisoft.ncache.serialization.standard.FormatterServices;
import com.alachisoft.ncache.serialization.standard.io.CompactReader;
import com.alachisoft.ncache.serialization.standard.io.CompactWriter;

import java.io.IOException;
import java.io.Serializable;

public class ClientMetaData implements Cloneable, InternalCompactSerializable
{
    private String privateCacheName;
    private String privateBindIP;
    private String privateCacheConfigId;

    public ClientMetaData(){

    }
    public final String getCacheName()
    {
        return privateCacheName;
    }
    public final void setCacheName(String value)
    {
        privateCacheName = value;
    }

    public final String getBindIP()
    {
        return privateBindIP;
    }
    public final void setBindIP(String value)
    {
        privateBindIP = value;
    }

    public final String getCacheConfigId()
    {
        return privateCacheConfigId;
    }
    public final void setCacheConfigId(String value)
    {
        privateCacheConfigId = value;
    }

    @Override
    public void Deserialize(CompactReader reader) throws IOException, ClassNotFoundException {
//        privateCacheName = (String) Common.as(reader.ReadObject(), String.class);
//        privateBindIP = (String) Common.as(reader.ReadObject(), String.class);
//        privateCacheConfigId = (String) Common.as(reader.ReadObject(), String.class);
    }

    @Override
    public void Serialize(CompactWriter writer) throws IOException {
        writer.WriteObject(privateCacheName);
        writer.WriteObject(privateBindIP);
        writer.WriteObject(privateCacheConfigId);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy