Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.ow2.odis.sql;
 
 import  org.objectweb.util.monolog.Monolog;
 import  org.objectweb.util.monolog.api.BasicLevel;
 import  org.objectweb.util.monolog.api.Logger;
public class SqlKeepConnectionSender extends AbstractKeepConnexion {
    
The Constant LOGGER.
    static final Logger LOGGER = Monolog.initialize().getLogger(
            SqlKeepConnectionSender.class.getName());

    
Instantiates a new rXTX keep connexion out.

Parameters:
connexion the connexion
attribut the attribut
    		SqlConnectionAttribute attribut) {
        super(connexionattribut);
    }
    /*
     * (non-Javadoc)
     * @see com.francetelecom.odis.serialPort.RXTXKeepConnexion#getMessageProcessor(gnu.io.SerialPort)
     */
        MessageSender sender;
        sender = new MessageSender((AbstractConnectionOutcnx);
        sender.setAttribut((SqlConnectionAttributethis.);
        return sender;
    }
    /*
     * (non-Javadoc)
     * @see com.francetelecom.odis.serialPort.RXTXKeepConnexion#getProtocol()
     */
    protected IProtocol getProtocol() {
        IProtocolOut result = null;
        try {
            result = ((SqlConnectionAttribute).createProtocolOutInstance();
            if (.isLoggable(BasicLevel.DEBUG)) {
                .log(BasicLevel.DEBUG, "protocol is created");
            }
        } catch (OdisAttributeException e) {
            if (.isLoggable(BasicLevel.ERROR)) {
                .log(BasicLevel.ERROR, e.getMessage());
            }
        }
        return (IProtocolresult;
    }
    /*
     * (non-Javadoc)
     * @see com.francetelecom.odis.core.AbstractKeepConnexion#getConnection()
     */
    protected IConnection getConnection() {
        return new SqlConnection();
    }
New to GrepCode? Check out our FAQ X