Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] [ptp-user] Creating a new Resource Manager

(Redirecting to ptp-dev)

Steve,

You need to change the job's state attribute from JobAttributes.State.STARTING to JobAttributes.State.RUNNING for the launch to complete. This needs to happen *after* the call to doSubmitJob() returns, so you will need another thread or some other way of changing the state. See AbstractToolRuntimeSystemJob#changeJobState for sample code.

Regards,
Greg

On Sep 21, 2010, at 9:22 AM, Beth Tibbitts wrote:

ptp-dev is probably a better list for a this question but i think most of the developers watch ptp-user as well

...Beth

Beth Tibbitts
Eclipse Parallel Tools Platform http://eclipse.org/ptp
IBM STG Communications Protocols and Tools
Mailing Address: IBM Corp., Coldstream Research Campus, 745 West New Circle Road, Lexington, KY 40511

<graycol.gif>"Steven R. Brandt" ---09/20/2010 03:52:18 PM---This is probably the wrong list for this question, so please help me find the right one.

<ecblank.gif>
From:
<ecblank.gif>
"Steven R. Brandt" <sbrandt@xxxxxxxxxxx>
<ecblank.gif>
To:
<ecblank.gif>
PTP User <ptp-user@xxxxxxxxxxx>
<ecblank.gif>
Date:
<ecblank.gif>
09/20/2010 03:52 PM
<ecblank.gif>
Subject:
<ecblank.gif>
[ptp-user] Creating a new Resource Manager
<ecblank.gif>
Sent by:
<ecblank.gif>
ptp-user-bounces@xxxxxxxxxxx





This is probably the wrong list for this question, so please help me
find the right one.

I'm developing a new PTP resource manager object. By way of testing and
figuring out how things work, I create a fake job that does nothing.

I subclass org.eclipse.ptp.rmsystem.AbstractResourceManager and provide
it with a method:

    @Override
    protected IPJob doSubmitJob(String subId,
            ILaunchConfiguration configuration, AttributeManager attrMgr,
            IProgressMonitor monitor) throws CoreException {
        // TODO Auto-generated method stub
        System.out.println("doSubmitJob");
        if(monitor != null) {
            monitor.done();
        }
        IPJob job = newJob(queue, subId, new AttributeManager());
        return job;
    }

This puts the job to the 85% completed stage, but it does not get any
further. How do I make the job show as complete? Thx.

Cheers,
Steve
_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-user


_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-user


Back to the top