backtype.storm.drpc
Class DRPCInvocationsClient

java.lang.Object
  extended by backtype.storm.drpc.DRPCInvocationsClient
All Implemented Interfaces:
DistributedRPCInvocations.Iface

public class DRPCInvocationsClient
extends Object
implements DistributedRPCInvocations.Iface


Constructor Summary
DRPCInvocationsClient(String host, int port)
           
 
Method Summary
 void close()
           
 void failRequest(String id)
           
 DRPCRequest fetchRequest(String func)
           
 String getHost()
           
 int getPort()
           
 void result(String id, String result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DRPCInvocationsClient

public DRPCInvocationsClient(String host,
                             int port)
Method Detail

getHost

public String getHost()

getPort

public int getPort()

result

public void result(String id,
                   String result)
            throws org.apache.thrift.TException
Specified by:
result in interface DistributedRPCInvocations.Iface
Throws:
org.apache.thrift.TException

fetchRequest

public DRPCRequest fetchRequest(String func)
                         throws org.apache.thrift.TException
Specified by:
fetchRequest in interface DistributedRPCInvocations.Iface
Throws:
org.apache.thrift.TException

failRequest

public void failRequest(String id)
                 throws org.apache.thrift.TException
Specified by:
failRequest in interface DistributedRPCInvocations.Iface
Throws:
org.apache.thrift.TException

close

public void close()


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.