private void init(SnmpMib myMib){
  if (debug == null) {
    final Key<Debug> key=Key.get(Debug.class,Names.named(CoreTokenConstants.CTS_MONITOR_DEBUG));
    debug=InjectorHolder.getInstance(key);
  }
  final List<OperationEntry> operationEntries=new ArrayList<OperationEntry>();
  final List<TokenEntry> tokenEntries=new ArrayList<TokenEntry>();
  for (  Enum e : crudItems) {
    final OperationEntry entry=new OperationEntry(myMib);
    entry.OperationType=e.name();
    entry.OperationTableIndex=(long)e.ordinal() + 1;
    operationEntries.add(entry);
  }
  for (  Enum e : tokenItems) {
    final TokenEntry entry=new TokenEntry(myMib);
    entry.TokenType=e.name();
    entry.TokenTableIndex=(long)e.ordinal() + 1;
    tokenEntries.add(entry);
  }
  try {
    for (    OperationEntry ce : operationEntries) {
      OperationTable.addEntry(ce);
    }
    for (    TokenEntry te : tokenEntries) {
      TokenTable.addEntry(te);
    }
    createCRUDOperationsPerTokenTypeTable(myMib,CtsCRUDOperationsPerTokenTypeTable,operationEntries,tokenEntries);
    createCRUDOperationsTable(myMib,CtsCRUDOperationsTable,operationEntries);
    createTokenOperationsTable(myMib,CtsTokenOperationsTable,tokenEntries);
  }
 catch (  SnmpStatusException e) {
    if (debug.messageEnabled()) {
      debug.error("Unable to set up CTS Monitoring tables. CTS monitoring not available.",e);
    }
  }
}

private void init ( SnmpMib myMib ) { if ( debug == null ) { final Key < Debug > key = Key . get ( Debug . class , Names . named ( CoreTokenConstants . CTS_MONITOR_DEBUG ) ) ; debug = InjectorHolder . getInstance ( key ) ; } final List < OperationEntry > operationEntries = new ArrayList < OperationEntry > ( ) ; final List < TokenEntry > tokenEntries = new ArrayList < TokenEntry > ( ) ; for ( Enum e : crudItems ) { final OperationEntry entry = new OperationEntry ( myMib ) ; entry . OperationType = e . name ( ) ; entry . OperationTableIndex = ( long ) e . ordinal ( ) + 1 ; operationEntries . add ( entry ) ; } for ( Enum e : tokenItems ) { final TokenEntry entry = new TokenEntry ( myMib ) ; entry . TokenType = e . name ( ) ; entry . TokenTableIndex = ( long ) e . ordinal ( ) + 1 ; tokenEntries . add ( entry ) ; } try { for ( OperationEntry ce : operationEntries ) { OperationTable . addEntry ( ce ) ; } for ( TokenEntry te : tokenEntries ) { TokenTable . addEntry ( te ) ; } createCRUDOperationsPerTokenTypeTable ( myMib , CtsCRUDOperationsPerTokenTypeTable , operationEntries , tokenEntries ) ; createCRUDOperationsTable ( myMib , CtsCRUDOperationsTable , operationEntries ) ; createTokenOperationsTable ( myMib , CtsTokenOperationsTable , tokenEntries ) ; } catch ( SnmpStatusException e ) { if ( debug . messageEnabled ( ) ) { debug . error ( "Unable to set up CTS Monitoring tables. CTS monitoring not available." , e ) ; } } }
performs the majority of the work setting up the tables such that they can be queried as pass - throughs to the data structures they act as queryable endpoints for .
