public class GridDeploymentPerVersionStore extends Object
DeploymentMode.SHARED
and
DeploymentMode.CONTINUOUS
modes.Modifier and Type | Field and Description |
---|---|
protected org.apache.ignite.internal.managers.deployment.GridDeploymentCommunication |
comm
Deployment communication.
|
protected GridKernalContext |
ctx
Kernal context.
|
protected IgniteLogger |
log
Logger.
|
protected DeploymentSpi |
spi
Deployment SPI.
|
Modifier and Type | Method and Description |
---|---|
void |
addParticipants(Map<UUID,IgniteUuid> allParticipants,
Map<UUID,IgniteUuid> addedParticipants)
Adds participants to all deployments.
|
protected void |
clearSerializationCaches()
Clears serialization caches to avoid PermGen memory leaks.
|
GridDeployment |
explicitDeploy(Class<?> cls,
ClassLoader clsLdr)
Explicitly deploys class.
|
void |
explicitUndeploy(UUID nodeId,
String rsrcName) |
GridDeployment |
getDeployment(org.apache.ignite.internal.managers.deployment.GridDeploymentMetadata meta) |
GridDeployment |
getDeployment(IgniteUuid ldrId)
Gets class loader based on ID.
|
Collection<GridDeployment> |
getDeployments() |
protected boolean |
isTask(Class<?> cls) |
void |
onKernalStart()
Kernal started callback.
|
void |
onKernalStop()
Kernel stopping callback.
|
void |
start()
Starts store.
|
protected String |
startInfo() |
void |
stop()
Stops store.
|
protected String |
stopInfo() |
String |
toString() |
protected String |
userVersion(ClassLoader ldr) |
protected final IgniteLogger log
protected final DeploymentSpi spi
protected final GridKernalContext ctx
protected final org.apache.ignite.internal.managers.deployment.GridDeploymentCommunication comm
public void start() throws IgniteCheckedException
IgniteCheckedException
- If start failed.public void stop()
public void onKernalStart() throws IgniteCheckedException
onKernalStart
in interface GridDeploymentStore
IgniteCheckedException
- If callback execution failed.public void onKernalStop()
onKernalStop
in interface GridDeploymentStore
public Collection<GridDeployment> getDeployments()
public GridDeployment getDeployment(IgniteUuid ldrId)
ldrId
- Class loader ID.null
if not found.@Nullable public GridDeployment getDeployment(org.apache.ignite.internal.managers.deployment.GridDeploymentMetadata meta)
meta
- Deployment metadata.public void addParticipants(Map<UUID,IgniteUuid> allParticipants, Map<UUID,IgniteUuid> addedParticipants)
allParticipants
- All participants to determine which deployments to add to.addedParticipants
- Participants to add.public void explicitUndeploy(UUID nodeId, String rsrcName)
nodeId
- Optional ID of node that initiated request.rsrcName
- Undeploys all deployments that have givenpublic String toString()
protected final String startInfo()
protected final String stopInfo()
@Nullable public GridDeployment explicitDeploy(Class<?> cls, ClassLoader clsLdr) throws IgniteCheckedException
explicitDeploy
in interface GridDeploymentStore
cls
- Class to explicitly deploy.clsLdr
- Class loader.IgniteCheckedException
- Id deployment failed.protected final String userVersion(ClassLoader ldr)
ldr
- Class loader.protected final boolean isTask(Class<?> cls)
cls
- Class to check.True
if class is task class.protected final void clearSerializationCaches()
For more information: http://www.szegedi.org/articles/memleak3.html.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017