Package org.glassfish.api.admin
Class ProcessEnvironment
- java.lang.Object
-
- org.glassfish.api.admin.ProcessEnvironment
-
@Service @Singleton public class ProcessEnvironment extends Object
Process environment allow access to information related to the execution or process. This is a bit tricky to rely of @Contract/@Service service lookup for this API since different implementations (server, clients, etc..) can be present of the classpath.- Author:
- Jerome Dochez
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProcessEnvironment.ProcessTypeEnumeration of the supported process types Server is the application server ACC is the application client Other is a standalone java.
-
Constructor Summary
Constructors Constructor Description ProcessEnvironment()Default initialization is unkown process environmentProcessEnvironment(ProcessEnvironment.ProcessType type)Creates a process environemnt for the inten
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessEnvironment.ProcessTypegetProcessType()Determine and return the modes in which the code is behaving, like application server or application client modes.
-
-
-
Constructor Detail
-
ProcessEnvironment
public ProcessEnvironment()
Default initialization is unkown process environment
-
ProcessEnvironment
public ProcessEnvironment(ProcessEnvironment.ProcessType type)
Creates a process environemnt for the inten- Parameters:
type- of the execution environemnt
-
-
Method Detail
-
getProcessType
public ProcessEnvironment.ProcessType getProcessType()
Determine and return the modes in which the code is behaving, like application server or application client modes.- Returns:
- the process type
-
-