private long getNumberStoredSessions() {
ReplicationManagerBase sessMgr = this.getSessionManager();
if (sessMgr == null) {
return -1;
} else {
HAStoreBase store = (HAStoreBase) sessMgr.getStore();
int numStoredSessions = -1;
try {
numStoredSessions = store.getSize();
} catch (Exception ex) {
//deliberate no-op
numStoredSessions = -1;
};
return numStoredSessions;