jobhostwsimpl.java

来自「这是一个基于计算网格的web service。它用java编写。一旦安装完成」· Java 代码 · 共 179 行

JAVA
179
字号
package jwsgrid.jobhost.ws;import jwsgrid.jobhost.JobHost;import javax.activation.DataHandler;import java.lang.String;/** * This is the implementation bean class for the JobHostWS web service. * Created 28-Apr-2005 9:30:36 AM * @author sean */public class JobHostWSImpl implements JobHostWSSEI {       private long pingCount = 0;        /**     * Web service operation     */    public String submitJob(            String ownerId,             String xmlJobDescrBundle,             int jobDescrIndex,             DataHandler jobZippedData )             throws Exception     {        try         {            JobHost.WS_init();            return JobHost.WS_submitJob(                    ownerId,                     xmlJobDescrBundle,                     jobDescrIndex,                    jobZippedData );                    } catch ( Exception ex ) {            throw ex;        }    }    /**     * Web service operation     */    public void stopJob( String ownerId, String jobId )     throws Exception     {        try         {            JobHost.WS_init();            JobHost.WS_stopJob( ownerId, jobId );                    } catch ( Exception ex ) {            throw ex;        }            }    /**     * Web service operation     */    public String getJobStatus( String ownerId, String jobId )      throws Exception     {        try         {            JobHost.WS_init();            return JobHost.WS_getJobStatus( ownerId, jobId );                    } catch ( Exception ex ) {            throw ex;        }             }    /**     * Web service operation     */    public String getJobStatus( String ownerId ) throws Exception     {        try         {            JobHost.WS_init();            return JobHost.WS_getJobStatus( ownerId );                    } catch ( Exception ex ) {            throw ex;        }              }    /**     * Web service operation     */    public DataHandler getJobOutputFile(            String ownerId,             String jobId,             String filePath )     throws Exception     {        try         {            JobHost.WS_init();            return JobHost.WS_getJobOutputFile( ownerId, jobId, filePath );                    } catch ( Exception ex ) {            throw ex;        }             }    /**     * Web service operation     */    public DataHandler getJobOutputFiles( String ownerId, String jobId )     throws Exception     {        try         {            JobHost.WS_init();            return JobHost.WS_getJobOutputFiles( ownerId, jobId );                    } catch ( Exception ex ) {            throw ex;        }             }    /**     * Web service operation     */    public long ping() {        return pingCount++;    }    /**     * Web service operation     */    public void startJob( String jobOwner, String jobId )     throws Exception     {        try         {            JobHost.WS_init();            JobHost.WS_startJob( jobOwner, jobId );                    } catch ( Exception ex ) {            throw ex;        }            }    /**     * Web service operation     */    public void destroyJob( String jobOwner, String jobId )     throws Exception     {        try         {            JobHost.WS_init();            JobHost.WS_destroyJob( jobOwner, jobId );                    } catch ( Exception ex ) {            throw ex;        }             }    /**     * Web service operation     */    public String getDynamicInfo() throws Exception     {        try         {            JobHost.WS_init();            return JobHost.WS_getDynamicInfo();                    } catch ( Exception ex ) {            throw ex;        }             }    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?