public int getGetCursorIndex ( SIMPMessage msg ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getGetCursorIndex" ) ; // The zeroth index is reserved for non-classified messages int classPos = 0 ; synchronized ( classifications ) { if ( classifications . getNumberOfClasses ( ) > 0 ) { // Need to get the classification out of the message String keyClassification = msg . getMessageControlClassification ( true ) ; // In the special case where the weighting for the classification in the // message was zero, we use the Default cursor if ( keyClassification != null && classifications . getWeight ( keyClassification ) > 0 ) // Get the position of the classification classPos = classifications . getPosition ( keyClassification ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getGetCursorIndex" , classPos ) ; return classPos ; }
Determine the index of the getCursor to use based on the classification of a message .