Package org.glassfish.hk2.runlevel
Class CurrentlyRunningException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.glassfish.hk2.runlevel.CurrentlyRunningException
-
- All Implemented Interfaces:
java.io.Serializable
public class CurrentlyRunningException extends java.lang.RuntimeException
This exception is thrown by proceedTo if there is currently a job being run when proceedTo is called- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private RunLevelFuture
currentJob
private static long
serialVersionUID
For serialization
-
Constructor Summary
Constructors Constructor Description CurrentlyRunningException()
Basic no-arg constructorCurrentlyRunningException(RunLevelFuture runLevelFuture)
Constructor with job that is in progress
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunLevelFuture
getCurrentJob()
Gets the job current in progress
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
For serialization- See Also:
- Constant Field Values
-
currentJob
private transient RunLevelFuture currentJob
-
-
Constructor Detail
-
CurrentlyRunningException
public CurrentlyRunningException()
Basic no-arg constructor
-
CurrentlyRunningException
public CurrentlyRunningException(RunLevelFuture runLevelFuture)
Constructor with job that is in progress- Parameters:
runLevelFuture
- The job currently in progress
-
-
Method Detail
-
getCurrentJob
public RunLevelFuture getCurrentJob()
Gets the job current in progress- Returns:
- The job currently in progress
-
-