点燃连接到服务器的客户端
ignite client connecting to the server
this is my code:
ClientConfiguration cfg = new ClientConfiguration()
.setAddresses("127.0.0.1:10800")
.setUserName("ignite")
.setUserPassword("ignite");
IgniteClient client = Ignition.startClient(cfg);
this is my output:
[12:24:58,906][SEVERE][grid-nio-worker-client-listener-0-#29][ClientListenerProcessor] Failed to process selector key [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192], super=AbstractNioClientWorker [idx=0, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-client-listener-0, igniteInstanceName=null, finished=false, heartbeatTs=1582872897852, hashCode=106881139, interrupted=false, runner=grid-nio-worker-client-listener-0-#29]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/127.0.0.1:10800, rmtAddr=/127.0.0.1:65151, createTime=1582872897767, closeTime=0, bytesSent=75, bytesRcvd=33, bytesSent0=75, bytesRcvd0=33, sndSchedTime=1582872897852, lastSndTime=1582872897852, lastRcvTime=1582872897852, readsPaused=false, filterChain=FilterChain[filters=[GridNioAsyncNotifyFilter, GridNioCodecFilter [parser=ClientListenerBufferedParser, directMode=false]], accepted=true, markedForClose=false]]]
如果您将连接扔在地上,即打开它,永远不要关闭和终止您的程序(或让它被 GC 回收),这是预期的输出。
this is my code:
ClientConfiguration cfg = new ClientConfiguration()
.setAddresses("127.0.0.1:10800")
.setUserName("ignite")
.setUserPassword("ignite");
IgniteClient client = Ignition.startClient(cfg);
this is my output: [12:24:58,906][SEVERE][grid-nio-worker-client-listener-0-#29][ClientListenerProcessor] Failed to process selector key [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192], super=AbstractNioClientWorker [idx=0, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-client-listener-0, igniteInstanceName=null, finished=false, heartbeatTs=1582872897852, hashCode=106881139, interrupted=false, runner=grid-nio-worker-client-listener-0-#29]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/127.0.0.1:10800, rmtAddr=/127.0.0.1:65151, createTime=1582872897767, closeTime=0, bytesSent=75, bytesRcvd=33, bytesSent0=75, bytesRcvd0=33, sndSchedTime=1582872897852, lastSndTime=1582872897852, lastRcvTime=1582872897852, readsPaused=false, filterChain=FilterChain[filters=[GridNioAsyncNotifyFilter, GridNioCodecFilter [parser=ClientListenerBufferedParser, directMode=false]], accepted=true, markedForClose=false]]]
如果您将连接扔在地上,即打开它,永远不要关闭和终止您的程序(或让它被 GC 回收),这是预期的输出。