Examples of ConnectorImpl


Examples of org.apache.accumulo.core.client.impl.ConnectorImpl

  }
 
  @Override
  @SuppressWarnings("deprecation")
  public Connector getConnector(String user, ByteBuffer pass) throws AccumuloException, AccumuloSecurityException {
    return new ConnectorImpl(this, user, ByteBufferUtil.toBytes(pass));
  }
View Full Code Here

Examples of org.apache.accumulo.core.client.impl.ConnectorImpl

    return getConnector(CredentialHelper.create(principal, token, getInstanceID()));
  }

  @SuppressWarnings("deprecation")
  private Connector getConnector(TCredentials cred) throws AccumuloException, AccumuloSecurityException {
    return new ConnectorImpl(this, cred);
  }
View Full Code Here

Examples of org.apache.accumulo.core.client.impl.ConnectorImpl

    return getConnector(CredentialHelper.create(principal, token, getInstanceID()));
  }

  @SuppressWarnings("deprecation")
  private Connector getConnector(TCredentials credential) throws AccumuloException, AccumuloSecurityException {
    return new ConnectorImpl(this, credential);
  }
View Full Code Here

Examples of org.apache.accumulo.core.client.impl.ConnectorImpl

    return getConnector(user, ByteBufferUtil.toBytes(pass));
  }

  @Override
  public Connector getConnector(String principal, AuthenticationToken token) throws AccumuloException, AccumuloSecurityException {
    return new ConnectorImpl(this, new Credentials(principal, token));
  }
View Full Code Here

Examples of org.apache.accumulo.core.client.impl.ConnectorImpl

    return (int) ServerConfiguration.getSiteConfiguration().getTimeInMillis(Property.INSTANCE_ZK_TIMEOUT);
  }

  @Override
  public Connector getConnector(String principal, AuthenticationToken token) throws AccumuloException, AccumuloSecurityException {
    return new ConnectorImpl(this, new Credentials(principal, token));
  }
View Full Code Here

Examples of org.apache.accumulo.core.client.impl.ConnectorImpl

    return getConnector(user, TextUtil.getBytes(new Text(pass.toString())));
  }
 
  @Override
  public Connector getConnector(String user, byte[] pass) throws AccumuloException, AccumuloSecurityException {
    return new ConnectorImpl(this, user, pass);
  }
View Full Code Here

Examples of org.apache.tuscany.core.builder.ConnectorImpl

    private ArtifactFactory() {
    }

    public static Connector createConnector() {
        return new ConnectorImpl(createWireService(), null, null, null);
    }
View Full Code Here

Examples of org.apache.tuscany.core.builder.ConnectorImpl

        EasyMock.expect(outbound.getServiceContract()).andReturn(new JavaServiceContract(Foo.class)).atLeastOnce();
        List<OutboundWire> wires = new ArrayList<OutboundWire>();
        wires.add(outbound);
        Map<String, List<OutboundWire>> wireMap = new HashMap<String, List<OutboundWire>>();
        wireMap.put("ref", wires);
        CompositeComponent parent = new CompositeComponentImpl("foo", "foo", null, new ConnectorImpl(), null);
        SystemAtomicComponent source = EasyMock.createMock(SystemAtomicComponent.class);
        EasyMock.expect(source.getScope()).andReturn(Scope.MODULE).atLeastOnce();
        EasyMock.expect(source.getName()).andReturn("source").atLeastOnce();
        EasyMock.expect(source.getServiceInterfaces()).andReturn(services);
        EasyMock.expect(source.getOutboundWires()).andReturn(wireMap);
View Full Code Here

Examples of org.apache.tuscany.core.builder.ConnectorImpl

        List<OutboundWire> wires = new ArrayList<OutboundWire>();
        wires.add(outbound);
        Map<String, List<OutboundWire>> wireMap = new HashMap<String, List<OutboundWire>>();
        wireMap.put("ref", wires);
        CompositeComponent parent = new CompositeComponentImpl("foo", "foo", null, new ConnectorImpl(), null);
        SystemAtomicComponent source = EasyMock.createMock(SystemAtomicComponent.class);
        EasyMock.expect(source.getName()).andReturn("source").atLeastOnce();
        EasyMock.expect(source.getServiceInterfaces()).andReturn(services);
        EasyMock.expect(source.getOutboundWires()).andReturn(wireMap);
        EasyMock.expect(source.isSystem()).andReturn(true).atLeastOnce();
View Full Code Here

Examples of org.apache.tuscany.core.builder.ConnectorImpl

    public void testAtomicWireBuild() throws Exception {
        WorkContext work = new WorkContextImpl();
        ScopeContainer scope = new ModuleScopeContainer(work);
        scope.start();

        Connector connector = new ConnectorImpl();
        SystemComponentBuilder builder = new SystemComponentBuilder();

        CompositeComponent parent = new CompositeComponentImpl(null, null, connector, null);

        ComponentDefinition<SystemImplementation> targetComponentDefinition = MockComponentFactory.createTarget();
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.