Home /Modules/java/Recording.sleela

Recording.sleela

lib/java/jdk-25/jdk/jfr/Recording.sleela · 115 line(s) · sleela

<< lib/java/jdk/jfr/Recording.sleela
   SLeeLa Java 28 source envelope.
   Definition: SLeeLa source declaration for the Java type jdk.jfr.Recording.
   Java behavior is supplied through the SLeeLa Java conformance boundary. >>
#sleela 3.0
material;

class Recording {
  < ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- >
  << Eleven catalogued attributes with getter/setter pairs, so a GUI, loader,
     or catalog can read and (where appropriate) override this record.
     Values are faithful to the subject's real origin where publicly known. >>
  String metaVersion = "1.0.0";
  int metaId = 7505;
  String metaAuthor = "Oracle / OpenJDK";
  String metaDate = "2026-10-16";
  String metaCopyright = "GPLv2 with Classpath Exception (OpenJDK)";
  String metaTrademark = "Java";
  String metaCorporation = "Oracle Corporation";
  < metaOrigin: National | <nation> | International | Galactic >
  String metaOrigin = "International";
  String metaBirthDate = "2026-09-29";
  < metaScienceRating: maturity/robustness on a 1..10 scale >
  int metaScienceRating = 9;
  < metaNationalSchedule: a real, citable instrument or "none" >
  String metaNationalSchedule = "OpenJDK (JDK 28 API)";

  String getMetaVersion() { return metaVersion; }
  void setMetaVersion(String v) { metaVersion = v; }
  int getMetaId() { return metaId; }
  void setMetaId(int v) { metaId = v; }
  String getAuthor() { return metaAuthor; }
  void setAuthor(String v) { metaAuthor = v; }
  String getDate() { return metaDate; }
  void setDate(String v) { metaDate = v; }
  String getCopyright() { return metaCopyright; }
  void setCopyright(String v) { metaCopyright = v; }
  String getTrademark() { return metaTrademark; }
  void setTrademark(String v) { metaTrademark = v; }
  String getCorporation() { return metaCorporation; }
  void setCorporation(String v) { metaCorporation = v; }
  String getOrigin() { return metaOrigin; }
  void setOrigin(String v) { metaOrigin = v; }
  String getBirthDate() { return metaBirthDate; }
  void setBirthDate(String v) { metaBirthDate = v; }
  int getScienceRating() { return metaScienceRating; }
  void setScienceRating(int v) { metaScienceRating = v; }
  String getNationalSchedule() { return metaNationalSchedule; }
  void setNationalSchedule(String v) { metaNationalSchedule = v; }
  String javaType = "jdk.jfr.Recording";
  String typeName() { return javaType; }
  boolean available() { return javaType != ""; }
  String construct() { return "java.construct:" + javaType; }
  String invoke(String operation) { return "java.invoke:" + javaType + ":" + operation; }
  String invokeStatic(String operation) { return "java.static:" + javaType + ":" + operation; }

  < ---- BEGIN java implementation ---- >
  < ---- jdk.jfr.Recording accessor contract (generated by tools/jdk_api_accessors.py) ---- >
  << State and accessors whose behavior was observed on the JDK by
     tools/ApiAccessorProbe.java: getters returning a constructor argument,
     the initial state of a property, and setter / getter round trips,
     for every probed constructor that determines all of that state.
     Methods beyond these keep their exact-signature stubs. >>
  long heldSize;
  boolean heldToDisk;
  long heldMaxSize;
  boolean heldDumpOnExit;
  public Recording() { this.heldSize = 0; this.heldToDisk = true; this.heldMaxSize = 0; this.heldDumpOnExit = false; }
  public long getSize() { return this.heldSize; }
  public boolean isToDisk() { return this.heldToDisk; }
  public long getMaxSize() { return this.heldMaxSize; }
  public boolean getDumpOnExit() { return this.heldDumpOnExit; }
  public void setMaxSize(long maxSize) { this.heldMaxSize = maxSize; }
  public void setDumpOnExit(boolean dumpOnExit) { this.heldDumpOnExit = dumpOnExit; }
  public void setToDisk(boolean disk) { this.heldToDisk = disk; }
  < ---- END java implementation ---- >

  < ---- BEGIN java signatures (generated by tools/jdk_api_signatures.py) ---- >
  << Exact Java signatures (from the JDK). A method body that is not yet
     SLeeLa logic throws: AbstractMethodError for an abstract method, else
     UnsupportedOperationException naming the Java signature. >>
  public java.lang.String getName() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.getName()"); }
  public jdk.jfr.Recording copy(boolean stop) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.copy(boolean)"); }
  public void start() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.start()"); }
  public boolean stop() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.stop()"); }
  public void setName(java.lang.String name) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.setName(java.lang.String)"); }
  public long getId() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.getId()"); }
  public jdk.jfr.RecordingState getState() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.getState()"); }
  public void dump(java.nio.file.Path destination) throws java.io.IOException { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.dump(java.nio.file.Path)"); }
  public jdk.jfr.EventSettings enable(java.lang.Class<? extends jdk.jfr.Event> eventClass) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.enable(java.lang.Class<? extends jdk.jfr.Event>)"); }
  public jdk.jfr.EventSettings enable(java.lang.String name) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.enable(java.lang.String)"); }
  public java.time.Duration getDuration() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.getDuration()"); }
  public jdk.jfr.EventSettings disable(java.lang.Class<? extends jdk.jfr.Event> eventClass) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.disable(java.lang.Class<? extends jdk.jfr.Event>)"); }
  public jdk.jfr.EventSettings disable(java.lang.String name) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.disable(java.lang.String)"); }
  public void setMaxAge(java.time.Duration maxAge) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.setMaxAge(java.time.Duration)"); }
  public java.time.Duration getMaxAge() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.getMaxAge()"); }
  public void setSettings(java.util.Map<java.lang.String, java.lang.String> settings) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.setSettings(java.util.Map<java.lang.String, java.lang.String>)"); }
  public java.time.Instant getStopTime() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.getStopTime()"); }
  public void scheduleStart(java.time.Duration delay) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.scheduleStart(java.time.Duration)"); }
  public void setDuration(java.time.Duration duration) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.setDuration(java.time.Duration)"); }
  public void setDestination(java.nio.file.Path destination) throws java.io.IOException { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.setDestination(java.nio.file.Path)"); }
  public java.nio.file.Path getDestination() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.getDestination()"); }
  public java.io.InputStream getStream(java.time.Instant start, java.time.Instant end) throws java.io.IOException { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.getStream(java.time.Instant, java.time.Instant)"); }
  public java.time.Instant getStartTime() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.getStartTime()"); }
  public java.util.Map<java.lang.String, java.lang.String> getSettings() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.getSettings()"); }
  < ---- END java signatures ---- >

  < ---- BEGIN java constructors (generated by tools/jdk_api_signatures.py) ---- >
  << Exact Java constructor signatures (from the JDK). Overload resolution binds a
     call by arity, then best type match. Each body throws
     UnsupportedOperationException until its SLeeLa logic is written. >>
  public Recording(java.util.Map<java.lang.String, java.lang.String> settings) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: jdk.jfr.Recording.<init>(java.util.Map<java.lang.String, java.lang.String>)"); }
  < ---- END java constructors ---- >
}