Ignore:
Timestamp:
2001-03-14T04:15:23+13:00 (23 years ago)
Author:
cs025
Message:

Improvements to configure scripts in their support of various MICO
environment considerations, particularly when MICO is on the system
paths.

Fixed CORBA version of ping to correspond with parameters etc. of the
native form.

Finally, improved PING action to be more than a simple call to
the HASCOLLECTION action in the null protocol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/collectserver.cpp

    r1860 r2173  
    126126}
    127127
     128void collectserver::ping (bool &wasSuccess, comerror_t &error, ostream &logout) {
     129  // if we've not been properly configured, then it is a foregone
     130  // conclusion that we cannot be active
     131  if (this->configinfo.collection == "null")
     132    {
     133      wasSuccess = false;
     134    }
     135  // if no build date exists, then the collection was probably not built;
     136  // ditto if the number of documents is zero, then something is pretty
     137  // wrong
     138  else if (this->collectinfo.buildDate == 0 ||
     139      this->collectinfo.numDocs == 0)
     140    {
     141      wasSuccess =  false;
     142    }
     143  // it is probably okay
     144  else
     145    wasSuccess = true;
     146}
     147
    128148
    129149bool collectserver::init (ostream &logout) {
Note: See TracChangeset for help on using the changeset viewer.