GigaSpaces XAP 9.7.2 API

org.openspaces.admin.gsm
Interface GridServiceManager

All Superinterfaces:
AdminAware, AgentGridComponent, DiscoverableComponent, DumpProvider, GridComponent, LogProviderGridComponent, MachineAware, OperatingSystemAware, TransportAware, VirtualMachineAware, ZoneAware

public interface GridServiceManager
extends AgentGridComponent, LogProviderGridComponent, DumpProvider

A Grid Service Manager is a manager for 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
 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(ElasticSpaceDeployment deployment)
          Deploys an elastic 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(ElasticSpaceDeployment deployment, long timeout, TimeUnit timeUnit)
          Deploys an elastic 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(ElasticStatefulProcessingUnitDeployment deployment)
          Deploys an elastic processing unit that has an embedded space 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(ElasticStatefulProcessingUnitDeployment deployment, long timeout, TimeUnit timeUnit)
          Deploys an elastic processing unit that has an embedded space 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(ElasticStatelessProcessingUnitDeployment deployment)
          Deploys an elastic processing unit that does not have an embedded space 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(ElasticStatelessProcessingUnitDeployment deployment, long timeout, TimeUnit timeUnit)
          Deploys an elastic processing unit that does not have an embedded space 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(MemcachedDeployment deployment)
          Deploys a memcached 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(MemcachedDeployment deployment, long timeout, TimeUnit timeUnit)
          Deploys a memcached 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(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 The deployment process will wait for the given timeout and return the actual processing unit that can be used.
 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).
 boolean isDeployed(String processingUnitName)
           
 void undeploy(String processingUnitName)
          Undeploys the processing unit based on its name.
 
Methods inherited from interface org.openspaces.admin.AgentGridComponent
getAgentId, getGridServiceAgent, kill, restart
 
Methods inherited from interface org.openspaces.admin.LogProviderGridComponent
logEntries, logEntriesDirect
 
Methods inherited from interface org.openspaces.admin.GridComponent
getUid
 
Methods inherited from interface org.openspaces.admin.DiscoverableComponent
isDiscovered
 
Methods inherited from interface org.openspaces.admin.AdminAware
getAdmin
 
Methods inherited from interface org.openspaces.admin.machine.MachineAware
getMachine
 
Methods inherited from interface org.openspaces.admin.transport.TransportAware
getTransport
 
Methods inherited from interface org.openspaces.admin.os.OperatingSystemAware
getOperatingSystem
 
Methods inherited from interface org.openspaces.admin.vm.VirtualMachineAware
getVirtualMachine
 
Methods inherited from interface org.openspaces.admin.zone.ZoneAware
getZones
 
Methods inherited from interface org.openspaces.admin.dump.DumpProvider
generateDump, generateDump
 

Method Detail

undeploy

void undeploy(String processingUnitName)
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

ProcessingUnit deploy(SpaceDeployment deployment)
                      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 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.

Throws:
ProcessingUnitAlreadyDeployedException

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.

Throws:
ProcessingUnitAlreadyDeployedException

deploy

ProcessingUnit deploy(MemcachedDeployment deployment)
                      throws ProcessingUnitAlreadyDeployedException
Deploys a memcached 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 memcached is simply deploying a built in processing unit that starts / connects to a space (holding the memcached entries) and exposing the memcached protocol.

Throws:
ProcessingUnitAlreadyDeployedException

deploy

ProcessingUnit deploy(MemcachedDeployment deployment,
                      long timeout,
                      TimeUnit timeUnit)
                      throws ProcessingUnitAlreadyDeployedException
Deploys a memcached 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 memcached is simply deploying a built in processing unit that starts / connects to a space (holding the memcached entries) and exposing the memcached protocol.

Throws:
ProcessingUnitAlreadyDeployedException

deploy

ProcessingUnit deploy(ElasticSpaceDeployment deployment)
                      throws ProcessingUnitAlreadyDeployedException
Deploys an elastic 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.

Throws:
ProcessingUnitAlreadyDeployedException

deploy

ProcessingUnit deploy(ElasticSpaceDeployment deployment,
                      long timeout,
                      TimeUnit timeUnit)
                      throws ProcessingUnitAlreadyDeployedException
Deploys an elastic 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.

Throws:
ProcessingUnitAlreadyDeployedException

deploy

ProcessingUnit deploy(ElasticStatefulProcessingUnitDeployment deployment)
                      throws ProcessingUnitAlreadyDeployedException
Deploys an elastic processing unit that has an embedded space 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(ElasticStatefulProcessingUnitDeployment deployment,
                      long timeout,
                      TimeUnit timeUnit)
                      throws ProcessingUnitAlreadyDeployedException
Deploys an elastic processing unit that has an embedded space 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

ProcessingUnit deploy(ElasticStatelessProcessingUnitDeployment deployment)
                      throws ProcessingUnitAlreadyDeployedException
Deploys an elastic processing unit that does not have an embedded space 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(ElasticStatelessProcessingUnitDeployment deployment,
                      long timeout,
                      TimeUnit timeUnit)
                      throws ProcessingUnitAlreadyDeployedException
Deploys an elastic processing unit that does not have an embedded space 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

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

ProcessingUnit deploy(ProcessingUnitConfigHolder puConfigHolder)
Deploys a new processing unit based on the specified configuration

Throws:
ProcessingUnitAlreadyDeployedException - - processing unit with the same name has already been deployed.

deploy

ProcessingUnit deploy(ProcessingUnitConfigHolder puConfigHolder,
                      long timeout,
                      TimeUnit timeUnit)
Deploys a new processing unit based on the specified configuration

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.

isDeployed

boolean isDeployed(String processingUnitName)

deploy

Application deploy(ApplicationConfig applicationConfig)
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)

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.