public class ModbusMaster extends AbstractConnectionDevice
AbstractConnectionDevice.ConnectionState
context, executor, id, itemFactory
Constructor and Description |
---|
ModbusMaster(org.osgi.framework.BundleContext context,
String id,
ScheduledExecutorService executor,
org.apache.mina.transport.socket.nio.NioProcessor processor,
String threadPrefix,
String itemPrefix) |
Modifier and Type | Method and Description |
---|---|
void |
addSlave(ModbusSlave slave) |
protected void |
configure(Map<String,String> properties) |
protected void |
configureConnector(org.apache.mina.transport.socket.nio.NioSocketConnector connector) |
static ModbusMaster |
create(org.osgi.framework.BundleContext context,
ScheduledExecutorService executor,
String id,
org.apache.mina.transport.socket.nio.NioProcessor processor,
Map<String,String> parameters) |
String |
getId() |
JobManager |
getJobManager() |
String |
getName() |
protected void |
handleExceptionCaught(org.apache.mina.core.session.IoSession session,
Throwable error) |
protected void |
handleMessageReceived(org.apache.mina.core.session.IoSession session,
Object message) |
protected void |
handleSessionClosed(org.apache.mina.core.session.IoSession session) |
protected void |
handleSessionCreated(org.apache.mina.core.session.IoSession session) |
protected void |
handleSessionOpened(org.apache.mina.core.session.IoSession session) |
void |
removeSlave(ModbusSlave slave) |
checkSession, disconnect, dispose, getExecutor, getItemId, getTimeout, getVarItemId, handleMessageSent, handleSessionDisconnected, handleSessionIdle, performDispose, setSession
public ModbusMaster(org.osgi.framework.BundleContext context, String id, ScheduledExecutorService executor, org.apache.mina.transport.socket.nio.NioProcessor processor, String threadPrefix, String itemPrefix)
public static ModbusMaster create(org.osgi.framework.BundleContext context, ScheduledExecutorService executor, String id, org.apache.mina.transport.socket.nio.NioProcessor processor, Map<String,String> parameters) throws Exception
Exception
public JobManager getJobManager()
protected void configure(Map<String,String> properties) throws Exception
configure
in class AbstractConnectionDevice
Exception
protected void configureConnector(org.apache.mina.transport.socket.nio.NioSocketConnector connector)
configureConnector
in class AbstractConnectionDevice
public void addSlave(ModbusSlave slave)
public void removeSlave(ModbusSlave slave)
public String getId()
public String getName()
protected void handleSessionCreated(org.apache.mina.core.session.IoSession session) throws Exception
handleSessionCreated
in class AbstractConnectionDevice
Exception
protected void handleSessionOpened(org.apache.mina.core.session.IoSession session) throws Exception
handleSessionOpened
in class AbstractConnectionDevice
Exception
protected void handleMessageReceived(org.apache.mina.core.session.IoSession session, Object message) throws Exception
handleMessageReceived
in class AbstractConnectionDevice
Exception
protected void handleExceptionCaught(org.apache.mina.core.session.IoSession session, Throwable error) throws Exception
handleExceptionCaught
in class AbstractConnectionDevice
Exception
protected void handleSessionClosed(org.apache.mina.core.session.IoSession session) throws Exception
handleSessionClosed
in class AbstractConnectionDevice
Exception
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.