Interface GridDeploymentStore
-
- All Known Implementing Classes:
GridDeploymentPerLoaderStore,GridDeploymentPerVersionStore
public interface GridDeploymentStoreInterface for all deployment stores.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddParticipants(Map<UUID,IgniteUuid> allParticipants, Map<UUID,IgniteUuid> addedParticipants)Adds participants to all deployments.GridDeploymentexplicitDeploy(Class<?> cls, ClassLoader clsLdr)Explicitly deploys class.voidexplicitUndeploy(@Nullable UUID nodeId, String rsrcName)@Nullable GridDeploymentgetDeployment(GridDeploymentMetadata meta)@Nullable GridDeploymentgetDeployment(IgniteUuid ldrId)Gets class loader based on ID.Collection<GridDeployment>getDeployments()voidonKernalStart()Kernal started callback.voidonKernalStop()Kernel stopping callback.@Nullable GridDeploymentsearchDeploymentCache(GridDeploymentMetadata meta)voidstart()Starts store.voidstop()Stops store.
-
-
-
Method Detail
-
start
void start() throws IgniteCheckedExceptionStarts store.- Throws:
IgniteCheckedException- If start failed.
-
stop
void stop()
Stops store.
-
onKernalStart
void onKernalStart() throws IgniteCheckedExceptionKernal started callback.- Throws:
IgniteCheckedException- If callback execution failed.
-
onKernalStop
void onKernalStop()
Kernel stopping callback.
-
getDeployment
@Nullable @Nullable GridDeployment getDeployment(GridDeploymentMetadata meta)
- Parameters:
meta- Deployment metadata.- Returns:
- Deployment.
-
searchDeploymentCache
@Nullable @Nullable GridDeployment searchDeploymentCache(GridDeploymentMetadata meta)
- Parameters:
meta- Deployment meatdata.- Returns:
- Grid deployment instance if it was finded in cache,
nullotherwise.
-
getDeployment
@Nullable @Nullable GridDeployment getDeployment(IgniteUuid ldrId)
Gets class loader based on ID.- Parameters:
ldrId- Class loader ID.- Returns:
- Class loader of
nullif not found.
-
getDeployments
Collection<GridDeployment> getDeployments()
- Returns:
- All current deployments.
-
explicitDeploy
GridDeployment explicitDeploy(Class<?> cls, ClassLoader clsLdr) throws IgniteCheckedException
Explicitly deploys class.- Parameters:
cls- Class to explicitly deploy.clsLdr- Class loader.- Returns:
- Grid deployment.
- Throws:
IgniteCheckedException- Id deployment failed.
-
explicitUndeploy
void explicitUndeploy(@Nullable @Nullable UUID nodeId, String rsrcName)- Parameters:
nodeId- Optional ID of node that initiated request.rsrcName- Undeploys all deployments that have given
-
addParticipants
void addParticipants(Map<UUID,IgniteUuid> allParticipants, Map<UUID,IgniteUuid> addedParticipants)
Adds participants to all deployments.- Parameters:
allParticipants- All participants to determine which deployments to add to.addedParticipants- Participants to add.
-
-