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