Refine search
public void setBooleanRepresentation(String booleanRepresentationKey) { BooleanRepresentation evaluatedBooleanRepresentation = null; if (booleanRepresentationKey != null && booleanRepresentationKey.length() > 0) { ClassLoader cl = conf.getUserClassLoader(); evaluatedBooleanRepresentation = BooleanRepresentationFactory.valueOf(booleanRepresentationKey, cl); } booleanRepresentation = evaluatedBooleanRepresentation != null ? evaluatedBooleanRepresentation : BooleanRepresentationFactory.INT_10; if (log.isInfoEnabled()) { log.info(_loc.get("using-booleanRepresentation", booleanRepresentation)); } }
/** * Log warning about an unsupported tag. */ private void warnUnsupportedTag(String name) { Log log = getLog(); if (log.isInfoEnabled()) log.trace(_loc.get("unsupported-tag", name)); }
public void setBooleanRepresentation(String booleanRepresentationKey) { BooleanRepresentation evaluatedBooleanRepresentation = null; if (booleanRepresentationKey != null && booleanRepresentationKey.length() > 0) { ClassLoader cl = conf.getUserClassLoader(); evaluatedBooleanRepresentation = BooleanRepresentationFactory.valueOf(booleanRepresentationKey, cl); } booleanRepresentation = evaluatedBooleanRepresentation != null ? evaluatedBooleanRepresentation : BooleanRepresentationFactory.INT_10; if (log.isInfoEnabled()) { log.info(_loc.get("using-booleanRepresentation", booleanRepresentation)); } }
/** * Log warning about an unsupported tag. */ private void warnUnsupportedTag(String name) { Log log = getLog(); if (log.isInfoEnabled()) log.trace(_loc.get("unsupported-tag", name)); }
private ReceiveSocketHandler(Socket s) { // We are the receiving end and we don't send any messages // back to the broadcaster. Turn off Nagle's so that // we will send ack packets without waiting. _s = s; try { _s.setTcpNoDelay(true); _in = new BufferedInputStream(s.getInputStream()); } catch (IOException ioe) { if (_log.isInfoEnabled()) _log.info(s_loc.get("tcp-socket-option-error"), ioe); _s = null; } catch (Exception e) { if (_log.isWarnEnabled()) _log.warn(s_loc.get("tcp-receive-error"), e); _s = null; } }
/** * Log warning about an unsupported tag. */ private void warnUnsupportedTag(String name) { Log log = getLog(); if (log.isInfoEnabled()) log.trace(_loc.get("unsupported-tag", name)); }
private ReceiveSocketHandler(Socket s) { // We are the receiving end and we don't send any messages // back to the broadcaster. Turn off Nagle's so that // we will send ack packets without waiting. _s = s; try { _s.setTcpNoDelay(true); _in = new BufferedInputStream(s.getInputStream()); } catch (IOException ioe) { if (_log.isInfoEnabled()) _log.info(s_loc.get("tcp-socket-option-error"), ioe); _s = null; } catch (Exception e) { if (_log.isWarnEnabled()) _log.warn(s_loc.get("tcp-receive-error"), e); _s = null; } }
/** * Log warning about an unsupported tag. */ private void warnUnsupportedTag(String name) { Log log = getLog(); if (log.isInfoEnabled()) log.trace(_loc.get("unsupported-tag", name)); }
private ReceiveSocketHandler(Socket s) { // We are the receiving end and we don't send any messages // back to the broadcaster. Turn off Nagle's so that // we will send ack packets without waiting. _s = s; try { _s.setTcpNoDelay(true); _in = new BufferedInputStream(s.getInputStream()); } catch (IOException ioe) { if (_log.isInfoEnabled()) _log.info(s_loc.get("tcp-socket-option-error"), ioe); _s = null; } catch (Exception e) { if (_log.isWarnEnabled()) _log.warn(s_loc.get("tcp-receive-error"), e); _s = null; } }
/** * Log warning about an unsupported tag. */ private void warnUnsupportedTag(String name) { Log log = getLog(); if (log.isInfoEnabled()) log.trace(_loc.get("unsupported-tag", name)); }
private ReceiveSocketHandler(Socket s) { // We are the receiving end and we don't send any messages // back to the broadcaster. Turn off Nagle's so that // we will send ack packets without waiting. _s = s; try { _s.setTcpNoDelay(true); _in = new BufferedInputStream(s.getInputStream()); } catch (IOException ioe) { if (_log.isInfoEnabled()) _log.info(s_loc.get("tcp-socket-option-error"), ioe); _s = null; } catch (Exception e) { if (_log.isWarnEnabled()) _log.warn(s_loc.get("tcp-receive-error"), e); _s = null; } }
public void parse(URL url) throws IOException { // peek at the doc to determine the version XMLVersionParser vp = new XMLVersionParser("entity-mappings"); try { vp.parse(url); _ormVersion = vp.getVersion(); _schemaLocation = vp.getSchemaLocation(); } catch (Throwable t) { Log log = getLog(); if (log.isInfoEnabled()) log.trace(_loc.get("version-check-error", url.toString())); } super.parse(url); }
private ReceiveSocketHandler(Socket s) { // We are the receiving end and we don't send any messages // back to the broadcaster. Turn off Nagle's so that // we will send ack packets without waiting. _s = s; try { _s.setTcpNoDelay(true); _in = new BufferedInputStream(s.getInputStream()); } catch (IOException ioe) { if (_log.isInfoEnabled()) _log.info(s_loc.get("tcp-socket-option-error"), ioe); _s = null; } catch (Exception e) { if (_log.isWarnEnabled()) _log.warn(s_loc.get("tcp-receive-error"), e); _s = null; } }
public void parse(File file) throws IOException { // peek at the doc to determine the version XMLVersionParser vp = new XMLVersionParser("entity-mappings"); try { vp.parse(file); _ormVersion = vp.getVersion(); _schemaLocation = vp.getSchemaLocation(); } catch (Throwable t) { Log log = getLog(); if (log.isInfoEnabled()) log.trace(_loc.get("version-check-error", file.toString())); } super.parse(file); } /**
public void close() { try { if (_connection != null) { _connection.close(); if (log.isInfoEnabled()) log.info(s_loc.get("jms-close-listener", _topicName)); } } catch (JMSException jmse) { if (log.isWarnEnabled()) log.warn(s_loc.get("jms-close-error", _topicName), jmse); } finally { _connection = null; } }
public void parse(URL url) throws IOException { // peek at the doc to determine the version XMLVersionParser vp = new XMLVersionParser("entity-mappings"); try { vp.parse(url); _ormVersion = vp.getVersion(); _schemaLocation = vp.getSchemaLocation(); } catch (Throwable t) { Log log = getLog(); if (log.isInfoEnabled()) log.trace(_loc.get("version-check-error", url.toString())); } super.parse(url); }
public void close() { try { if (_connection != null) { _connection.close(); if (log.isInfoEnabled()) log.info(s_loc.get("jms-close-listener", _topicName)); } } catch (JMSException jmse) { if (log.isWarnEnabled()) log.warn(s_loc.get("jms-close-error", _topicName), jmse); } finally { _connection = null; } }
public void parse(URL url) throws IOException { // peek at the doc to determine the version XMLVersionParser vp = new XMLVersionParser("entity-mappings"); try { vp.parse(url); _ormVersion = vp.getVersion(); _schemaLocation = vp.getSchemaLocation(); } catch (Throwable t) { Log log = getLog(); if (log.isInfoEnabled()) log.trace(_loc.get("version-check-error", url.toString())); } super.parse(url); }
public void close() { try { if (_connection != null) { _connection.close(); if (log.isInfoEnabled()) log.info(s_loc.get("jms-close-listener", _topicName)); } } catch (JMSException jmse) { if (log.isWarnEnabled()) log.warn(s_loc.get("jms-close-error", _topicName), jmse); } finally { _connection = null; } }
public void parse(File file) throws IOException { // peek at the doc to determine the version XMLVersionParser vp = new XMLVersionParser("entity-mappings"); try { vp.parse(file); _ormVersion = vp.getVersion(); _schemaLocation = vp.getSchemaLocation(); } catch (Throwable t) { Log log = getLog(); if (log.isInfoEnabled()) log.trace(_loc.get("version-check-error", file.toString())); } super.parse(file); } /**