Package org.glassfish.internal.data
Class EngineInfo<T extends org.glassfish.api.container.Container,U extends org.glassfish.api.deployment.ApplicationContainer<?>>
java.lang.Object
org.glassfish.internal.data.EngineInfo<T,U>
public class EngineInfo<T extends org.glassfish.api.container.Container,U extends org.glassfish.api.deployment.ApplicationContainer<?>>
extends Object
This class holds information about a particular container such as a reference to the sniffer, the container itself
and the list of applications deployed in that container.
- Author:
- Jerome Dochez
-
Constructor Summary
ConstructorsConstructorDescriptionEngineInfo(org.glassfish.hk2.api.ServiceHandle<T> container, org.glassfish.api.container.Sniffer sniffer, ClassLoader cloader) Creates a new ContractProvider info with references to the container, the sniffer and the connector module implementing the ContractProvider/Deployer interfaces. -
Method Summary
Modifier and TypeMethodDescriptionvoidclean(ExtendedDeploymentContext context) Returns the container instanceReturns the deployer instance for this containerorg.glassfish.api.container.SnifferReturns the sniffer associated with this containervoidload(ExtendedDeploymentContext context) voidsetDeployer(org.glassfish.api.deployment.Deployer<T, U> deployer) Sets the deployer associated with this containervoidsetRegistry(ContainerRegistry registry) voidtoString()voidunload(ExtendedDeploymentContext context)
-
Constructor Details
-
EngineInfo
public EngineInfo(org.glassfish.hk2.api.ServiceHandle<T> container, org.glassfish.api.container.Sniffer sniffer, ClassLoader cloader) Creates a new ContractProvider info with references to the container, the sniffer and the connector module implementing the ContractProvider/Deployer interfaces.- Parameters:
container- instance of the containersniffer- sniffer associated with that container
-
-
Method Details
-
getContainer
Returns the container instance- Returns:
- the container instance
-
getSniffer
public org.glassfish.api.container.Sniffer getSniffer()Returns the sniffer associated with this container- Returns:
- the sniffer instance
-
getDeployer
Returns the deployer instance for this container- Returns:
- Deployer instance
-
setDeployer
Sets the deployer associated with this container- Parameters:
deployer-
-
load
-
unload
- Throws:
Exception
-
clean
- Throws:
Exception
-
setRegistry
-
stop
-
toString
-