本文整理汇总了Java中org.pentaho.di.core.logging.LogWriter.getLogLevel方法的典型用法代码示例。如果您正苦于以下问题:Java LogWriter.getLogLevel方法的具体用法?Java LogWriter.getLogLevel怎么用?Java LogWriter.getLogLevel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.logging.LogWriter
的用法示例。
在下文中一共展示了LogWriter.getLogLevel方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadXML
import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
public void loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep)
throws KettleXMLException
{
try
{
super.loadXML(entrynode, databases, slaveServers);
logmessage = XMLHandler.getTagValue(entrynode, "logmessage");
loglevel = LogWriter.getLogLevel( XMLHandler.getTagValue(entrynode, "loglevel"));
logsubject = XMLHandler.getTagValue(entrynode, "logsubject");
}
catch(Exception e)
{
throw new KettleXMLException(Messages.getString("WriteToLog.Error.UnableToLoadFromXML.Label"), e);
}
}
示例2: loadRep
import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers)
throws KettleException
{
try
{
super.loadRep(rep, id_jobentry, databases, slaveServers);
logmessage = rep.getJobEntryAttributeString(id_jobentry, "logmessage");
loglevel = LogWriter.getLogLevel( rep.getJobEntryAttributeString(id_jobentry, "loglevel") );
logsubject = rep.getJobEntryAttributeString(id_jobentry, "logsubject");
}
catch(KettleDatabaseException dbe)
{
throw new KettleException(Messages.getString("WriteToLog.Error.UnableToLoadFromRepository.Label")+id_jobentry, dbe);
}
}
示例3: loadXML
import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
public void loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers,
Repository rep) throws KettleXMLException
{
try
{
super.loadXML(entrynode, databases, slaveServers);
setFileName(XMLHandler.getTagValue(entrynode, "filename"));
setWorkDirectory(XMLHandler.getTagValue(entrynode, "work_directory"));
argFromPrevious = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "arg_from_previous"));
execPerRow = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "exec_per_row"));
setLogfile = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "set_logfile"));
setAppendLogfile = "Y".equalsIgnoreCase( XMLHandler.getTagValue(entrynode, "set_append_logfile") );
addDate = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "add_date"));
addTime = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "add_time"));
logfile = XMLHandler.getTagValue(entrynode, "logfile");
logext = XMLHandler.getTagValue(entrynode, "logext");
loglevel = LogWriter.getLogLevel(XMLHandler.getTagValue(entrynode, "loglevel"));
insertScript = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "insertScript"));
script= XMLHandler.getTagValue(entrynode, "script");
// How many arguments?
int argnr = 0;
while (XMLHandler.getTagValue(entrynode, "argument" + argnr) != null)
argnr++;
arguments = new String[argnr];
// Read them all...
// THIS IS A VERY BAD WAY OF READING/SAVING AS IT MAKES
// THE XML "DUBIOUS". DON'T REUSE IT.
for (int a = 0; a < argnr; a++)
arguments[a] = XMLHandler.getTagValue(entrynode, "argument" + a);
} catch (KettleException e)
{
throw new KettleXMLException("Unable to load job entry of type 'shell' from XML node", e);
}
}
示例4: loadRep
import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases,
List<SlaveServer> slaveServers) throws KettleException
{
try
{
super.loadRep(rep, id_jobentry, databases, slaveServers);
setFileName(rep.getJobEntryAttributeString(id_jobentry, "file_name"));
setWorkDirectory(rep.getJobEntryAttributeString(id_jobentry, "work_directory"));
argFromPrevious = rep.getJobEntryAttributeBoolean(id_jobentry, "arg_from_previous");
execPerRow = rep.getJobEntryAttributeBoolean(id_jobentry, "exec_per_row");
setLogfile = rep.getJobEntryAttributeBoolean(id_jobentry, "set_logfile");
setAppendLogfile = rep.getJobEntryAttributeBoolean(id_jobentry, "set_append_logfile");
addDate = rep.getJobEntryAttributeBoolean(id_jobentry, "add_date");
addTime = rep.getJobEntryAttributeBoolean(id_jobentry, "add_time");
logfile = rep.getJobEntryAttributeString(id_jobentry, "logfile");
logext = rep.getJobEntryAttributeString(id_jobentry, "logext");
loglevel = LogWriter.getLogLevel(rep.getJobEntryAttributeString(id_jobentry, "loglevel"));
insertScript = rep.getJobEntryAttributeBoolean(id_jobentry, "insertScript");
script = rep.getJobEntryAttributeString(id_jobentry, "script");
// How many arguments?
int argnr = rep.countNrJobEntryAttributes(id_jobentry, "argument");
arguments = new String[argnr];
// Read them all...
for (int a = 0; a < argnr; a++)
{
arguments[a] = rep.getJobEntryAttributeString(id_jobentry, a, "argument");
}
} catch (KettleDatabaseException dbe)
{
throw new KettleException(
"Unable to load job entry of type 'shell' from the repository with id_jobentry="
+ id_jobentry, dbe);
}
}
示例5: loadXML
import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
public void loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep) throws KettleXMLException {
try {
super.loadXML(entrynode, databases, slaveServers);
setFileName(XMLHandler.getTagValue(entrynode, "filename"));
setJobName(XMLHandler.getTagValue(entrynode, "jobname"));
argFromPrevious = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "arg_from_previous"));
paramsFromPrevious = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "params_from_previous"));
execPerRow = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "exec_per_row"));
setLogfile = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "set_logfile"));
addDate = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "add_date"));
addTime = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "add_time"));
logfile = XMLHandler.getTagValue(entrynode, "logfile");
logext = XMLHandler.getTagValue(entrynode, "logext");
loglevel = LogWriter.getLogLevel(XMLHandler.getTagValue(entrynode, "loglevel"));
setAppendLogfile = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "set_append_logfile"));
remoteSlaveServerName = XMLHandler.getTagValue(entrynode, "slave_server_name");
directory = XMLHandler.getTagValue(entrynode, "directory");
String wait = XMLHandler.getTagValue(entrynode, "wait_until_finished");
if (Const.isEmpty(wait)) waitingToFinish=true;
else waitingToFinish = "Y".equalsIgnoreCase( wait );
followingAbortRemotely = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "follow_abort_remote"));
// How many arguments?
int argnr = 0;
while (XMLHandler.getTagValue(entrynode, "argument" + argnr) != null)
argnr++;
arguments = new String[argnr];
// Read them all... This is a very BAD way to do it by the way. Sven Boden.
for (int a = 0; a < argnr; a++) {
arguments[a] = XMLHandler.getTagValue(entrynode, "argument" + a);
}
Node parametersNode = XMLHandler.getSubNode(entrynode, "parameters"); //$NON-NLS-1$
String passAll = XMLHandler.getTagValue(parametersNode, "pass_all_parameters");
passingAllParameters = Const.isEmpty(passAll) || "Y".equalsIgnoreCase(passAll);
int nrParameters = XMLHandler.countNodes(parametersNode, "parameter"); //$NON-NLS-1$
parameters = new String[nrParameters];
parameterFieldNames = new String[nrParameters];
parameterValues = new String[nrParameters];
for (int i=0;i<nrParameters;i++)
{
Node knode = XMLHandler.getSubNodeByNr(parametersNode, "parameter", i); //$NON-NLS-1$
parameters [i] = XMLHandler.getTagValue(knode, "name"); //$NON-NLS-1$
parameterFieldNames[i] = XMLHandler.getTagValue(knode, "stream_name"); //$NON-NLS-1$
parameterValues [i] = XMLHandler.getTagValue(knode, "value"); //$NON-NLS-1$
}
} catch (KettleXMLException xe) {
throw new KettleXMLException("Unable to load 'job' job entry from XML node", xe);
}
}
示例6: loadRep
import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
/**
* Load the jobentry from repository
*/
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException {
try {
super.loadRep(rep, id_jobentry, databases, slaveServers);
jobname = rep.getJobEntryAttributeString(id_jobentry, "name");
directory = rep.getJobEntryAttributeString(id_jobentry, "dir_path");
filename = rep.getJobEntryAttributeString(id_jobentry, "file_name");
argFromPrevious = rep.getJobEntryAttributeBoolean(id_jobentry, "arg_from_previous");
paramsFromPrevious = rep.getJobEntryAttributeBoolean(id_jobentry, "params_from_previous");
execPerRow = rep.getJobEntryAttributeBoolean(id_jobentry, "exec_per_row");
setLogfile = rep.getJobEntryAttributeBoolean(id_jobentry, "set_logfile");
addDate = rep.getJobEntryAttributeBoolean(id_jobentry, "add_date");
addTime = rep.getJobEntryAttributeBoolean(id_jobentry, "add_time");
logfile = rep.getJobEntryAttributeString(id_jobentry, "logfile");
logext = rep.getJobEntryAttributeString(id_jobentry, "logext");
loglevel = LogWriter.getLogLevel(rep.getJobEntryAttributeString(id_jobentry, "loglevel"));
setAppendLogfile = rep.getJobEntryAttributeBoolean(id_jobentry, "set_append_logfile");
remoteSlaveServerName = rep.getJobEntryAttributeString(id_jobentry, "slave_server_name");
waitingToFinish = rep.getJobEntryAttributeBoolean(id_jobentry, "wait_until_finished", true);
followingAbortRemotely = rep.getJobEntryAttributeBoolean(id_jobentry, "follow_abort_remote");
// How many arguments?
int argnr = rep.countNrJobEntryAttributes(id_jobentry, "argument");
arguments = new String[argnr];
// Read all arguments ...
for (int a = 0; a < argnr; a++) {
arguments[a] = rep.getJobEntryAttributeString(id_jobentry, a, "argument");
}
// How many arguments?
int parameternr = rep.countNrJobEntryAttributes(id_jobentry, "parameter_name");
parameters = new String[parameternr];
parameterFieldNames = new String[parameternr];
parameterValues = new String[parameternr];
// Read all parameters ...
for (int a = 0; a < parameternr; a++) {
parameters[a] = rep.getJobEntryAttributeString(id_jobentry, a, "parameter_name");
parameterFieldNames[a] = rep.getJobEntryAttributeString(id_jobentry, a, "parameter_stream_name");
parameterValues[a] = rep.getJobEntryAttributeString(id_jobentry, a, "parameter_value");
}
passingAllParameters = rep.getJobEntryAttributeBoolean(id_jobentry, "pass_all_parameters", true);
} catch (KettleDatabaseException dbe) {
throw new KettleException("Unable to load job entry of type 'job' from the repository with id_jobentry=" + id_jobentry, dbe);
}
}
示例7: loadXML
import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
public void loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep) throws KettleXMLException
{
try
{
super.loadXML(entrynode, databases, slaveServers);
filename = XMLHandler.getTagValue(entrynode, "filename") ;
transname = XMLHandler.getTagValue(entrynode, "transname") ;
directory = XMLHandler.getTagValue(entrynode, "directory");
argFromPrevious = "Y".equalsIgnoreCase( XMLHandler.getTagValue(entrynode, "arg_from_previous") );
execPerRow = "Y".equalsIgnoreCase( XMLHandler.getTagValue(entrynode, "exec_per_row") );
clearResultRows = "Y".equalsIgnoreCase( XMLHandler.getTagValue(entrynode, "clear_rows") );
clearResultFiles = "Y".equalsIgnoreCase( XMLHandler.getTagValue(entrynode, "clear_files") );
setLogfile = "Y".equalsIgnoreCase( XMLHandler.getTagValue(entrynode, "set_logfile") );
addDate = "Y".equalsIgnoreCase( XMLHandler.getTagValue(entrynode, "add_date") );
addTime = "Y".equalsIgnoreCase( XMLHandler.getTagValue(entrynode, "add_time") );
logfile = XMLHandler.getTagValue(entrynode, "logfile");
logext = XMLHandler.getTagValue(entrynode, "logext");
loglevel = LogWriter.getLogLevel( XMLHandler.getTagValue(entrynode, "loglevel"));
clustering = "Y".equalsIgnoreCase( XMLHandler.getTagValue(entrynode, "cluster") );
remoteSlaveServerName = XMLHandler.getTagValue(entrynode, "slave_server_name");
setAppendLogfile = "Y".equalsIgnoreCase( XMLHandler.getTagValue(entrynode, "set_append_logfile") );
String wait = XMLHandler.getTagValue(entrynode, "wait_until_finished");
if (Const.isEmpty(wait)) waitingToFinish=true;
else waitingToFinish = "Y".equalsIgnoreCase( wait );
followingAbortRemotely = "Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "follow_abort_remote"));
// How many arguments?
int argnr = 0;
while ( XMLHandler.getTagValue(entrynode, "argument"+argnr)!=null) argnr++;
arguments = new String[argnr];
// Read them all...
for (int a=0;a<argnr;a++) {
arguments[a]=XMLHandler.getTagValue(entrynode, "argument"+a);
}
Node parametersNode = XMLHandler.getSubNode(entrynode, "parameters"); //$NON-NLS-1$
String passAll = XMLHandler.getTagValue(parametersNode, "pass_all_parameters");
passingAllParameters = Const.isEmpty(passAll) || "Y".equalsIgnoreCase(passAll);
int nrParameters = XMLHandler.countNodes(parametersNode, "parameter"); //$NON-NLS-1$
parameters = new String[nrParameters];
parameterFieldNames = new String[nrParameters];
parameterValues = new String[nrParameters];
for (int i=0;i<nrParameters;i++)
{
Node knode = XMLHandler.getSubNodeByNr(parametersNode, "parameter", i); //$NON-NLS-1$
parameters [i] = XMLHandler.getTagValue(knode, "name"); //$NON-NLS-1$
parameterFieldNames[i] = XMLHandler.getTagValue(knode, "stream_name"); //$NON-NLS-1$
parameterValues [i] = XMLHandler.getTagValue(knode, "value"); //$NON-NLS-1$
}
}
catch(KettleException e)
{
throw new KettleXMLException("Unable to load job entry of type 'trans' from XML node", e);
}
}
示例8: loadRep
import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException {
try {
super.loadRep(rep, id_jobentry, databases, slaveServers);
transname = rep.getJobEntryAttributeString(id_jobentry, "name");
directory = rep.getJobEntryAttributeString(id_jobentry, "dir_path");
filename = rep.getJobEntryAttributeString(id_jobentry, "file_name");
argFromPrevious = rep.getJobEntryAttributeBoolean(id_jobentry, "arg_from_previous");
execPerRow = rep.getJobEntryAttributeBoolean(id_jobentry, "exec_per_row");
clearResultRows = rep.getJobEntryAttributeBoolean(id_jobentry, "clear_rows", true);
clearResultFiles = rep.getJobEntryAttributeBoolean(id_jobentry, "clear_files", true);
setLogfile = rep.getJobEntryAttributeBoolean(id_jobentry, "set_logfile");
addDate = rep.getJobEntryAttributeBoolean(id_jobentry, "add_date");
addTime = rep.getJobEntryAttributeBoolean(id_jobentry, "add_time");
logfile = rep.getJobEntryAttributeString(id_jobentry, "logfile");
logext = rep.getJobEntryAttributeString(id_jobentry, "logext");
loglevel = LogWriter.getLogLevel(rep.getJobEntryAttributeString(id_jobentry, "loglevel"));
clustering = rep.getJobEntryAttributeBoolean(id_jobentry, "cluster");
remoteSlaveServerName = rep.getJobEntryAttributeString(id_jobentry, "slave_server_name");
setAppendLogfile = rep.getJobEntryAttributeBoolean(id_jobentry, "set_append_logfile");
waitingToFinish = rep.getJobEntryAttributeBoolean(id_jobentry, "wait_until_finished", true);
followingAbortRemotely = rep.getJobEntryAttributeBoolean(id_jobentry, "follow_abort_remote");
// How many arguments?
int argnr = rep.countNrJobEntryAttributes(id_jobentry, "argument");
arguments = new String[argnr];
// Read all arguments...
for (int a = 0; a < argnr; a++) {
arguments[a] = rep.getJobEntryAttributeString(id_jobentry, a, "argument");
}
// How many arguments?
int parameternr = rep.countNrJobEntryAttributes(id_jobentry, "parameter_name");
parameters = new String[parameternr];
parameterFieldNames = new String[parameternr];
parameterValues = new String[parameternr];
// Read all parameters ...
for (int a = 0; a < parameternr; a++) {
parameters[a] = rep.getJobEntryAttributeString(id_jobentry, a, "parameter_name");
parameterFieldNames[a] = rep.getJobEntryAttributeString(id_jobentry, a, "parameter_stream_name");
parameterValues[a] = rep.getJobEntryAttributeString(id_jobentry, a, "parameter_value");
}
passingAllParameters = rep.getJobEntryAttributeBoolean(id_jobentry, "pass_all_parameters", true);
} catch (KettleDatabaseException dbe) {
throw new KettleException("Unable to load job entry of type 'trans' from the repository for id_jobentry=" + id_jobentry, dbe);
}
}