Package edu.wpi.grip.core.util.service
Class LoggingListener
- java.lang.Object
-
- com.google.common.util.concurrent.Service.Listener
-
- edu.wpi.grip.core.util.service.LoggingListener
-
@Immutable public final class LoggingListener extends com.google.common.util.concurrent.Service.Listener
A service listener that will log the service as it transitions between various different states.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.logging.Logger
logger
java.lang.Class<?>
sourceClass
-
Constructor Summary
Constructors Constructor Description LoggingListener(java.util.logging.Logger logger, java.lang.Class<?> sourceClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failed(com.google.common.util.concurrent.Service.State from, java.lang.Throwable throwable)
void
running()
void
starting()
void
stopping(com.google.common.util.concurrent.Service.State from)
void
terminated(com.google.common.util.concurrent.Service.State from)
-
-
-
Method Detail
-
starting
public void starting()
- Overrides:
starting
in classcom.google.common.util.concurrent.Service.Listener
-
running
public void running()
- Overrides:
running
in classcom.google.common.util.concurrent.Service.Listener
-
stopping
public void stopping(@Nullable com.google.common.util.concurrent.Service.State from)
- Overrides:
stopping
in classcom.google.common.util.concurrent.Service.Listener
-
terminated
public void terminated(@Nullable com.google.common.util.concurrent.Service.State from)
- Overrides:
terminated
in classcom.google.common.util.concurrent.Service.Listener
-
failed
public void failed(@Nullable com.google.common.util.concurrent.Service.State from, @Nullable java.lang.Throwable throwable)
- Overrides:
failed
in classcom.google.common.util.concurrent.Service.Listener
-
-