private void countMsg(GridIoMessage msg){
  Object origMsg=msg.message();
  if (origMsg instanceof GridDistributedLockRequest) {
    distLocks.incrementAndGet();
    if (origMsg instanceof GridNearLockRequest)     nearLocks.incrementAndGet();
 else     if (origMsg instanceof GridDhtLockRequest)     dhtLocks.incrementAndGet();
  }
}

private void countMsg ( GridIoMessage msg ) { Object origMsg = msg . message ( ) ; if ( origMsg instanceof GridDistributedLockRequest ) { distLocks . incrementAndGet ( ) ; if ( origMsg instanceof GridNearLockRequest ) nearLocks . incrementAndGet ( ) ; else if ( origMsg instanceof GridDhtLockRequest ) dhtLocks . incrementAndGet ( ) ; } }
unmarshals the message and increments counters .
