public interface GridServiceManager extends AgentGridComponent, LogProviderGridComponent, DumpProvider, MetricProvider
ProcessingUnit
deployments (acting either as primary or backups for a certain processing unit deployment). It
also knows which GridServiceContainer
s are around to be able to
create ProcessingUnitInstance
on them.Modifier and Type | Method and Description |
---|---|
boolean |
deleteResource(String resourceName) |
Map<String,String> |
deleteUndeployedPuData(String puName)
Delete data of a given undeployed tiered storage processing unit
|
Application |
deploy(ApplicationConfig applicationConfig)
Deploys an application consisting of one or more processing unit deployments.
|
Application |
deploy(ApplicationConfig applicationConfig,
long timeout,
TimeUnit timeUnit)
Deploys an application consisting of one or more processing unit deployments.
|
Application |
deploy(ApplicationDeployment deployment)
Deploys an application consisting of one or more processing unit deployments.
|
Application |
deploy(ApplicationDeployment deployment,
long timeout,
TimeUnit timeUnit)
Deploys an application consisting of one or more processing unit deployments.
|
ProcessingUnit |
deploy(ProcessingUnitConfigHolder puConfigHolder)
Deploys a new processing unit based on the specified configuration
|
ProcessingUnit |
deploy(ProcessingUnitConfigHolder puConfigHolder,
long timeout,
TimeUnit timeUnit)
Deploys a new processing unit based on the specified configuration
|
ProcessingUnit |
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).
|
ProcessingUnit |
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).
|
ProcessingUnit |
deploy(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).
|
ProcessingUnit |
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).
|
List<UndeployedPuMetaData> |
getUnDeployedPus() |
boolean |
isActiveManager() |
boolean |
isDeployed(String processingUnitName)
Determine if this deployment is known to this GSM.
|
void |
setUndeployedInstanceIp(String puName,
String instanceId,
String ip,
boolean validateHost)
Set ip of an instance in an undeployed tiered storage processing unit.
|
void |
setUndeployedLeader(String puName,
int partitionId,
String instanceId)
Set leader of a partition in an undeployed tiered storage processing unit.
|
void |
undeploy(String processingUnitName)
Deprecated.
Since 15.5 - use @
ProcessingUnit.undeployAsync() instead. |
getAgentId, getGridServiceAgent, kill, restart
logEntries, logEntriesDirect
getUid
isDiscovered
getAdmin
getMachine
getTransport
getOperatingSystem
getVirtualMachine
generateDump, generateDump
reloadMetricConfiguration
@Deprecated void undeploy(String processingUnitName)
ProcessingUnit.undeployAsync()
instead.// 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();
ProcessingUnit deploy(ProcessingUnitDeployment deployment) throws ProcessingUnitAlreadyDeployedException
The deployment process will wait indefinitely and return the actual processing unit that can be used.
ProcessingUnitAlreadyDeployedException
- - processing unit with the same name has
already been deployed.ProcessingUnit deploy(ProcessingUnitDeployment deployment, long timeout, TimeUnit timeUnit) throws ProcessingUnitAlreadyDeployedException
The deployment process will wait for the given timeout and return the actual processing unit that can be used.
ProcessingUnitAlreadyDeployedException
- - processing unit with the same name has
already been deployed.ProcessingUnit deploy(SpaceDeployment deployment) throws ProcessingUnitAlreadyDeployedException
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.
ProcessingUnit deploy(SpaceDeployment deployment, long timeout, TimeUnit timeUnit) throws ProcessingUnitAlreadyDeployedException
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.
Application deploy(ApplicationDeployment deployment) throws ApplicationAlreadyDeployedException, ProcessingUnitAlreadyDeployedException
The deployment process will wait indefinitely
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)Application deploy(ApplicationDeployment deployment, long timeout, TimeUnit timeUnit) throws ApplicationAlreadyDeployedException, ProcessingUnitAlreadyDeployedException
The deployment process will wait for the given timeout
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)ProcessingUnit deploy(ProcessingUnitConfigHolder puConfigHolder)
ProcessingUnitAlreadyDeployedException
- - processing unit with the same name has
already been deployed.ProcessingUnit deploy(ProcessingUnitConfigHolder puConfigHolder, long timeout, TimeUnit timeUnit)
The deployment process will wait for the given timeout and return the actual processing unit that can be used.
ProcessingUnitAlreadyDeployedException
- - processing unit with the same name has
already been deployed.boolean isDeployed(String processingUnitName)
processingUnitName
- the name of the deployed processing unit.true
if this deployment is known; false
otherwise.Application deploy(ApplicationConfig applicationConfig)
The deployment process will wait indefinitely
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)Application deploy(ApplicationConfig applicationConfig, long timeout, TimeUnit timeUnit) throws ApplicationAlreadyDeployedException, ProcessingUnitAlreadyDeployedException
The deployment process will wait for the given timeout
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)boolean isActiveManager()
true
if managing at least one deployment ; false
otherwiseboolean deleteResource(String resourceName)
true
if successfully deleted the resource folder from the deploy folder ;
false
otherwiseList<UndeployedPuMetaData> getUnDeployedPus()
Map<String,String> deleteUndeployedPuData(String puName)
void setUndeployedLeader(String puName, int partitionId, String instanceId)
AdminException
- - failed to find undeployed processing unit / partition id / instance idvoid setUndeployedInstanceIp(String puName, String instanceId, String ip, boolean validateHost)
AdminException
- - failed to find undeployed processing unit / partition id / instance idCopyright © GigaSpaces.