Refine search![Refine arrow](//d16xvuom8mr9m8.cloudfront.net/code/public/images/refine-arrow.226bef887e7b1c430d6d498717d9d561.svg)
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)); } }
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)); } }
public static void dump() { Set<String> zeroAccessFieldSet = getStatistics(); StringBuilder message = new StringBuilder(); message.append(_loc.get("fields-never-fetched", new Object[] { _entities, new Integer(zeroAccessFieldSet.size()) }).getMessage()); for (String field : zeroAccessFieldSet) { message.append("\n\t" + field); } _log.info(message); }
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; } }
/** * Construct a new TCPPortListener configured to use the specified port. */ private TCPPortListener(int port, Log log) throws IOException { _port = port; _log = log; try { _receiveSocket = AccessController .doPrivileged(J2DoPrivHelper.newServerSocketAction(_port)); } catch (PrivilegedActionException pae) { throw (IOException) pae.getException(); } _localhost = InetAddress.getLocalHost().getAddress(); if (_log.isTraceEnabled()) _log.info(s_loc.get("tcp-start-listener", String.valueOf(_port))); }
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; } }
/** * Construct a new TCPPortListener configured to use the specified port. */ private TCPPortListener(int port, Log log) throws IOException { _port = port; _log = log; try { _receiveSocket = (ServerSocket) AccessController .doPrivileged(J2DoPrivHelper.newServerSocketAction(_port)); } catch (PrivilegedActionException pae) { throw (IOException) pae.getException(); } _localhost = InetAddress.getLocalHost().getAddress(); if (_log.isTraceEnabled()) _log.info(s_loc.get("tcp-start-listener", String.valueOf(_port))); }
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 serialize(File file, int flags) throws IOException { if (_log != null) _log.info(_loc.get("ser-file", file)); _backup = prepareWrite(file); try { FileWriter out = new FileWriter( AccessController.doPrivileged( J2DoPrivHelper.getCanonicalPathAction(file)), (flags & APPEND) > 0); serialize(out, flags); out.close(); } catch (PrivilegedActionException pae) { throw (IOException) pae.getException(); } }
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; } }
/** * Construct a new TCPPortListener configured to use the specified port. */ private TCPPortListener(int port, Log log) throws IOException { _port = port; _log = log; try { _receiveSocket = AccessController .doPrivileged(J2DoPrivHelper.newServerSocketAction(_port)); } catch (PrivilegedActionException pae) { throw (IOException) pae.getException(); } _localhost = InetAddress.getLocalHost().getAddress(); if (_log.isTraceEnabled()) _log.info(s_loc.get("tcp-start-listener", String.valueOf(_port))); }
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; } }
/** * Construct a new TCPPortListener configured to use the specified port. */ private TCPPortListener(int port, Log log) throws IOException { _port = port; _log = log; try { _receiveSocket = AccessController .doPrivileged(J2DoPrivHelper.newServerSocketAction(_port)); } catch (PrivilegedActionException pae) { throw (IOException) pae.getException(); } _localhost = InetAddress.getLocalHost().getAddress(); if (_log.isTraceEnabled()) _log.info(s_loc.get("tcp-start-listener", String.valueOf(_port))); }
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; } }
/** * Construct a new TCPPortListener configured to use the specified port. */ private TCPPortListener(int port, Log log) throws IOException { _port = port; _log = log; try { _receiveSocket = AccessController .doPrivileged(J2DoPrivHelper.newServerSocketAction(_port)); } catch (PrivilegedActionException pae) { throw (IOException) pae.getException(); } _localhost = InetAddress.getLocalHost().getAddress(); if (_log.isTraceEnabled()) _log.info(s_loc.get("tcp-start-listener", String.valueOf(_port))); }
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 serialize(File file, int flags) throws IOException { if (_log != null) _log.info(_loc.get("ser-file", file)); _backup = prepareWrite(file); try { FileWriter out = new FileWriter( AccessController.doPrivileged( J2DoPrivHelper.getCanonicalPathAction(file)), (flags & APPEND) > 0); serialize(out, flags); out.close(); } catch (PrivilegedActionException pae) { throw (IOException) pae.getException(); } }
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 serialize(File file, int flags) throws IOException { if (_log != null) _log.info(_loc.get("ser-file", file)); _backup = prepareWrite(file); try { FileWriter out = new FileWriter( AccessController.doPrivileged( J2DoPrivHelper.getCanonicalPathAction(file)), (flags & APPEND) > 0); serialize(out, flags); out.close(); } catch (PrivilegedActionException pae) { throw (IOException) pae.getException(); } }