resourcemanagerwsimpl.java

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

JAVA
85
字号
package jwsgrid.resourcemanager.ws;import jwsgrid.resourcemanager.ResourceManager;        import java.lang.String;/** * This is the implementation bean class for the ResourceManagerWSweb service. * Created 27-Apr-2005 6:19:50 PM * @author sean */public class ResourceManagerWSImpl implements ResourceManagerWSSEI {       private long pingCount = 0;        /**     * Web service operation     */    public void registerJobHost(             String wsAddr,             String clustserId,            String xmlStaticInfo,             String xmlDynamicInfo)     throws Exception     {        try         {            ResourceManager.WS_init();            ResourceManager.WS_registerJobHost(                    wsAddr,                    clustserId,                    xmlStaticInfo,                     xmlDynamicInfo );                    } catch ( Exception ex ) {            throw ex;        }        }    /**     * Web service operation     */    public boolean unregisterJobHost( String wsAddr, String clusterId )     throws Exception     {        try         {            ResourceManager.WS_init();            return ResourceManager.WS_unregisterJobHost( wsAddr, clusterId );                    } catch ( Exception ex ) {            throw ex;        }             }    /**     * Web service operation     */    public String searchJobHosts( String xmlJobHostConstraints )     throws ConstraintMatchException, ConstraintDistanceException, Exception     {        try         {            ResourceManager.WS_init();            return ResourceManager.WS_searchJobHosts( xmlJobHostConstraints );                    } catch ( jwsgrid.resourcemanager.ConstraintDistanceException ex ) {            throw new ConstraintDistanceException( ex.getMessage() );                    } catch ( jwsgrid.resourcemanager.ConstraintMatchException ex ) {            throw new ConstraintMatchException( ex.getMessage() );                    } catch ( Exception ex ) {            throw ex;        }            }      /**     * Web service operation     */    public long ping() {        return pingCount++;    }}

⌨️ 快捷键说明

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