本文整理汇总了Java中org.pentaho.di.cluster.SlaveServer.setChanged方法的典型用法代码示例。如果您正苦于以下问题:Java SlaveServer.setChanged方法的具体用法?Java SlaveServer.setChanged怎么用?Java SlaveServer.setChanged使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.cluster.SlaveServer
的用法示例。
在下文中一共展示了SlaveServer.setChanged方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readSlaves
import org.pentaho.di.cluster.SlaveServer; //导入方法依赖的package包/类
/**
* Read the slave servers in the repository and add them to this transformation if they are not yet present.
* @param rep The repository to load from.
* @param overWriteShared if an object with the same name exists, overwrite
* @throws KettleException
*/
public void readSlaves(Repository rep, boolean overWriteShared) throws KettleException
{
try
{
long dbids[] = rep.getSlaveIDs();
for (int i = 0; i < dbids.length; i++)
{
SlaveServer slaveServer = new SlaveServer(rep, dbids[i]);
slaveServer.shareVariablesWith(this);
SlaveServer check = findSlaveServer(slaveServer.getName()); // Check if there already is one in the transformation
if (check==null || overWriteShared)
{
if (!Const.isEmpty(slaveServer.getName()))
{
addOrReplaceSlaveServer(slaveServer);
if (!overWriteShared) slaveServer.setChanged(false);
}
}
}
}
catch (KettleDatabaseException dbe)
{
throw new KettleException(Messages.getString("TransMeta.Log.UnableToReadSlaveServersFromRepository"), dbe); //$NON-NLS-1$
}
}
示例2: readSlaves
import org.pentaho.di.cluster.SlaveServer; //导入方法依赖的package包/类
/**
* Read the slave servers in the repository and add them to this transformation if they are not yet present.
* @param TransMeta The transformation to load into.
* @param overWriteShared if an object with the same name exists, overwrite
* @throws KettleException
*/
public void readSlaves(TransMeta transMeta, boolean overWriteShared) throws KettleException
{
try
{
ObjectId dbids[] = repository.getSlaveIDs(false);
for (int i = 0; i < dbids.length; i++)
{
SlaveServer slaveServer = repository.loadSlaveServer(dbids[i], null); // Load last version
slaveServer.shareVariablesWith(transMeta);
SlaveServer check = transMeta.findSlaveServer(slaveServer.getName()); // Check if there already is one in the transformation
if (check==null || overWriteShared)
{
if (!Const.isEmpty(slaveServer.getName()))
{
transMeta.addOrReplaceSlaveServer(slaveServer);
if (!overWriteShared) slaveServer.setChanged(false);
}
}
}
}
catch (KettleDatabaseException dbe)
{
throw new KettleException(BaseMessages.getString(PKG, "TransMeta.Log.UnableToReadSlaveServersFromRepository"), dbe); //$NON-NLS-1$
}
}
示例3: readSlaves
import org.pentaho.di.cluster.SlaveServer; //导入方法依赖的package包/类
/**
* Read the slave servers in the repository and add them to this transformation if they are not yet present.
* @param rep The repository to load from.
* @param overWriteShared if an object with the same name exists, overwrite
* @throws KettleException
*/
public void readSlaves(Repository rep, boolean overWriteShared) throws KettleException
{
try
{
long dbids[] = rep.getSlaveIDs();
for (int i = 0; i < dbids.length; i++)
{
SlaveServer slaveServer = new SlaveServer(rep, dbids[i]);
slaveServer.shareVariablesWith(this);
SlaveServer check = findSlaveServer(slaveServer.getName()); // Check if there already is one in the transformation
if (check==null || overWriteShared)
{
if (!Const.isEmpty(slaveServer.getName()))
{
addOrReplaceSlaveServer(slaveServer);
if (!overWriteShared) slaveServer.setChanged(false);
}
}
}
}
catch (KettleDatabaseException dbe)
{
throw new KettleException(Messages.getString("JobMeta.Log.UnableToReadSlaveServersFromRepository"), dbe); //$NON-NLS-1$
}
}
示例4: readSlaves
import org.pentaho.di.cluster.SlaveServer; //导入方法依赖的package包/类
/**
* Read the slave servers in the repository and add them to this transformation if they are not yet present.
* @param jobMeta The job to put the slave servers in
* @param overWriteShared if an object with the same name exists, overwrite
* @throws KettleException
*/
public void readSlaves(JobMeta jobMeta, boolean overWriteShared) throws KettleException
{
try
{
ObjectId dbids[] = repository.getSlaveIDs(false);
for (int i = 0; i < dbids.length; i++)
{
SlaveServer slaveServer = repository.loadSlaveServer(dbids[i], null); // Load last version
slaveServer.shareVariablesWith(jobMeta);
SlaveServer check = jobMeta.findSlaveServer(slaveServer.getName()); // Check if there already is one in the transformation
if (check==null || overWriteShared)
{
if (!Const.isEmpty(slaveServer.getName()))
{
jobMeta.addOrReplaceSlaveServer(slaveServer);
if (!overWriteShared) slaveServer.setChanged(false);
}
}
}
}
catch (KettleDatabaseException dbe)
{
throw new KettleException(BaseMessages.getString(PKG, "JobMeta.Log.UnableToReadSlaveServersFromRepository"), dbe); //$NON-NLS-1$
}
}