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

WindhoverLabs / phoebus / #96

21 Nov 2023 04:15PM UTC coverage: 16.596% (+0.05%) from 16.544%
#96

push

web-flow
Merge pull request #90 from WindhoverLabs/88_out_of_memory_issues

WIP - 88 out of memory issues

97 of 217 new or added lines in 9 files covered. (44.7%)

4 existing lines in 3 files now uncovered.

17830 of 107434 relevant lines covered (16.6%)

0.17 hits per line

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

33.33
/core/commander-core/src/main/java/com/windhoverlabs/pv/yamcs/YamcsAware.java
1
package com.windhoverlabs.pv.yamcs;
2

3
import com.windhoverlabs.yamcs.core.YamcsServer;
4
import java.time.Instant;
5
import org.yamcs.protobuf.Mdb.SignificanceInfo.SignificanceLevelType;
6
import org.yamcs.protobuf.ProcessorInfo;
7

8
/**
9
 * Marks a component as being aware of the global YamcsObjectManager state. This state includes the
10
 * connected instance and/or processor.
11
 */
12
public interface YamcsAware {
13
  public enum YamcsAwareMethod {
1✔
14
    onYamcsDisconnected,
1✔
15
    changeDefaultInstance,
1✔
16
    onYamcsConnected
1✔
17
  };
18

19
  default void onYamcsObjectManagerInit() {
20
    changeDefaultInstance();
×
21
  }
×
22

23
  // TODO:It might be worth considering passing the YamcsServer/YamcsInstance object to the
24
  // implementors of this function
25
  default void onInstancesReady(YamcsServer s) {}
1✔
26

27
  default void onYamcsConnecting() {}
×
28

29
  // Called when we fail to connect to the server.
30
  default void onYamcsConnectionFailed(Throwable t) {}
×
31

32
  /** Called when we the global connection to yamcs was successfully established */
33
  // TODO:It might worth considering passing the YamcsServer/YamcsInstance object to the
34
  // implementors of this function
35
  default void onYamcsConnected() {}
×
36

37
  /** Called when the yamcs is connection went lost */
UNCOV
38
  default void onYamcsDisconnected() {}
×
39

40
  /** The activated instance has changed. */
41
  default void changeInstance(String instance) {}
×
42

43
  default void changeDefaultInstance() {}
1✔
44

45
  /**
46
   * The globally activated processor has changed. This is always called on the UI thread.
47
   *
48
   * <p>Note that this method is not called if only the instance has changed.
49
   */
50
  default void changeProcessor(String instance, String processor) {}
×
51

52
  default void changeProcessorInfo(ProcessorInfo processor) {}
×
53

54
  /**
55
   * Actual mission time as reported by Yamcs Server. If no time is defined (for example when not
56
   * connected), listeners will receive null
57
   */
58
  default void updateTime(Instant time) {}
×
59

60
  default void updateClearance(boolean enabled, SignificanceLevelType level) {}
×
61

62
  default void updateLink(String link) {}
×
63
}
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

© 2026 Coveralls, Inc