Skip to content

Commit 3b84fa0

Browse files
committed
refactor: remove unused. add some javadocs
1 parent 9c2e58b commit 3b84fa0

File tree

19 files changed

+124
-368
lines changed

19 files changed

+124
-368
lines changed

codegen/src/main/resources/META-INF/vertx/json-mappers.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@ java.time.Instant.serializer=spp.protocol.marshall.ProtocolMarshaller#serializeI
22
java.time.Instant.deserializer=spp.protocol.marshall.ProtocolMarshaller#deserializeInstant
33
spp.protocol.instrument.LiveInstrument.serializer=spp.protocol.marshall.ProtocolMarshaller#serializeLiveInstrument
44
spp.protocol.instrument.LiveInstrument.deserializer=spp.protocol.marshall.ProtocolMarshaller#deserializeLiveInstrument
5-
spp.protocol.platform.auth.ClientAccess.serializer=spp.protocol.marshall.ProtocolMarshaller#serializeClientAccess
6-
spp.protocol.platform.auth.ClientAccess.deserializer=spp.protocol.marshall.ProtocolMarshaller#deserializeClientAccess
75
spp.protocol.platform.auth.RolePermission.serializer=spp.protocol.marshall.ProtocolMarshaller#serializeRolePermission
86
spp.protocol.platform.auth.RolePermission.deserializer=spp.protocol.marshall.ProtocolMarshaller#deserializeRolePermission

src/main/kotlin/spp/protocol/SourceServices.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package spp.protocol
1818

1919
/**
20-
* todo: description.
20+
* Back-end services available to developers.
2121
*
2222
* @since 0.2.1
2323
* @author [Brandon Fergerson](mailto:bfergerson@apache.org)

src/main/kotlin/spp/protocol/artifact/LocalArtifact.kt

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/main/kotlin/spp/protocol/artifact/QueryTimeFrame.kt

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/main/kotlin/spp/protocol/artifact/log/LogCountSummary.kt

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/main/kotlin/spp/protocol/artifact/metrics/MetricType.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ import java.util.function.Predicate
2727
* @author [Brandon Fergerson](mailto:bfergerson@apache.org)
2828
*/
2929
@DataObject
30-
data class MetricType(
31-
val metricId: String,
32-
) {
30+
data class MetricType(val metricId: String) {
3331

3432
companion object {
3533
val Endpoint_CPM = MetricType("endpoint_cpm")

src/main/kotlin/spp/protocol/instrument/DurationStep.kt

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/main/kotlin/spp/protocol/instrument/throttle/HitThrottle.kt

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/main/kotlin/spp/protocol/instrument/throttle/InstrumentThrottle.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
package spp.protocol.instrument.throttle
1818

1919
import io.vertx.core.json.JsonObject
20+
import spp.protocol.instrument.LiveInstrument
2021

2122
/**
22-
* todo: description.
23+
* Used to throttle the frequency of [LiveInstrument] executions inside a live probe.
2324
*
2425
* @since 0.3.0
2526
* @author [Brandon Fergerson](mailto:bfergerson@apache.org)

src/main/kotlin/spp/protocol/instrument/throttle/ThrottleStep.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package spp.protocol.instrument.throttle
1818

1919
/**
20-
* todo: description.
20+
* Represents a time step for throttling.
2121
*
2222
* @since 0.3.0
2323
* @author [Brandon Fergerson](mailto:bfergerson@apache.org)

src/main/kotlin/spp/protocol/instrument/variable/LiveVariable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import io.vertx.codegen.annotations.DataObject
2020
import io.vertx.core.json.JsonObject
2121

2222
/**
23-
* todo: description.
23+
* Holds the serialized state of a variable encountered in a live probe.
2424
*
2525
* @since 0.3.0
2626
* @author [Brandon Fergerson](mailto:bfergerson@apache.org)

src/main/kotlin/spp/protocol/instrument/variable/LiveVariableScope.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package spp.protocol.instrument.variable
1818

1919
/**
20-
* todo: description.
20+
* Represents the scope of a variable encountered in a live probe.
2121
*
2222
* @since 0.3.0
2323
* @author [Brandon Fergerson](mailto:bfergerson@apache.org)

src/main/kotlin/spp/protocol/marshall/ProtocolMarshaller.kt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import io.vertx.core.json.Json
2323
import io.vertx.core.json.JsonObject
2424
import io.vertx.core.json.jackson.DatabindCodec
2525
import spp.protocol.instrument.*
26-
import spp.protocol.platform.auth.ClientAccess
2726
import spp.protocol.platform.auth.RolePermission
2827
import java.time.Instant
2928

@@ -75,19 +74,6 @@ object ProtocolMarshaller {
7574
}
7675
}
7776

78-
@JvmStatic
79-
fun serializeClientAccess(value: ClientAccess): JsonObject {
80-
return JsonObject(Json.encode(value))
81-
}
82-
83-
@JvmStatic
84-
fun deserializeClientAccess(value: JsonObject): ClientAccess {
85-
return ClientAccess(
86-
value.getString("id"),
87-
value.getString("secret")
88-
)
89-
}
90-
9177
@JvmStatic
9278
fun serializeRolePermission(value: RolePermission): String {
9379
return value.name

src/main/kotlin/spp/protocol/portal/PortalConfiguration.kt

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/main/kotlin/spp/protocol/service/listen/LiveInstrumentEventListener.kt

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/main/kotlin/spp/protocol/view/LiveView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import spp.protocol.artifact.ArtifactQualifiedName
2323
import spp.protocol.instrument.LiveSourceLocation
2424

2525
/**
26-
* todo: description.
26+
* A back-end subscription to events/metrics for a given set of entities.
2727
*
2828
* @since 0.3.0
2929
* @author [Brandon Fergerson](mailto:bfergerson@apache.org)

src/main/kotlin/spp/protocol/view/LiveViewConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import io.vertx.codegen.annotations.DataObject
2020
import io.vertx.core.json.JsonObject
2121

2222
/**
23-
* todo: description.
23+
* Additional configuration for a [LiveView].
2424
*
2525
* @since 0.3.0
2626
* @author [Brandon Fergerson](mailto:bfergerson@apache.org)

src/main/kotlin/spp/protocol/view/LiveViewEvent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import io.vertx.core.json.JsonObject
2121
import spp.protocol.artifact.ArtifactQualifiedName
2222

2323
/**
24-
* todo: description.
24+
* An event that occurred in a [LiveView].
2525
*
2626
* @since 0.3.0
2727
* @author [Brandon Fergerson](mailto:bfergerson@apache.org)

0 commit comments

Comments
 (0)