|
|
@ -405,7 +405,7 @@ NLMISC_COMMAND(reloadSheets, "Reload all sheets.", "")
|
|
|
|
if(args.size() != 0) return false;
|
|
|
|
if(args.size() != 0) return false;
|
|
|
|
if (!PIPELINE::reloadSheets())
|
|
|
|
if (!PIPELINE::reloadSheets())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
nlinfo("I'm afraid I cannot do this, my friend.");
|
|
|
|
log.displayNL("I'm afraid I cannot do this, my friend.");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
@ -416,12 +416,32 @@ NLMISC_COMMAND(updateDatabaseStatus, "Updates the entire database status. This a
|
|
|
|
if(args.size() != 0) return false;
|
|
|
|
if(args.size() != 0) return false;
|
|
|
|
if (!PIPELINE::updateDatabaseStatus())
|
|
|
|
if (!PIPELINE::updateDatabaseStatus())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
nlinfo("I'm afraid I cannot do this, my friend.");
|
|
|
|
log.displayNL("I'm afraid I cannot do this, my friend.");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NLMISC_COMMAND(dumpTaskManager, "Dumps the task manager.", "")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(args.size() != 0) return false;
|
|
|
|
|
|
|
|
std::vector<std::string> output;
|
|
|
|
|
|
|
|
PIPELINE::s_TaskManager->dump(output);
|
|
|
|
|
|
|
|
for (std::vector<std::string>::iterator it = output.begin(), end = output.end(); it != end; ++it)
|
|
|
|
|
|
|
|
log.displayNL("DUMP: %s", (*it).c_str());
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NLMISC_COMMAND(dumpAsyncFileManager, "Dumps the async file manager.", "")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(args.size() != 0) return false;
|
|
|
|
|
|
|
|
std::vector<std::string> output;
|
|
|
|
|
|
|
|
NLMISC::CAsyncFileManager::getInstance().dump(output);
|
|
|
|
|
|
|
|
for (std::vector<std::string>::iterator it = output.begin(), end = output.end(); it != end; ++it)
|
|
|
|
|
|
|
|
log.displayNL("DUMP: %s", (*it).c_str());
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
NLNET_SERVICE_MAIN(PIPELINE::CPipelineService, PIPELINE_SHORT_SERVICE_NAME, PIPELINE_LONG_SERVICE_NAME, 0, PIPELINE::s_ShardCallbacks, PIPELINE_SERVICE_DIRECTORY, PIPELINE_SERVICE_DIRECTORY)
|
|
|
|
NLNET_SERVICE_MAIN(PIPELINE::CPipelineService, PIPELINE_SHORT_SERVICE_NAME, PIPELINE_LONG_SERVICE_NAME, 0, PIPELINE::s_ShardCallbacks, PIPELINE_SERVICE_DIRECTORY, PIPELINE_SERVICE_DIRECTORY)
|
|
|
|
|
|
|
|
|
|
|
|
/* end of file */
|
|
|
|
/* end of file */
|
|
|
|