📄 jobhostwsimpl.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -