Newer
Older
pgdsc / src / struts.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
	<package name="remote" namespace="/remote" extends="struts-default">
		
		<!-- 温湿度读取和设置接口 -->
		<action name="readWSValue" class="com.szpg.rmi.RemoteWSCommandAction" method="readWSValue" />
		<action name="setWdThreshold" class="com.szpg.rmi.RemoteWSCommandAction" method="setWdThreshold" />
		<action name="setSdThreshold" class="com.szpg.rmi.RemoteWSCommandAction" method="setSdThreshold" />
        <action name="readWSValueFromDB" class="com.szpg.rmi.RemoteWSCommandAction" method="readWSValueFromDB" />
		
		<!-- 氧气读取和设置接口 -->
		<action name="readO2Value" class="com.szpg.rmi.RemoteO2CommandAction" method="readO2Value" />
		<action name="setO2Threshold" class="com.szpg.rmi.RemoteO2CommandAction" method="setO2Threshold" />
        <action name="readO2ValueFromDB" class="com.szpg.rmi.RemoteO2CommandAction" method="readO2ValueFromDB" />
		
		<!-- 甲烷读取和设置接口 -->
		<action name="readCH4Value" class="com.szpg.rmi.RemoteCH4CommandAction" method="readCH4Value" />
		<action name="setCH4Threshold" class="com.szpg.rmi.RemoteCH4CommandAction" method="setCH4Threshold" />
        <action name="readCH4ValueFromDB" class="com.szpg.rmi.RemoteCH4CommandAction" method="readCH4ValueFromDB" />
		
		<!-- 硫化氢读取和设置接口 -->
		<action name="readHSValue" class="com.szpg.rmi.RemoteHSCommandAction" method="readHSValue" />
		<action name="setHSThreshold" class="com.szpg.rmi.RemoteHSCommandAction" method="setHSThreshold" />
        <action name="readHSValueFromDB" class="com.szpg.rmi.RemoteHSCommandAction" method="readHSValueFromDB" />
		
		<!-- 一氧化碳读取和设置接口 -->
		<action name="readCOValue" class="com.szpg.rmi.RemoteCOCommandAction" method="readCOValue" />
		<action name="setCOThreshold" class="com.szpg.rmi.RemoteCOCommandAction" method="setCOThreshold" />
        <action name="readCOValueFromDB" class="com.szpg.rmi.RemoteCOCommandAction" method="readCOValueFromDB" />
		
		<!-- 风机控制接口 -->
		<action name="turnOnFj" class="com.szpg.rmi.RemoteFJCommandAction" method="turnOnFj" />
		<action name="turnOffFj" class="com.szpg.rmi.RemoteFJCommandAction" method="turnOffFj" />
		<action name="readFjStatus" class="com.szpg.rmi.RemoteFJCommandAction" method="readFjStatus" />
		<action name="readFjStatusFromDB" class="com.szpg.rmi.RemoteFJCommandAction" method="readFjStatusFromDB" />
		<action name="turnOnFjReactAlarm" class="com.szpg.rmi.RemoteFJCommandAction" method="turnOnFjReactAlarm" />
		
		<!-- 照明控制接口 -->
		<action name="turnOnZm" class="com.szpg.rmi.RemoteZMCommandAction" method="turnOnZm" />
		<action name="turnOffZm" class="com.szpg.rmi.RemoteZMCommandAction" method="turnOffZm" />
		<action name="readZmStatus" class="com.szpg.rmi.RemoteZMCommandAction" method="readZmStatus" />
		<action name="readZmStatusFromDB" class="com.szpg.rmi.RemoteZMCommandAction" method="readZmStatusFromDB" />
		
		<!-- 水泵控制接口 -->
		<action name="readSbStatus" class="com.szpg.rmi.RemoteSBCommandAction" method="readSbStatus" />
        <action name="readSbStatusFromDB" class="com.szpg.rmi.RemoteSBCommandAction" method="readSbStatusFromDB" />
		
		<!-- 井盖控制接口 -->
		<action name="readJgStatus" class="com.szpg.rmi.RemoteJGCommandAction" method="readJgStatus" />
		<action name="unlockJg" class="com.szpg.rmi.RemoteJGCommandAction" method="unlockJg" />
		<action name="lockJg" class="com.szpg.rmi.RemoteJGCommandAction" method="lockJg" />
		<action name="openJg" class="com.szpg.rmi.RemoteJGCommandAction" method="openJg" />
		<action name="closeJg" class="com.szpg.rmi.RemoteJGCommandAction" method="closeJg" />
        <action name="readJgStatusFromDB" class="com.szpg.rmi.RemoteJGCommandAction" method="readJgStatusFromDB" />
		
		<!-- 对射控制接口 -->
		<action name="readDsStatus" class="com.szpg.rmi.RemoteDSCommandAction" method="readDsStatus" />
		<action name="clearDsAlarm" class="com.szpg.rmi.RemoteDSCommandAction" method="clearDsAlarm" />
		<action name="readDsStatusFromDB" class="com.szpg.rmi.RemoteDSCommandAction" method="readDsStatusFromDB" />

		<!-- 爆管液位控制接口 -->
		<action name="readYwStatus" class="com.szpg.rmi.RemoteYWCommandAction" method="readYwStatus" />
		<action name="readYwStatusFromDB" class="com.szpg.rmi.RemoteYWCommandAction" method="readYwStatusFromDB" />

		<!-- 电力查询接口 -->
		<action name="readPowerValue" class="com.szpg.rmi.RemotePowerCommandAction" method="readPowerValue" />
		<action name="readPowerValueFromDB" class="com.szpg.rmi.RemotePowerCommandAction" method="readPowerValueFromDB" />
	</package>

    <package name="api" namespace="/api" extends="struts-default">
        <action name="getPgDevice" class="com.szpg.rmi.PgInterface" method="getPgDevice" />
    </package>
</struts>