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.
|
@Nullable GridDeployment |
explicitDeploy(Class<?> cls,
ClassLoader clsLdr)
Explicitly deploys class.
|
void |
explicitUndeploy(UUID nodeId,
String rsrcName) |
@Nullable GridDeployment |
getDeployment(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.
|
GridDeployment |
searchDeploymentCache(GridDeploymentMetadata meta) |
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 GridDeploymentStoreIgniteCheckedException - If callback execution failed.public void onKernalStop()
onKernalStop in interface GridDeploymentStorepublic Collection<GridDeployment> getDeployments()
public GridDeployment getDeployment(IgniteUuid ldrId)
ldrId - Class loader ID.null if not found.public GridDeployment searchDeploymentCache(GridDeploymentMetadata meta)
meta - Deployment meatdata.null otherwise.@Nullable public @Nullable GridDeployment getDeployment(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 @Nullable GridDeployment explicitDeploy(Class<?> cls, ClassLoader clsLdr) throws IgniteCheckedException
explicitDeploy in interface GridDeploymentStorecls - 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 Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021