gpt4 book ai didi

com.quinsoft.zeidon.ZeidonLogger.warn()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 11:04:41 25 4
gpt4 key购买 nike

本文整理了Java中com.quinsoft.zeidon.ZeidonLogger.warn()方法的一些代码示例,展示了ZeidonLogger.warn()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZeidonLogger.warn()方法的具体详情如下:
包路径:com.quinsoft.zeidon.ZeidonLogger
类名称:ZeidonLogger
方法名:warn

ZeidonLogger.warn介绍

暂无

代码示例

代码示例来源:origin: com.quinsoft.zeidon/object-browser

void warn( String format, Object...args )
{
  oe.getSystemTask().log().warn( format, args );
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

private void readFileMeta() throws Exception
{
  jp.nextToken();
  while ( jp.nextToken() != JsonToken.END_OBJECT )
  {
    String fieldName = jp.getCurrentName();
    jp.nextToken(); // Move to value.
    switch ( fieldName )
    {
      case "version":
        version = jp.getValueAsString();
        task.log().debug( "JSON version: %s", version );
        break;
      case "date":
        break;
      default:
        task.log().warn( "Unknown .oimeta fieldname %s", fieldName );
    }
  }
  jp.nextToken();
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

private EntityMeta readEntityMeta(EntityInstanceImpl ei) throws Exception
{
  EntityMeta meta = new EntityMeta();
  while ( jp.nextToken() != JsonToken.END_OBJECT )
  {
    String fieldName = jp.getCurrentName();
    switch ( fieldName )
    {
      case  "incrementals" :   readIncrementals( meta ); break;
      case  "isLinkedSource" : meta.isLinkedSource = true; break;
      case  "entityKey" :      meta.entityKey = jp.getText(); break;
      case  "linkedSource" :   meta.linkedSource = jp.getText(); break;
      case  "selected" :       selectedInstances.add( ei ); break;
      case  "incomplete" :     meta.incomplete = true; break;
      case  "lazyLoaded" :     meta.lazyLoaded = jp.getText(); break;
      default: task.log().warn( "Unknown entity meta value %s", fieldName );
    }
  }
  entityMetas.put( ei, meta );
  return meta;
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

private AttributeMeta readAttributeMeta( EntityInstanceImpl ei, String fieldName ) throws JsonParseException, IOException
{
  String attribName = fieldName.substring( 1 ); // Remove the ".".
  AttributeMeta meta = new AttributeMeta();
  meta.attributeDef = ei.getEntityDef().getAttribute( attribName, true, true );
  while ( jp.nextToken() != JsonToken.END_OBJECT )
  {
    fieldName = jp.getCurrentName();
    if ( fieldName.equals( "updated" ) )
      meta.updated = true;
    else
      task.log().warn( "Unknown entity meta value %s", fieldName );
  }
  return meta;
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

getTask().log().warn( "Exception attempting to execute UNLOCK TABLES: %s\n     %s",
             e.getMessage(), StringUtils.join( e.getStackTrace(), "\n     " ) );
getTask().log().warn( "Attempting to UNLOCK genkey tables again #%d.", tries );

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

protected void deleteGenkeyLockRow(  )
{
  for ( int tries = 0; tries < 5; tries++ )
  {
    try
    {
      executeSql( "DELETE FROM ZEIDONGENKEYTABLE WHERE TABLENAME = '..ENQ KZHGENKY'");
      return;
    }
    catch ( Exception e )
    {
      // Danger danger Will Robinson!  We couldn't delete the lock, which will
      // prevent anybody else from creating new entities.  Log a warning and try again.
      getTask().log().warn( "Exception attempting to delete GENKEY lock entry: %s\n     %s",
                 e.getMessage(), StringUtils.join( e.getStackTrace(), "\n     " ) );
    }
    try
    {
      Thread.sleep( tries * tries * 100 );
    }
    catch ( InterruptedException e2 )
    {
      // Ignore this error.  If we somehow get a crazy error here we still want
      // to try and unlock the tables.
    }
    getTask().log().warn( "Attempting to delete Genkey lock again #%d.", tries );
  }
  // If we get here then we didn't acquire the lock.
  throw new GenkeyLockException("Unable to delete GENKEY lock.  See logs for possible explanation.");
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

getTask().log().warn( "Exception attempting to lock GENKEY table: %s\n     %s",
             e.getMessage(), StringUtils.join( e.getStackTrace(), "\n     " ) );
getTask().log().warn( "Attempting to acquire GenKey lock again #%d.", tries );

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

/**
 * This is called when a task is dropped and will close the connection
 * if it hasn't been already.
 */
@Override
public void taskDropped( Task task )
{
  if ( closed )
    return;
  try
  {
    task.log().warn( "Task has open JDBC connection.  Commit/rollback may not have been called.  Closing now." );
    close();
  }
  catch ( Exception e )
  {
    ZeidonException.wrapException( e );
  }
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

case "totalRootCount": totalRootCount = jp.getValueAsInt(); break;
default: task.log().warn( "Unknown .oimeta fieldname %s", fieldName ); break;

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

task.log().warn( "Multiple, identical resources found of %s.  This usually means your classpath has duplicates", resourceName );
else
  LOG.warn( "Multiple, identical resources found of " + resourceName + " This usually means your classpath has duplicates" );

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

task.log().warn( "Caught exception writing pessimisic locks on %s.  Trying again", lodDef );
lockOi.logObjectInstance();

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com