Examples of RpcServer


Examples of org.apache.hadoop.hbase.ipc.RpcServer

    // if running at region
    if (env instanceof RegionCoprocessorEnvironment) {
      RegionCoprocessorEnvironment regionEnv =
          (RegionCoprocessorEnvironment)env;
      RpcServer server = regionEnv.getRegionServerServices().getRpcServer();
      if (server instanceof SecureServer) {
        SecretManager mgr = ((SecureServer)server).getSecretManager();
        if (mgr instanceof AuthenticationTokenSecretManager) {
          secretManager = (AuthenticationTokenSecretManager)mgr;
        }
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.RpcServer

    conf.set(HBaseRPC.RPC_ENGINE_PROP, SecureRpcEngine.class.getName());
    conf.set("hbase.coprocessor.region.classes",
        IdentityCoprocessor.class.getName());
    TEST_UTIL.startMiniCluster();
    HRegionServer rs = TEST_UTIL.getMiniHBaseCluster().getRegionServer(0);
    RpcServer server = rs.getRpcServer();
    assertTrue(server instanceof SecureServer);
    SecretManager mgr =
        ((SecureServer)server).getSecretManager();
    assertTrue(mgr instanceof AuthenticationTokenSecretManager);
    secretManager = (AuthenticationTokenSecretManager)mgr;
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.RpcServer

    InetSocketAddress isa = new InetSocketAddress("localhost", 0);
    TestDelayedImplementation instance = new TestDelayedImplementation(delayReturnValue);
    BlockingService service =
        TestDelayedRpcProtos.TestDelayedService.newReflectiveBlockingService(instance);

    rpcServer = new RpcServer(null, "testSecuredDelayedRpc",
        Lists.newArrayList(new RpcServer.BlockingServiceAndInterface(service, null)),
          isa, conf, new FifoRpcScheduler(conf, 1));
    rpcServer.start();
    RpcClient rpcClient = new RpcClient(conf, HConstants.DEFAULT_CLUSTER_ID.toString());
    try {
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.RpcServer

    }
    priority = new AnnotationReadingPriorityFunction(this);
    String name = rs.getProcessName() + "/" + initialIsa.toString();
    // Set how many times to retry talking to another server over HConnection.
    ConnectionUtils.setServerSideHConnectionRetriesConfig(rs.conf, name, LOG);
    rpcServer = new RpcServer(rs, name, getServices(),
      initialIsa, // BindAddress is IP we got for this server.
      rs.conf,
      rpcSchedulerFactory.create(rs.conf, this));

    scannerLeaseTimeoutPeriod = rs.conf.getInt(
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.RpcServer

    conf.set(HBaseRPC.RPC_ENGINE_PROP, SecureRpcEngine.class.getName());
    conf.set("hbase.coprocessor.region.classes",
        IdentityCoprocessor.class.getName());
    TEST_UTIL.startMiniCluster();
    HRegionServer rs = TEST_UTIL.getMiniHBaseCluster().getRegionServer(0);
    RpcServer server = rs.getRpcServer();
    assertTrue(server instanceof SecureServer);
    SecretManager mgr =
        ((SecureServer)server).getSecretManager();
    assertTrue(mgr instanceof AuthenticationTokenSecretManager);
    secretManager = (AuthenticationTokenSecretManager)mgr;
View Full Code Here

Examples of org.robotninjas.protobuf.netty.server.RpcServer

  protected void configure() {

    bind(NioEventLoopGroup.class)
        .toInstance(eventLoopGroup);

    RpcServer rpcServer = new RpcServer(eventLoopGroup, saddr);

    bind(RpcServer.class)
        .toInstance(rpcServer);
    expose(RpcServer.class);
View Full Code Here

Examples of railo.runtime.net.rpc.server.RPCServer

     * @param clazz
     * @return
     */
    private static Class registerTypeMapping(Class clazz) throws AxisFault {
      PageContext pc = ThreadLocalPageContext.get();
      RPCServer server=RPCServer.getInstance(pc.getId(),pc.getServletContext());
    return registerTypeMapping(server, clazz);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.