Example #1
0
    public void _2_16_Jscan_Async(Disquuun disquuun)
    {
        DisquuunLogger.Log("_2_16_Jscan_Async not yet applied");
        // [<cursor>] [COUNT <count>] [BUSYLOOP] [QUEUE <queue>] [STATE <state1> STATE <state2> ... STATE <stateN>] [REPLY all|id]

        // WaitUntil("", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5);

        // var infoData = disquuun.Info().DEPRICATED_Sync();
        // var infoResult = DisquuunDeserializer.Info(infoData);

        // Assert("", 0, infoResult.jobs.registered_jobs, "not match.");
    }
Example #2
0
    public void _2_17_Pause_Async(Disquuun disquuun)
    {
        DisquuunLogger.Log("_2_17_Pause_Async not yet applied");
        // <queue-name> option1 [option2 ... optionN]

        // WaitUntil("", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5);

        // var pauseData = disquuun.Pause().DEPRICATED_Sync();
        // var pauseResult = DisquuunDeserializer.Info(pauseData);

        // Assert("", 0, pauseResult.jobs.registered_jobs, "not match.");
    }
Example #3
0
    public void _2_14_Show_Async(Disquuun disquuun)
    {
        DisquuunLogger.Log("_2_14_Show_Async not yet applied");
        // <job-id>

        // WaitUntil("", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5);

        // var infoData = disquuun.Info().DEPRICATED_Sync();
        // var infoResult = DisquuunDeserializer.Info(infoData);

        // Assert("", 0, infoResult.jobs.registered_jobs, "not match.");
    }
Example #4
0
    public void _2_15_Qscan_Async(Disquuun disquuun)
    {
        DisquuunLogger.Log("_2_15_Qscan_Async not yet applied");
        // [COUNT <count>] [BUSYLOOP] [MINLEN <len>] [MAXLEN <len>] [IMPORTRATE <rate>]

        // WaitUntil("", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5);

        // var infoData = disquuun.Info().DEPRICATED_Sync();
        // var infoResult = DisquuunDeserializer.Info(infoData);

        // Assert("", 0, infoResult.jobs.registered_jobs, "not match.");
    }
Example #5
0
    public long _1_13_DelJob_Sync(Disquuun disquuun)
    {
        DisquuunLogger.Log("_1_13_DelJob_Sync not yet applied");
        // <job-id> ... <job-id>

        WaitUntil("_1_13_DelJob_Sync", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5);

        // var infoData = disquuun.Info().DEPRICATED_Sync();
        // var infoResult = DisquuunDeserializer.Info(infoData);

        // Assert("", 0, infoResult.jobs.registered_jobs, "not match.");
        return(0);
    }
Example #6
0
    public long _2_10_Qpeek_Async(Disquuun disquuun)
    {
        DisquuunLogger.Log("_2_10_Qpeek_Async not yet applied");
        // <queue-name> <count>

        // WaitUntil("", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5);

        // var infoData = disquuun.Info().DEPRICATED_Sync();
        // var infoResult = DisquuunDeserializer.Info(infoData);

        // Assert("", 0, infoResult.jobs.registered_jobs, "not match.");
        return(0);
    }
Example #7
0
    public void _2_5_Nack_Async(Disquuun disquuun)
    {
        DisquuunLogger.Log("_1_5_Nack_Async not yet applied");
        // WaitUntil("", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5);

        // var queueId = Guid.NewGuid().ToString();
        // var jobId = DisquuunDeserializer.AddJob(
        //  disquuun.AddJob(queueId, new byte[10]).DEPRICATED_Sync()
        // );

        // var result = disquuun.FastAck(new string[]{jobId}).DEPRICATED_Sync();
        // var ackCount = DisquuunDeserializer.FastAck(result);
        // Assert("", 1, ackCount, "not match.");
    }
Example #8
0
    public void _1_10_Qpeek_Sync(Disquuun disquuun)
    {
        DisquuunLogger.Log("_1_10_Qpeek_Sync not yet applied");
        // <queue-name> <count>

        WaitUntil("_1_10_Qpeek_Sync", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5);

        // var queueId = Guid.NewGuid().ToString();
        // var jobId = DisquuunDeserializer.AddJob(
        //  disquuun.AddJob(queueId, new byte[10]).DEPRICATED_Sync()
        // );

        // var data = disquuun.Qpeek(queueId, 1).DEPRICATED_Sync();
        // var infoResult = DisquuunDeserializer.Info(infoData);

        // Assert("", 0, infoResult.jobs.registered_jobs, "not match.");
    }
Example #9
0
    public long _2_4_Working_Async(Disquuun disquuun)
    {
        DisquuunLogger.Log("_1_4_Working_Async not yet applied");
        // WaitUntil("", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5);

        // var queueId = Guid.NewGuid().ToString();
        // var jobId = DisquuunDeserializer.AddJob(
        //  disquuun.AddJob(queueId, data_10).DEPRICATED_Sync()
        // );

        // var workResult = disquuun.Working(jobId).DEPRICATED_Sync();
        // var workingResult = DisquuunDeserializer.Working(workResult);

        // var result = disquuun.FastAck(new string[]{jobId}).DEPRICATED_Sync();
        // var ackCount = DisquuunDeserializer.FastAck(result);
        // Assert("", 1, ackCount, "not match.");
        return(0);
    }