Logo Search packages:      
Sourcecode: nailgun version File versions  Download package

NailStats com::martiansoftware::nailgun::NGServer::getOrCreateStatsFor ( Class  nailClass  )  [inline, private]

Returns the current NailStats object for the specified class, creating a new one if necessary

Parameters:
nailClass the class for which we're gathering stats
Returns:
a NailStats object for the specified class

Definition at line 207 of file NGServer.java.

References allNailStats.

Referenced by nailStarted(), and shutdown().

                                                             {
            NailStats result = null;
            synchronized(allNailStats) {
                  result = (NailStats) allNailStats.get(nailClass);
                  if (result == null) {
                        result = new NailStats(nailClass);
                        allNailStats.put(nailClass, result);
                  }
            }
            return (result);
      }


Generated by  Doxygen 1.6.0   Back to index