Package com.opengamma.transport.socket

Examples of com.opengamma.transport.socket.SocketFudgeConnection


  @Override
  protected FudgeConnection createObject() {
    final FudgeMsg endPoint = resolveEndPointDescription();
    ArgumentChecker.notNull(endPoint, "endPointDescription");
    if (SocketEndPointDescriptionProvider.TYPE_VALUE.equals(endPoint.getString(SocketEndPointDescriptionProvider.TYPE_KEY))) {
      final SocketFudgeConnection connection = (getExecutorService() != null) ? new SocketFudgeConnection(getFudgeContext(), getExecutorService()) : new SocketFudgeConnection(getFudgeContext());
      connection.setServer(endPoint);
      return connection;
    }
    throw new IllegalArgumentException("Don't know how to create end-point " + endPoint);
  }
View Full Code Here


    ViewComputationCacheServer server = new ViewComputationCacheServer(cache);
    _serverSocket = new ServerSocketFudgeConnectionReceiver(cache.getFudgeContext(), server, Executors
        .newCachedThreadPool());
    _serverSocket.setLazyFudgeMsgReads(lazyReads);
    _serverSocket.start();
    _socket = new SocketFudgeConnection(cache.getFudgeContext());
    _socket.setFlushDelay(flushDelay);
    try {
      _socket.setInetAddress(InetAddress.getLocalHost());
    } catch (UnknownHostException e) {
      throw new OpenGammaRuntimeException("", e);
View Full Code Here

TOP

Related Classes of com.opengamma.transport.socket.SocketFudgeConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.