private void fetchSchema() throws ExecutionException, RpcException, TimeoutException {
  Message schema=Rpc.get(myClient.getSchema(),FETCH_SCHEMA_TIMEOUT_MS,TimeUnit.MILLISECONDS);
  LOG.info("Schema with " + schema.entities.length + " classes, "+ schema.constants.length+ " constant sets");
  int atoms=0;
  for (  Entity type : schema.entities) {
    if (AtomMetadata.find(type) != null) {
      atoms++;
    }
    Dynamic.register(type);
  }
  LOG.info("Schema with " + atoms + " atoms");
  for (  ConstantSet set : schema.constants) {
    ConstantSet.register(set);
  }
}

private void fetchSchema ( ) throws ExecutionException , RpcException , TimeoutException { Message schema = Rpc . get ( myClient . getSchema ( ) , FETCH_SCHEMA_TIMEOUT_MS , TimeUnit . MILLISECONDS ) ; LOG . info ( "Schema with " + schema . entities . length + " classes, " + schema . constants . length + " constant sets" ) ; int atoms = 0 ; for ( Entity type : schema . entities ) { if ( AtomMetadata . find ( type ) != null ) { atoms ++ ; } Dynamic . register ( type ) ; } LOG . info ( "Schema with " + atoms + " atoms" ) ; for ( ConstantSet set : schema . constants ) { ConstantSet . register ( set ) ; } }
requests and blocks for the schema from the server .
