Examples of ResultCode


Examples of com.facebook.swift.service.ResultCode

    {
        TestServerInfo info = startServer();
        ThriftClientManager clientManager = new ThriftClientManager();

        try (Scribe client = createUnframedClient(clientManager, Scribe.class, info.port).get()) {
            ResultCode result = client.log(Lists.newArrayList(
                    new LogEntry("testCategory", "testMessage")));
            assertEquals(result, ResultCode.OK);
        }

        stopServer(info);
View Full Code Here

Examples of com.netflix.suro.thrift.ResultCode

                        }
                        if (connection == null) {
                            continue;
                        }
                        try {
                            ResultCode result = connection.send(messageSet).getResultCode();
                            System.out.println("result code: " + result);
                            if (result == ResultCode.OK) {
                                break;
                            }
                        } catch (Exception e) {
View Full Code Here

Examples of org.cipango.diameter.ResultCode

    return newType(name, IMS_VENDOR_ID, code, format);
  }
 
  protected static ResultCode newImsResultCode(int code, String name)
  {
    return new ResultCode(IMS_VENDOR_ID, code, name);
  }
View Full Code Here

Examples of org.cipango.diameter.ResultCode

              AVPList expRc = message.get(Common.EXPERIMENTAL_RESULT);
              code = expRc.getValue(Common.EXPERIMENTAL_RESULT_CODE);
              vendorId = expRc.getValue(Common.VENDOR_ID);
            }
           
            ResultCode rc = Dictionary.getInstance().getResultCode(vendorId, code);
            if (rc == null)
              rc = Factory.newResultCode(vendorId, code, "Unknown");
           
            ((DiameterAnswer) message).setResultCode(rc);
          }
View Full Code Here

Examples of org.nasutekds.server.types.ResultCode

   */
  public ConfigChangeResult applyConfigurationAdd(RootDNUserCfg configuration)
  {
    configuration.addChangeListener(this);

    ResultCode        resultCode          = ResultCode.SUCCESS;
    boolean           adminActionRequired = false;
    ArrayList<Message> messages            = new ArrayList<Message>();

    HashSet<DN> altBindDNs = new HashSet<DN>();
    for (DN altBindDN : configuration.getAlternateBindDN())
View Full Code Here

Examples of org.nasutekds.server.types.ResultCode

                                 RootDNUserCfg configuration)
  {
    DirectoryServer.deregisterRootDN(configuration.dn());
    configuration.removeChangeListener(this);

    ResultCode        resultCode          = ResultCode.SUCCESS;
    boolean           adminActionRequired = false;
    ArrayList<Message> messages            = new ArrayList<Message>();

    HashSet<DN> altBindDNs = alternateBindDNs.remove(configuration.dn());
    if (altBindDNs != null)
View Full Code Here

Examples of org.nasutekds.server.types.ResultCode

   * {@inheritDoc}
   */
  public ConfigChangeResult applyConfigurationChange(
                                 RootDNUserCfg configuration)
  {
    ResultCode        resultCode          = ResultCode.SUCCESS;
    boolean           adminActionRequired = false;
    ArrayList<Message> messages            = new ArrayList<Message>();

    HashSet<DN> setDNs = new HashSet<DN>();
    HashSet<DN> addDNs = new HashSet<DN>();
View Full Code Here

Examples of org.nasutekds.server.types.ResultCode

   * {@inheritDoc}
   */
  public ConfigChangeResult applyConfigurationAdd(
                                 PasswordValidatorCfg configuration)
  {
    ResultCode        resultCode          = ResultCode.SUCCESS;
    boolean           adminActionRequired = false;
    ArrayList<Message> messages            = new ArrayList<Message>();

    configuration.addChangeListener(this);

View Full Code Here

Examples of org.nasutekds.server.types.ResultCode

   * {@inheritDoc}
   */
  public ConfigChangeResult applyConfigurationDelete(
                                 PasswordValidatorCfg configuration)
  {
    ResultCode        resultCode          = ResultCode.SUCCESS;
    boolean           adminActionRequired = false;
    ArrayList<Message> messages            = new ArrayList<Message>();

    DirectoryServer.deregisterPasswordValidator(configuration.dn());

View Full Code Here

Examples of org.nasutekds.server.types.ResultCode

   *         configuration.
   */
  public ConfigChangeResult applyConfigurationChange(
                                 ProfilerPluginCfg configuration)
  {
    ResultCode        resultCode          = ResultCode.SUCCESS;
    boolean           adminActionRequired = false;
    ArrayList<Message> messages            = new ArrayList<Message>();

    currentConfig = configuration;

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.