Beispiel #1
0
  /** @return output message configuration property list */
  @Override
  public List<Property> getOutputMessageProperties() {

    List<Property> propertyList = new ArrayList<Property>();

    // key space
    Property keySpace =
        new Property(CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_KEY_SPACE_NAME);
    keySpace.setDisplayName(
        resourceBundle.getString(
            CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_KEY_SPACE_NAME));
    keySpace.setRequired(true);
    propertyList.add(keySpace);

    // column family
    Property columnFamily =
        new Property(CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_COLUMN_FAMILY_NAME);
    columnFamily.setDisplayName(
        resourceBundle.getString(
            CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_COLUMN_FAMILY_NAME));
    columnFamily.setRequired(true);
    propertyList.add(columnFamily);

    return propertyList;
  }
Beispiel #2
0
  /** @return output adaptor configuration property list */
  @Override
  public List<Property> getOutputAdaptorProperties() {

    List<Property> propertyList = new ArrayList<Property>();

    // set cluster name
    Property clusterName =
        new Property(CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_CLUSTER_NAME);
    clusterName.setDisplayName(
        resourceBundle.getString(
            CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_CLUSTER_NAME));
    clusterName.setRequired(true);
    clusterName.setHint(
        resourceBundle.getString(
            CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_CLUSTER_NAME_HINT));
    propertyList.add(clusterName);

    // set host name
    Property hostName =
        new Property(CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_HOSTNAME);
    hostName.setDisplayName(
        resourceBundle.getString(CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_HOSTNAME));
    hostName.setRequired(true);
    propertyList.add(hostName);

    // set port
    Property port = new Property(CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_PORT);
    port.setDisplayName(
        resourceBundle.getString(CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_PORT));
    port.setRequired(true);
    propertyList.add(port);

    // set user name
    Property userName =
        new Property(CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_USER_NAME);
    userName.setDisplayName(
        resourceBundle.getString(CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_USER_NAME));
    userName.setRequired(true);
    propertyList.add(userName);

    // set password
    Property password =
        new Property(CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_PASSWORD);
    password.setDisplayName(
        resourceBundle.getString(CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_PASSWORD));
    password.setRequired(true);
    password.setSecured(true);
    propertyList.add(password);

    // set index all columns
    Property indexAllColumns =
        new Property(CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_INDEX_ALL_COLUMNS);
    indexAllColumns.setDisplayName(
        resourceBundle.getString(
            CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_INDEX_ALL_COLUMNS));
    indexAllColumns.setOptions(new String[] {"true", "false"});
    indexAllColumns.setDefaultValue("false");
    indexAllColumns.setHint(
        resourceBundle.getString(
            CassandraTransportAdaptorConstants.TRANSPORT_CASSANDRA_INDEX_ALL_COLUMNS_HINT));
    propertyList.add(indexAllColumns);

    return propertyList;
  }