All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.common.script.test.TestScripting Maven / Gradle / Ivy

package org.bidib.wizard.common.script.test;

import java.util.List;

import org.bidib.wizard.api.script.Scripting;

public interface TestScripting extends Scripting {

    /**
     * Set the string value on the node and handle the chunked responses.
     * 
     * @param uniqueId
     *            the uniqueId of the node
     * @param namespace
     *            the namespace
     * @param index
     *            The index
     * @param value
     *            the string value
     * @param responseTimeout
     *            the response timeout in seconds
     * @param chunkResponseHandler
     *            the chunk response handler
     * 
     * @return the returned string value
     */
    String setStringAndHandleReponse(
        Long uniqueId, int namespace, int index, String value, int responseTimeout,
        final StringChunkResponseHandler chunkResponseHandler);

    /**
     * Find reachable ip address in the provided list of addresses.
     * 
     * @param addresses
     *            list of addresses
     * @param retryCount
     *            the retry count
     * @return reachable ip address or {@code null}
     */
    String findReachableDevice(final List addresses, int retryCount);

    /**
     * Connect the connection.
     * 
     * @param connectionId
     *            the connection id
     */
    void connect(String connectionId, String address);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy