Interface GridServiceManager
- All Superinterfaces:
AdminAware, AgentGridComponent, DiscoverableComponent, DumpProvider, GridComponent, LogProviderGridComponent, MachineAware, MetricProvider, OperatingSystemAware, TransportAware, VirtualMachineAware, ZoneAware
- All Known Subinterfaces:
InternalGridServiceManager
- All Known Implementing Classes:
DefaultGridServiceManager
ProcessingUnit
deployments (acting either as primary or backups for a certain processing unit deployment). It
also knows which GridServiceContainers are around to be able to
create ProcessingUnitInstance on them.- Author:
- kimchy
-
Method Summary
Modifier and TypeMethodDescriptionbooleandeleteResource(String resourceName) deleteUndeployedPuData(String puName) Delete data of a given undeployed tiered storage processing unitdeploy(ApplicationDeployment deployment) Deploys an application consisting of one or more processing unit deployments.deploy(ApplicationDeployment deployment, long timeout, TimeUnit timeUnit) Deploys an application consisting of one or more processing unit deployments.deploy(ApplicationConfig applicationConfig) Deploys an application consisting of one or more processing unit deployments.deploy(ApplicationConfig applicationConfig, long timeout, TimeUnit timeUnit) Deploys an application consisting of one or more processing unit deployments.deploy(ProcessingUnitDeployment deployment) Deploys a processing unit based on the processing unit deployment information on the given grid service manager (it will act as the primary GSM for the deployed processing unit).deploy(ProcessingUnitDeployment deployment, long timeout, TimeUnit timeUnit) Deploys a processing unit based on the processing unit deployment information on the given grid service manager (it will act as the primary GSM for the deployed processing unit).deploy(ProcessingUnitConfigHolder puConfigHolder) Deploys a new processing unit based on the specified configurationdeploy(ProcessingUnitConfigHolder puConfigHolder, long timeout, TimeUnit timeUnit) Deploys a new processing unit based on the specified configurationdeploy(SpaceDeployment deployment) Deploys a space based on the space deployment information on the given grid service manager (it will act as the primary GSM for the deployed processing unit).deploy(SpaceDeployment deployment, long timeout, TimeUnit timeUnit) Deploys a space based on the space deployment information on the given grid service manager (it will act as the primary GSM for the deployed processing unit).booleanbooleanisDeployed(String processingUnitName) Determine if this deployment is known to this GSM.voidsetUndeployedInstanceIp(String puName, String instanceId, String ip, boolean validateHost) Set ip of an instance in an undeployed tiered storage processing unit.voidsetUndeployedLeader(String puName, int partitionId, String instanceId) Set leader of a partition in an undeployed tiered storage processing unit.voidDeprecated.Methods inherited from interface AdminAware
getAdminMethods inherited from interface AgentGridComponent
getAgentId, getGridServiceAgent, kill, restartMethods inherited from interface DiscoverableComponent
isDiscoveredMethods inherited from interface DumpProvider
generateDump, generateDumpMethods inherited from interface GridComponent
getUidMethods inherited from interface LogProviderGridComponent
logEntries, logEntriesDirectMethods inherited from interface MachineAware
getMachineMethods inherited from interface MetricProvider
reloadMetricConfigurationMethods inherited from interface OperatingSystemAware
getOperatingSystemMethods inherited from interface TransportAware
getTransportMethods inherited from interface VirtualMachineAware
getVirtualMachine
-
Method Details
-
undeploy
Deprecated.Since 15.5 - use @ProcessingUnit.undeployAsync()instead.Undeploys the processing unit based on its name.// wait for the lookup event of the processing unit by name. ProcessingUnit pu = admin.getProcessingUnits().waitFor("mypuname"); // wait for the lookup event of the grid service manager that manages the processing unit. pu.waitForManaged(); // undeploy the processing unit. pu.undeploy(); -
deploy
ProcessingUnit deploy(ProcessingUnitDeployment deployment) throws ProcessingUnitAlreadyDeployedException Deploys a processing unit based on the processing unit deployment information on the given grid service manager (it will act as the primary GSM for the deployed processing unit).The deployment process will wait indefinitely and return the actual processing unit that can be used.
- Throws:
ProcessingUnitAlreadyDeployedException- - processing unit with the same name has already been deployed.
-
deploy
ProcessingUnit deploy(ProcessingUnitDeployment deployment, long timeout, TimeUnit timeUnit) throws ProcessingUnitAlreadyDeployedException Deploys a processing unit based on the processing unit deployment information on the given grid service manager (it will act as the primary GSM for the deployed processing unit).The deployment process will wait for the given timeout and return the actual processing unit that can be used.
- Throws:
ProcessingUnitAlreadyDeployedException- - processing unit with the same name has already been deployed.
-
deploy
Deploys a space based on the space deployment information on the given grid service manager (it will act as the primary GSM for the deployed processing unit).The deployment process will wait indefinitely and return the actual processing unit that can be used.
Note, deploying just a space is simply deploying a built in processing unit that starts just an embedded space.
-
deploy
ProcessingUnit deploy(SpaceDeployment deployment, long timeout, TimeUnit timeUnit) throws ProcessingUnitAlreadyDeployedException Deploys a space based on the space deployment information on the given grid service manager (it will act as the primary GSM for the deployed processing unit).The deployment process will wait for the given timeout and return the actual processing unit that can be used.
Note, deploying just a space is simply deploying a built in processing unit that starts just an embedded space.
-
deploy
Application deploy(ApplicationDeployment deployment) throws ApplicationAlreadyDeployedException, ProcessingUnitAlreadyDeployedException Deploys an application consisting of one or more processing unit deployments.The deployment process will wait indefinitely
- Returns:
- An application containing the actual processing units that can be used.
- Throws:
ApplicationAlreadyDeployedException- - Application with the same name has already been deployed.ProcessingUnitAlreadyDeployedException- - Processing unit with the same name has already been deployed. Processing Unit names are globally unique (regardless of the application name)
-
deploy
Application deploy(ApplicationDeployment deployment, long timeout, TimeUnit timeUnit) throws ApplicationAlreadyDeployedException, ProcessingUnitAlreadyDeployedException Deploys an application consisting of one or more processing unit deployments.The deployment process will wait for the given timeout
- Returns:
- An application containing the actual processing units that can be used or null if timeout expired.
- Throws:
ApplicationAlreadyDeployedException- - Application with the same name has already been deployed.ProcessingUnitAlreadyDeployedException- - Processing unit with the same name has already been deployed. Processing Unit names are globally unique (regardless of the application name)
-
deploy
Deploys a new processing unit based on the specified configuration- Throws:
ProcessingUnitAlreadyDeployedException- - processing unit with the same name has already been deployed.
-
deploy
Deploys a new processing unit based on the specified configurationThe deployment process will wait for the given timeout and return the actual processing unit that can be used.
- Throws:
ProcessingUnitAlreadyDeployedException- - processing unit with the same name has already been deployed.
-
isDeployed
Determine if this deployment is known to this GSM.- Parameters:
processingUnitName- the name of the deployed processing unit.- Returns:
trueif this deployment is known;falseotherwise.
-
deploy
Deploys an application consisting of one or more processing unit deployments.The deployment process will wait indefinitely
- Returns:
- An application containing the actual processing units that can be used.
- Throws:
ApplicationAlreadyDeployedException- - Application with the same name has already been deployed.ProcessingUnitAlreadyDeployedException- - Processing unit with the same name has already been deployed. Processing Unit names are globally unique (regardless of the application name)
-
deploy
Application deploy(ApplicationConfig applicationConfig, long timeout, TimeUnit timeUnit) throws ApplicationAlreadyDeployedException, ProcessingUnitAlreadyDeployedException Deploys an application consisting of one or more processing unit deployments.The deployment process will wait for the given timeout
- Returns:
- An application configuration containing the actual processing units that can be used or null if timeout expired.
- Throws:
ApplicationAlreadyDeployedException- - Application with the same name has already been deployed.ProcessingUnitAlreadyDeployedException- - Processing unit with the same name has already been deployed. Processing Unit names are globally unique (regardless of the application name)
-
isActiveManager
boolean isActiveManager()- Returns:
trueif managing at least one deployment ;falseotherwise- Since:
- 12.1
-
deleteResource
- Returns:
trueif successfully deleted the resource folder from the deploy folder ;falseotherwise- Since:
- 12.1
-
getUnDeployedPus
List<UndeployedPuMetaData> getUnDeployedPus()- Returns:
- List of persistent undeployed processing units
-
deleteUndeployedPuData
-
setUndeployedLeader
Set leader of a partition in an undeployed tiered storage processing unit.- Throws:
AdminException- - failed to find undeployed processing unit / partition id / instance id
-
setUndeployedInstanceIp
Set ip of an instance in an undeployed tiered storage processing unit.- Throws:
AdminException- - failed to find undeployed processing unit / partition id / instance id
-
ProcessingUnit.undeployAsync()instead.