Alachisoft.NCache.Common.DataStructures.ReplicatorStatusInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
package Alachisoft.NCache.Common.DataStructures;
import com.alachisoft.ncache.serialization.core.io.ICompactSerializable;
import com.alachisoft.ncache.serialization.core.io.NCacheObjectInput;
import com.alachisoft.ncache.serialization.core.io.NCacheObjectOutput;
import java.io.IOException;
/**
* Represents the actual status of the Replicator.
*/
public class ReplicatorStatusInfo implements ICompactSerializable {
private boolean _isConnected;
private boolean _isActive;
public final boolean getIsConnected() {
return _isConnected;
}
public final void setIsConnected(boolean value) {
_isConnected = value;
}
public final boolean getIsActive() {
return _isActive;
}
public final void setIsActive(boolean value) {
_isActive = value;
}
@Override
public void deserialize(NCacheObjectInput reader) throws IOException, ClassNotFoundException {
_isConnected = reader.readBoolean();
_isActive = reader.readBoolean();
}
@Override
public void serialize(NCacheObjectOutput writer) throws IOException {
writer.writeBoolean(_isConnected);
writer.writeBoolean(_isActive);
}
}