com.alachisoft.ncache.common.monitoring.CounterMetadata Maven / Gradle / Ivy
package com.alachisoft.ncache.common.monitoring;
import com.alachisoft.ncache.serialization.core.io.InternalCompactSerializable;
import com.alachisoft.ncache.serialization.standard.io.CompactReader;
import com.alachisoft.ncache.serialization.standard.io.CompactWriter;
import java.io.IOException;
public class CounterMetadata implements InternalCompactSerializable {
String Name;
public final String getName()
{
return Name;
}
public final void setName(String value)
{
Name = value;
}
private CounterType Type;
public final CounterType getType()
{
return Type;
}
public final void setType(CounterType value)
{
Type = value;
}
private String Description;
public final String getDescription()
{
return Description;
}
public final void setDescription(String value)
{
Description = value;
}
private Publisher Category;
public final Publisher getCategory()
{
return Category;
}
public final void setCategory(Publisher value)
{
Category = value;
}
@Override
public void Deserialize(CompactReader reader) throws IOException, ClassNotFoundException {
// Name = reader.ReadObject() as string;
// Type = (CounterType)reader.ReadInt32();
// Description = reader.ReadObject() as string;
// Category = (Publisher)reader.ReadInt32();
}
@Override
public void Serialize(CompactWriter writer) throws IOException {
writer.WriteObject(Name);
writer.Write(Type.getValue());
writer.WriteObject(Description);
writer.Write(Category.getValue());
}
}