Search in sources :

Example 6 with SmartClientProtocol

use of org.smartdata.protocol.SmartClientProtocol in project SSM by Intel-bigdata.

the class SmartClient method close.

@Override
public void close() {
    if (running) {
        running = false;
        for (SmartClientProtocol server : serverQue) {
            RPC.stopProxy(server);
        }
        serverQue = null;
    }
}
Also used : SmartClientProtocol(org.smartdata.protocol.SmartClientProtocol)

Aggregations

SmartClientProtocol (org.smartdata.protocol.SmartClientProtocol)6 ConnectException (java.net.ConnectException)2 IOException (java.io.IOException)1 InetSocketAddress (java.net.InetSocketAddress)1 ArrayList (java.util.ArrayList)1 LinkedList (java.util.LinkedList)1 Callable (java.util.concurrent.Callable)1 ExecutionException (java.util.concurrent.ExecutionException)1 ExecutorService (java.util.concurrent.ExecutorService)1 Future (java.util.concurrent.Future)1 TimeoutException (java.util.concurrent.TimeoutException)1 NormalFileState (org.smartdata.model.NormalFileState)1 ClientProtocolClientSideTranslator (org.smartdata.protocol.protobuffer.ClientProtocolClientSideTranslator)1 ClientProtocolProtoBuffer (org.smartdata.protocol.protobuffer.ClientProtocolProtoBuffer)1