• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SpiNNakerManchester / JavaSpiNNaker / 11799749185

12 Nov 2024 02:51PM UTC coverage: 37.094% (+0.02%) from 37.077%
11799749185

Pull #1208

github

rowleya
Remove the print
Pull Request #1208: Default nmpi quota fix

0 of 11 new or added lines in 3 files covered. (0.0%)

6 existing lines in 2 files now uncovered.

8776 of 23659 relevant lines covered (37.09%)

1.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/SpiNNaker-allocserv/src/main/java/uk/ac/manchester/spinnaker/alloc/nmpi/SessionResponse.java
1
/*
2
 * Copyright (c) 2023 The University of Manchester
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     https://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package uk.ac.manchester.spinnaker.alloc.nmpi;
18

19
import com.fasterxml.jackson.annotation.JsonAnySetter;
20
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
21
import com.fasterxml.jackson.databind.annotation.JsonNaming;
22

23
/**
24
 * A NMPI session response.
25
 */
26
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
UNCOV
27
public class SessionResponse {
×
28
        /** The ID of the session. */
29
        private Integer id;
30

31
        /** A count of how much resource has been used by the job. */
32
        private ResourceUsage resourceUsage;
33

34
        /**
35
         * Get the ID of the session.
36
         *
37
         * @return the id
38
         */
39
        public Integer getId() {
40
                return id;
×
41
        }
42

43
        /**
44
         * Sets the id.
45
         *
46
         * @param id
47
         *            the id to set
48
         */
49
        public void setId(final Integer id) {
50
                this.id = id;
×
51
        }
×
52

53
        /**
54
         * Get the count of how much resource has been used by the job.
55
         *
56
         * @return the resourceUsage
57
         */
58
        public ResourceUsage getResourceUsage() {
NEW
59
                return resourceUsage;
×
60
        }
61

62
        /**
63
         * Sets the resourceUsage.
64
         *
65
         * @param resourceUsage
66
         *            the resourceUsage to set
67
         */
68
        public void setResourceUsage(final ResourceUsage resourceUsage) {
NEW
69
                this.resourceUsage = resourceUsage;
×
NEW
70
        }
×
71

72
        /**
73
         * Used for JSON serialisation; ignores other properties we don't care
74
         * about.
75
         *
76
         * @param name
77
         *            The parameter to set.
78
         * @param value
79
         *            The value to set it to.
80
         * @hidden
81
         */
82
        @JsonAnySetter
83
        public void set(final String name, final Object value) {
84
                // Ignore any other values
85
        }
×
86
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc