Interface LPCObjectLoadObserver
public interface LPCObjectLoadObserver
Observes host-side LPC object load and compile attempts for diagnostics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LPCObjectLoadObserverObserver that ignores all diagnostic events. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidobjectCompileFailed(String objectId, Path sourcePath, Throwable failure) Called when a source compilation attempt fails with an exception.default voidobjectCompileFinished(String objectId, Path sourcePath, boolean compiled, long elapsedNanos) Called after the runtime finishes a source compilation attempt.default voidobjectCompileStarted(String objectId, Path sourcePath) Called before the runtime compiles a source file throughLPCRuntime.compile(Path).default voidobjectLoadFailed(String objectId, Path sourcePath, int depth, Throwable failure) Called when a shared LPC object load fails with an exception.default voidobjectLoadFinished(String objectId, Path sourcePath, int depth, boolean loaded, long elapsedNanos) Called after the runtime finishes a shared LPC object load attempt.default voidobjectLoadStarted(String objectId, Path sourcePath, int depth) Called before the runtime starts loading a shared LPC object.
-
Field Details
-
NONE
Observer that ignores all diagnostic events.
-
-
Method Details
-
objectLoadStarted
-
objectLoadFinished
default void objectLoadFinished(String objectId, Path sourcePath, int depth, boolean loaded, long elapsedNanos) Called after the runtime finishes a shared LPC object load attempt.- Parameters:
objectId- canonical mudlib object idsourcePath- resolved source pathdepth- nested load depth reported at startloaded- whether the object was loaded or supplied successfullyelapsedNanos- elapsed load time in nanoseconds
-
objectLoadFailed
Called when a shared LPC object load fails with an exception.- Parameters:
objectId- canonical mudlib object idsourcePath- resolved source pathdepth- nested load depth reported at startfailure- exception or error that prevented the load
-
objectCompileStarted
Called before the runtime compiles a source file throughLPCRuntime.compile(Path).- Parameters:
objectId- canonical mudlib object idsourcePath- resolved source path
-
objectCompileFinished
default void objectCompileFinished(String objectId, Path sourcePath, boolean compiled, long elapsedNanos) Called after the runtime finishes a source compilation attempt.- Parameters:
objectId- canonical mudlib object idsourcePath- resolved source pathcompiled- whether compilation completed without reported problemselapsedNanos- elapsed compile time in nanoseconds
-
objectCompileFailed
-