private void checkActive()
{
if (this.state != ReplState.active) {
// TODO: spin for the timeout duration to see if we become active
throw new Exception(String.Format("Server {0} in state {1}, not ready for setValue",
ctx.server_guid, state));
}
}