NetonHttpServer

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

Propose
void Propose(RequestCommand command, HttpBase h)
Undocumented in source. Be warned that the author may not have intended to support it.
Propose
void Propose(RequestCommand command)
Undocumented in source. Be warned that the author may not have intended to support it.
ProposeConfChange
void ProposeConfChange(ConfChange cc)
Undocumented in source. Be warned that the author may not have intended to support it.
ReadIndex
void ReadIndex(RequestCommand command, HttpBase h)
Undocumented in source. Be warned that the author may not have intended to support it.
addPeer
bool addPeer(ulong ID, string data)
Undocumented in source. Be warned that the author may not have intended to support it.
delPeer
bool delPeer(ulong ID)
Undocumented in source. Be warned that the author may not have intended to support it.
entriesToApply
Entry[] entriesToApply(Entry[] ents)
Undocumented in source. Be warned that the author may not have intended to support it.
handleHttpClose
void handleHttpClose(size_t hash)
Undocumented in source. Be warned that the author may not have intended to support it.
leader
ulong leader()
Undocumented in source. Be warned that the author may not have intended to support it.
loadSnapshot
Snapshot loadSnapshot()
Undocumented in source. Be warned that the author may not have intended to support it.
makeJsonString
string makeJsonString(Event e)
Undocumented in source. Be warned that the author may not have intended to support it.
maybeTriggerSnapshot
void maybeTriggerSnapshot()
Undocumented in source. Be warned that the author may not have intended to support it.
onTimer
void onTimer(Object sender)
Undocumented in source. Be warned that the author may not have intended to support it.
openWAL
void openWAL(Snapshot snapshot)
Undocumented in source. Be warned that the author may not have intended to support it.
publishEntries
bool publishEntries(Entry[] ents)
Undocumented in source. Be warned that the author may not have intended to support it.
publishSnapshot
void publishSnapshot(Snapshot snap)
Undocumented in source. Be warned that the author may not have intended to support it.
ready
void ready(Object sender)
Undocumented in source. Be warned that the author may not have intended to support it.
removeWatcher
void removeWatcher(size_t hash)
Undocumented in source. Be warned that the author may not have intended to support it.
replayWAL
void replayWAL()
Undocumented in source. Be warned that the author may not have intended to support it.
saveHttp
void saveHttp(HttpBase h)
Undocumented in source. Be warned that the author may not have intended to support it.
saveSnap
void saveSnap(Snapshot snap)
Undocumented in source. Be warned that the author may not have intended to support it.
scanWatchers
void scanWatchers(Object sender)
Undocumented in source. Be warned that the author may not have intended to support it.
send
void send(Message[] msg)
Undocumented in source. Be warned that the author may not have intended to support it.
start
void start(bool join)
Undocumented in source. Be warned that the author may not have intended to support it.
step
void step(Message msg)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

instance
NetonHttpServer instance()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_ID
ulong _ID;
Undocumented in source.
_appliedIndex
ulong _appliedIndex;
Undocumented in source.
_buffer
byte[] _buffer;
Undocumented in source.
_clients
NodeClient[ulong] _clients;
Undocumented in source.
_confState
ConfState _confState;
Undocumented in source.
_healths
Health[string] _healths;
Undocumented in source.
_http
NetServer _http;
Undocumented in source.
_join
bool _join;
Undocumented in source.
_lastIndex
ulong _lastIndex;
Undocumented in source.
_lastLeader
ulong _lastLeader;
Undocumented in source.
_mutex
Mutex _mutex;
Undocumented in source.
_node
RawNode _node;
Undocumented in source.
_request
HttpBase[ulong] _request;
Undocumented in source.
_server
NetServer _server;
Undocumented in source.
_snapdir
string _snapdir;
Undocumented in source.
_snapshotIndex
ulong _snapshotIndex;
Undocumented in source.
_snapshotter
Snapshotter _snapshotter;
Undocumented in source.
_storage
MemoryStorage _storage;
Undocumented in source.
_wal
WAL _wal;
Undocumented in source.
_waldir
string _waldir;
Undocumented in source.
_watchers
Watcher[] _watchers;
Undocumented in source.

Meta