Class cern.lhcias.csgui.Drivers.MD2SDriver
java.lang.Object
|
+----cern.lhcias.csgui.Drivers.MD2SDriver
- public class MD2SDriver
- extends Object
- implements Runnable, DataServer
This class is an implementation of DataServer using the API from the MD2SŪ
product by Indium International.
Only one communication channel is needed to read and write data,
so it is not necessary to call setWriteHost and setWritePort.
To start a pooling mechanism, one has to set the pooling interval
and then call the method enable().
- See Also:
- DataServer
MD2SDriver()
-
addAlarmListener(AlarmListener)
-
closeConnection()
-
disable()
-
doYouImplement(String)
-
enable()
-
getDriverProtocol()
-
getMask()
-
getParameter(String)
-
getPassword()
-
getPoolingInterval()
-
getPossibleProtocols()
-
getProcessName()
-
getReadHost()
-
getReadPort()
-
getTagsSubscription()
-
getType()
-
getUser()
-
getWriteHost()
-
getWritePort()
-
isActive()
-
read(String)
-
read(Vector)
-
removeAlarmListener(AlarmListener)
-
run()
-
setConfig(String)
- Config is in the following format
ProcessName;Protocol;Type;ReadHost;ReadPort;WriteHost;WritePort;
PoolFrequency;subscriptionMode[;param1=val1[;...]]
setMask(boolean)
-
setParameter(String,
String)
-
setPassword(String)
-
setPoolingInterval(long)
-
setProcessName(String)
-
setReadHost(String)
-
setReadPort(int)
-
setTagArrays(TagArrays)
-
setTagsSubscription(boolean)
-
setType(String)
-
setUser(String)
-
setWriteHost(String)
-
setWritePort(int)
-
toString()
- The returned string is in the following format
ProcessName;Protocol;Type;ReadHost;ReadPort;WriteHost;WritePort;
PoolFrequency;subscriptionMode[;param1=val1[;...]]
write(String, String)
-

MD2SDriver
public MD2SDriver()

addAlarmListener
public void addAlarmListener(AlarmListener listener)

removeAlarmListener
public void removeAlarmListener(AlarmListener listener)

setReadHost
public void setReadHost(String host_url)

getReadHost
public String getReadHost()

setReadPort
public void setReadPort(int com_port)

getReadPort
public int getReadPort()

setWriteHost
public void setWriteHost(String host_url)

getWriteHost
public String getWriteHost()

setWritePort
public void setWritePort(int com_port)

getWritePort
public int getWritePort()

closeConnection
public void closeConnection()

setTagArrays
public void setTagArrays(TagArrays tc)

setPoolingInterval
public void setPoolingInterval(long pooling_interval)

getPoolingInterval
public long getPoolingInterval()

setType
public void setType(String Type)

getType
public String getType()

setMask
public void setMask(boolean Mask)

getMask
public boolean getMask()

setUser
public void setUser(String user)

setPassword
public void setPassword(String password)

getUser
public String getUser()

getPassword
public String getPassword()

setParameter
public void setParameter(String parameter,
String value)

getParameter
public String getParameter(String parameter)

setTagsSubscription
public void setTagsSubscription(boolean subMode)

getTagsSubscription
public boolean getTagsSubscription()

setProcessName
public void setProcessName(String processname)

getProcessName
public String getProcessName()

doYouImplement
public boolean doYouImplement(String type)

getPossibleProtocols
public Vector getPossibleProtocols()

getDriverProtocol
public String getDriverProtocol()

setConfig
public void setConfig(String config)
- Config is in the following format
ProcessName;Protocol;Type;ReadHost;ReadPort;WriteHost;WritePort;
PoolFrequency;subscriptionMode[;param1=val1[;...]]

toString
public String toString()
- The returned string is in the following format
ProcessName;Protocol;Type;ReadHost;ReadPort;WriteHost;WritePort;
PoolFrequency;subscriptionMode[;param1=val1[;...]]
- Overrides:
- toString in class Object

isActive
public boolean isActive()

disable
public void disable()

enable
public void enable()

write
public void write(String name,
String stringValue)

run
public void run()

read
public synchronized String read(String name)

read
public synchronized boolean read(Vector names)