本文整理汇总了Java中org.pentaho.di.job.JobConfiguration类的典型用法代码示例。如果您正苦于以下问题:Java JobConfiguration类的具体用法?Java JobConfiguration怎么用?Java JobConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JobConfiguration类属于org.pentaho.di.job包,在下文中一共展示了JobConfiguration类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: JobMap
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
public JobMap()
{
jobMap = new Hashtable<String, Job>();
configurationMap = new Hashtable<String, JobConfiguration>();
loggingMap = new Hashtable<String, Appender>();
}
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:8,代码来源:JobMap.java
示例2: getConfiguration
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
public synchronized JobConfiguration getConfiguration(String jobName) {
for (CarteObjectEntry entry : configurationMap.keySet()) {
if (entry.getName().equals(jobName)) {
return configurationMap.get(entry);
}
}
return null;
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:9,代码来源:JobMap.java
示例3: getConfiguration
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
public synchronized JobConfiguration getConfiguration( String jobName ) {
for ( CarteObjectEntry entry : configurationMap.keySet() ) {
if ( entry.getName().equals( jobName ) ) {
return getConfiguration( entry );
}
}
return null;
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:9,代码来源:JobMap.java
示例4: jobDelegationStarted
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
@Override
public synchronized void jobDelegationStarted( Job delegatedJob,
JobExecutionConfiguration jobExecutionConfiguration ) {
JobConfiguration jc = new JobConfiguration( delegatedJob.getJobMeta(), jobExecutionConfiguration );
jobMap.registerJob( delegatedJob, jc );
delegatedJob.addDelegationListener( this );
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:10,代码来源:CarteDelegationHandler.java
示例5: init
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
@BeforeClass
public static void init() {
jobMap = new JobMap();
for ( int i = 0; i < INITIAL_JOB_MAP_SIZE; i++ ) {
jobMap.addJob( JOB_NAME_STRING + i, JOB_ID_STRING + i, mockJob( i ), mock( JobConfiguration.class ) );
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:8,代码来源:JobMapConcurrencyTest.java
示例6: doCall
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
@Override
public Object doCall() throws Exception {
while ( condition.get() ) {
int i = random.nextInt( INITIAL_JOB_MAP_SIZE );
CarteObjectEntry entry = jobMap.getJobObjects().get( i );
if ( entry == null ) {
throw new IllegalStateException(
String.format( "Returned CarteObjectEntry must not be null. EntryId = %d", i ) );
}
final String jobName = JOB_NAME_STRING + i;
Job job = jobMap.getJob( entry.getName() );
if ( job == null ) {
throw new IllegalStateException( String.format( "Returned job must not be null. Job name = %s", jobName ) );
}
JobConfiguration jobConfiguration = jobMap.getConfiguration( entry.getName() );
if ( jobConfiguration == null ) {
throw new IllegalStateException(
String.format( "Returned jobConfiguration must not be null. Job name = %s", jobName ) );
}
}
return null;
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:28,代码来源:JobMapConcurrencyTest.java
示例7: call
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
@Override
public Exception call() throws Exception {
Exception exception = null;
try {
for ( int i = 0; i < cycles; i++ ) {
int id = generator.get();
jobMap.addJob( JOB_NAME_STRING + id, JOB_ID_STRING + id, mockJob( id ), mock( JobConfiguration.class ) );
}
} catch ( Exception e ) {
exception = e;
}
return exception;
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:14,代码来源:JobMapConcurrencyTest.java
示例8: addJob
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
public synchronized void addJob(String jobName, Job job, JobConfiguration jobConfiguration)
{
jobMap.put(jobName, job);
configurationMap.put(jobName, jobConfiguration);
}
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:6,代码来源:JobMap.java
示例9: getConfiguration
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
public synchronized JobConfiguration getConfiguration(String jobName)
{
return configurationMap.get(jobName);
}
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:5,代码来源:JobMap.java
示例10: getConfigurationMap
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
/**
* @return the configurationMap
*/
public Map<String, JobConfiguration> getConfigurationMap()
{
return configurationMap;
}
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:8,代码来源:JobMap.java
示例11: setConfigurationMap
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
/**
* @param configurationMap the configurationMap to set
*/
public void setConfigurationMap(Map<String, JobConfiguration> configurationMap)
{
this.configurationMap = configurationMap;
}
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:8,代码来源:JobMap.java
示例12: JobMap
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
public JobMap() {
jobMap = new Hashtable<CarteObjectEntry, Job>();
configurationMap = new Hashtable<CarteObjectEntry, JobConfiguration>();
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:5,代码来源:JobMap.java
示例13: addJob
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
public synchronized void addJob(String jobName, String carteObjectId, Job job, JobConfiguration jobConfiguration) {
CarteObjectEntry entry = new CarteObjectEntry(jobName, carteObjectId);
jobMap.put(entry, job);
configurationMap.put(entry, jobConfiguration);
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:6,代码来源:JobMap.java
示例14: replaceJob
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
public void replaceJob(CarteObjectEntry entry, Job job, JobConfiguration jobConfiguration) {
jobMap.put(entry, job);
configurationMap.put(entry, jobConfiguration);
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:5,代码来源:JobMap.java
示例15: getConfigurationMap
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
/**
* @return the configurationMap
*/
public Map<CarteObjectEntry, JobConfiguration> getConfigurationMap() {
return configurationMap;
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:7,代码来源:JobMap.java
示例16: startJob
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
@GET
@Path("/start/{id : .+}")
@Produces({ MediaType.APPLICATION_JSON })
public JobStatus startJob(@PathParam("id") String id) {
Job job = CarteResource.getJob(id);
CarteObjectEntry entry = CarteResource.getCarteObjectEntry(id);
try {
if (job.isInitialized() && !job.isActive()) {
// Re-create the job from the jobMeta
//
// We might need to re-connect to the repository
//
if (job.getRep() != null && !job.getRep().isConnected()) {
job.getRep().connect(job.getRep().getUserInfo().getLogin(), job.getRep().getUserInfo().getPassword());
}
// Create a new job object to start from a sane state. Then replace
// the new job in the job map
//
synchronized (CarteSingleton.getInstance().getJobMap()) {
JobConfiguration jobConfiguration = CarteSingleton.getInstance().getJobMap().getConfiguration(entry);
String carteObjectId = UUID.randomUUID().toString();
SimpleLoggingObject servletLoggingObject = new SimpleLoggingObject(getClass().getName(), LoggingObjectType.CARTE, null);
servletLoggingObject.setContainerObjectId(carteObjectId);
Job newJob = new Job(job.getRep(), job.getJobMeta(), servletLoggingObject);
newJob.setLogLevel(job.getLogLevel());
// Discard old log lines from the old job
//
CentralLogStore.discardLines(job.getLogChannelId(), true);
CarteSingleton.getInstance().getJobMap().replaceJob(entry, newJob, jobConfiguration);
job = newJob;
}
}
job.start();
} catch (KettleException e) {
e.printStackTrace();
}
return getJobStatus(id);
}
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:44,代码来源:JobResource.java
示例17: addJob
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
public synchronized void addJob( String jobName, String carteObjectId, Job job, JobConfiguration jobConfiguration ) {
CarteObjectEntry entry = new CarteObjectEntry( jobName, carteObjectId );
jobMap.put( entry, job );
configurationMap.put( entry, jobConfiguration );
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:6,代码来源:JobMap.java
示例18: registerJob
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
public synchronized void registerJob( Job job, JobConfiguration jobConfiguration ) {
job.setContainerObjectId( UUID.randomUUID().toString() );
CarteObjectEntry entry = new CarteObjectEntry( job.getJobMeta().getName(), job.getContainerObjectId() );
jobMap.put( entry, job );
configurationMap.put( entry, jobConfiguration );
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:7,代码来源:JobMap.java
示例19: replaceJob
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
public synchronized void replaceJob( CarteObjectEntry entry, Job job, JobConfiguration jobConfiguration ) {
jobMap.put( entry, job );
configurationMap.put( entry, jobConfiguration );
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:5,代码来源:JobMap.java
示例20: startJob
import org.pentaho.di.job.JobConfiguration; //导入依赖的package包/类
@GET
@Path( "/start/{id : .+}" )
@Produces( { MediaType.APPLICATION_JSON } )
public JobStatus startJob( @PathParam( "id" ) String id ) {
Job job = CarteResource.getJob( id );
CarteObjectEntry entry = CarteResource.getCarteObjectEntry( id );
try {
if ( job.isInitialized() && !job.isActive() ) {
// Re-create the job from the jobMeta
//
// We might need to re-connect to the repository
//
if ( job.getRep() != null && !job.getRep().isConnected() ) {
if ( job.getRep().getUserInfo() != null ) {
job.getRep().connect( job.getRep().getUserInfo().getLogin(), job.getRep().getUserInfo().getPassword() );
} else {
job.getRep().connect( null, null );
}
}
// Create a new job object to start from a sane state. Then replace
// the new job in the job map
//
synchronized ( this ) {
JobConfiguration jobConfiguration = CarteSingleton.getInstance().getJobMap().getConfiguration( entry );
String carteObjectId = UUID.randomUUID().toString();
SimpleLoggingObject servletLoggingObject =
new SimpleLoggingObject( getClass().getName(), LoggingObjectType.CARTE, null );
servletLoggingObject.setContainerObjectId( carteObjectId );
Job newJob = new Job( job.getRep(), job.getJobMeta(), servletLoggingObject );
newJob.setLogLevel( job.getLogLevel() );
// Discard old log lines from the old job
//
KettleLogStore.discardLines( job.getLogChannelId(), true );
CarteSingleton.getInstance().getJobMap().replaceJob( entry, newJob, jobConfiguration );
job = newJob;
}
}
job.start();
} catch ( KettleException e ) {
e.printStackTrace();
}
return getJobStatus( id );
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:49,代码来源:JobResource.java
注:本文中的org.pentaho.di.job.JobConfiguration类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论