public RdmaPassiveEndpointGroup<RdmaEndpoint> createDefaultGroup(int timeout, int maxWR, int maxSge, int cqSize) throws IOException{ RdmaPassiveEndpointGroup<RdmaEndpoint> group = new RdmaPassiveEndpointGroup<RdmaEndpoint>(timeout, maxWR, maxSge, cqSize); group.init(new RawEndpointFactory(group)); return group; }
@Override public void dispatchCqEvent(C endpoint, IbvWC wc) throws IOException { endpoint.dispatchCqEvent(wc); } }
public SendRecvClient(String host, int port, int size, int loop, int recvQueueSize) throws IOException{ this.group = new RdmaPassiveEndpointGroup<SendRecvClient.SendRecvEndpoint>(1, recvQueueSize, 1, recvQueueSize*2); this.group.init(this); this.host = host; this.port = port; this.size = size; this.loop = loop; this.recvQueueSize = recvQueueSize; }
public synchronized IbvPd createProtectionDomain(RdmaEndpoint endpoint) throws IOException { IbvContext context = endpoint.getIdPriv().getVerbs(); return createProtectionDomain(context); }
public final synchronized void allocateResources() throws IOException { if (!isInitialized) { this.pd = group.createProtectionDomainRaw(this); this.cqProcessor = group.createCqProviderRaw(this); this.qp = group.createQpProviderRaw(this); isInitialized = true; init(); connState = CONN_STATE_RESOURCES_ALLOCATED; notifyAll(); } }
public synchronized IbvPd createProtectionDomain(RdmaServerEndpoint<?> endpoint) throws IOException { IbvContext context = endpoint.getIdPriv().getVerbs(); return createProtectionDomain(context); }
synchronized IbvQP createQpProviderRaw(RdmaEndpoint endpoint) throws IOException{ return createQpProvider(clientEndpointMap.get(endpoint.getIdPriv())); }
public synchronized final RdmaServerEndpoint<C> createServerEndpoint() throws IOException{ RdmaCmId idPriv = cmProcessor.createId(RdmaCm.RDMA_PS_TCP); RdmaServerEndpoint<C> ep = new RdmaServerEndpoint<C>(this, idPriv); serverEndpointMap.put(idPriv, ep); return ep; }
public synchronized final C createEndpoint() throws IOException { RdmaCmId idPriv = cmProcessor.createId(RdmaCm.RDMA_PS_TCP); C ep = factory.createEndpoint(idPriv, false); clientEndpointMap.put(idPriv, ep); return ep; }
public ReadServer(String host, int port, int size, int loop) throws IOException{ this.group = new RdmaActiveEndpointGroup<ReadServer.ReadServerEndpoint>(1, false, 128, 4, 128); this.group.init(this); this.host = host; this.port = port; this.size = size; this.loop = loop; }
public synchronized IbvPd createProtectionDomain(C endpoint) throws IOException { return endpointProvider.createProtectionDomain(endpoint); }
public static synchronized RdmaEndpointProvider getEndpointProvider() throws IOException{ if (provider == null){ provider = new RdmaEndpointProvider(); } return provider; }
public RdmaConnParam getConnParam() { return group.getConnParam(); } }
@Override public void close() throws IOException, InterruptedException { super.close(); }
public void allocateResources(C endpoint) throws Exception { endpoint.allocateResources(); }
public SendRecvServer(String host, int port, int size, int loop, int recvQueueSize) throws IOException{ this.group = new RdmaPassiveEndpointGroup<SendRecvServer.SendRecvEndpoint>(1, recvQueueSize, 1, recvQueueSize*2); this.group.init(this); this.host = host; this.port = port; this.size = size; this.loop = loop; this.recvQueueSize = recvQueueSize; }
public synchronized IbvPd createProtectionDomain(RdmaServerEndpoint<C> endpoint) throws IOException { return endpointProvider.createProtectionDomain(endpoint); }
public ReadClient(String host, int port, int size, int loop) throws IOException{ this.group = new RdmaPassiveEndpointGroup<ReadClient.ReadClientEndpoint>(1, 10, 4, 40); this.group.init(this); this.host = host; this.port = port; this.size = size; this.loop = loop; }