|
GridGain 2.1.0
Java API Specification |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use GridException | |
|---|---|
| org.gridgain.grid | Start Here
Contains main GridGain API interfaces and classes. |
| org.gridgain.grid.gridify | Start Here
Contains APIs utilized for AOP-based grid-enabling. |
| org.gridgain.grid.loaders.memory |
Contains in-memory loader. |
| org.gridgain.grid.logger.log4j |
Contains Log4j implementation for logging. |
| org.gridgain.grid.marshaller |
Contains marshalling functionality used throughout the system. |
| org.gridgain.grid.marshaller.jboss |
Contains default JBoss Serialization based marshaller. |
| org.gridgain.grid.marshaller.jdk |
Contains JDK java.io based marshaller. |
| org.gridgain.grid.marshaller.xstream |
Contains XStream (http://xstream.codehaus.org/) based marshaller. |
| org.gridgain.grid.spi.failover |
Contains APIs for failover SPI. |
| org.gridgain.grid.spi.loadbalancing |
Contains APIs for load balancing SPI. |
| org.gridgain.grid.spi.loadbalancing.adaptive |
Contains adaptive load balancing SPI. |
| org.gridgain.grid.spi.loadbalancing.affinity |
Contains affinity-based load balancing SPI. |
| org.gridgain.grid.spi.loadbalancing.coherence |
Contains Coherence-based affinity load balancing SPI. |
| org.gridgain.grid.spi.loadbalancing.roundrobin |
Contains default round-robin implementation for load balancing SPI. |
| org.gridgain.grid.thread |
Contains threads-related classes. |
| Uses of GridException in org.gridgain.grid |
|---|
| Subclasses of GridException in org.gridgain.grid | |
|---|---|
class |
GridExecutionRejectedException
This exception defines execution rejection. |
class |
GridTaskCancellationException
This exception indicates that grid task was cancelled. |
class |
GridTaskTimeoutException
This exception indicates that task execution timed out. |
class |
GridTopologyException
This exception is used to indicate error with grid topology (e.g., crashed node, etc.). |
class |
GridUserUndeclaredException
This exception is thrown when user's code throws undeclared runtime exception. |
| Methods in org.gridgain.grid that return GridException | |
|---|---|
GridException |
GridJobResult.getException()
Gets exception produced by execution of remote job, or null if remote execution finished normally and did not produce any exceptions. |
| Methods in org.gridgain.grid that throw GridException | |
|---|---|
void |
GridTaskFuture.cancel()
Cancels this task. |
void |
GridJobSibling.cancel()
Sends a request to cancel this sibling. |
void |
GridSpringBean.deployTask(Class<? extends GridTask> taskCls)
Explicitely deploys given grid task on the local node. |
void |
Grid.deployTask(Class<? extends GridTask> taskCls)
Explicitely deploys given grid task on the local node. |
void |
GridSpringBean.deployTask(Class<? extends GridTask> taskCls,
ClassLoader clsLoader)
Explicitely deploys given grid task on the local node. |
void |
Grid.deployTask(Class<? extends GridTask> taskCls,
ClassLoader clsLoader)
Explicitely deploys given grid task on the local node. |
Serializable |
GridJob.execute()
Executes this job. |
R |
GridTaskFuture.get()
Synchronously waits for task completion and returns task computation result. |
R |
GridTaskFuture.get(long timeout)
Synchronously waits if necessary for at most the given time for task completion and returns task computation result. |
GridNode |
GridLoadBalancer.getBalancedNode(GridJob job,
GridNode... excludeNodes)
Gets the next balanced node according to the underlying load balancing policy. |
Serializable |
GridTaskSession.loadCheckpoint(String key)
Loads job's state previously saved via GridTaskSession.saveCheckpoint(String, Serializable, GridCheckpointScope, long)
method from an underlying storage for a given key. |
Map<? extends GridJob,GridNode> |
GridTaskSplitAdapter.map(List<GridNode> subgrid,
T arg)
This method is called to map or split grid task into multiple grid jobs. |
Map<? extends GridJob,GridNode> |
GridTask.map(List<GridNode> subgrid,
T arg)
This method is called to map or split grid task into multiple grid jobs. |
List<GridEvent> |
GridSpringBean.queryEvents(GridEventFilter filter,
Collection<GridNode> nodes,
long timeout)
Queries all remote nodes for events using passed in filter for event selection. |
List<GridEvent> |
Grid.queryEvents(GridEventFilter filter,
Collection<GridNode> nodes,
long timeout)
Queries all remote nodes for events using passed in filter for event selection. |
R |
GridTask.reduce(List<GridJobResult> results)
Reduces (or aggregates) results received so far into one compound result to be returned to caller via GridTaskFuture.get() method. |
boolean |
GridTaskSession.removeCheckpoint(String key)
Removes previously saved job's state for a given key from an underlying storage. |
GridJobResultPolicy |
GridTask.result(GridJobResult result,
List<GridJobResult> received)
Asynchronous callback invoked every time a result from remote execution is received. |
GridJobResultPolicy |
GridTaskAdapter.result(GridJobResult result,
List<GridJobResult> received)
Default implementation which will wait for all jobs to complete before calling GridTask.reduce(List) method. |
void |
GridTaskSession.saveCheckpoint(String key,
Serializable state)
Saves intermediate state of a job or task to a storage. |
void |
GridTaskSession.saveCheckpoint(String key,
Serializable state,
GridCheckpointScope scope,
long timeout)
Saves intermediate state of a job to a storage. |
void |
GridSpringBean.sendMessage(Collection<GridNode> nodes,
Serializable msg)
Sends a message to a group of remote nodes. |
void |
Grid.sendMessage(Collection<GridNode> nodes,
Serializable msg)
Sends a message to a group of remote nodes. |
void |
GridSpringBean.sendMessage(GridNode node,
Serializable msg)
Sends a message to a remote node. |
void |
Grid.sendMessage(GridNode node,
Serializable msg)
Sends a message to a remote node. |
void |
GridTaskSession.setAttribute(Serializable key,
Serializable val)
Sets session attributed. |
void |
GridTaskSession.setAttributes(Map<? extends Serializable,? extends Serializable> attrs)
Sets task attributes. |
protected abstract Collection<? extends GridJob> |
GridTaskSplitAdapter.split(int gridSize,
T arg)
This is a simplified version of GridTask.map(List, Object) method. |
static Grid |
GridFactory.start()
Starts grid with default configuration. |
static Grid |
GridFactory.start(org.springframework.context.ApplicationContext springCtx)
Starts grid with default configuration. |
static Grid |
GridFactory.start(GridConfiguration cfg)
Starts grid with given configuration. |
static Grid |
GridFactory.start(GridConfiguration cfg,
org.springframework.context.ApplicationContext springCtx)
Starts grid with given configuration. |
static Grid |
GridFactory.start(String springCfgPath)
Starts all grids specified within given Spring XML configuration file. |
static Grid |
GridFactory.start(String springCfgPath,
org.springframework.context.ApplicationContext ctx)
Starts all grids specified within given Spring XML configuration file. |
static Grid |
GridFactory.start(URL springCfgUrl)
Starts all grids specified within given Spring XML configuration file URL. |
static Grid |
GridFactory.start(URL springCfgUrl,
org.springframework.context.ApplicationContext ctx)
Starts all grids specified within given Spring XML configuration file URL. |
void |
GridSpringBean.undeployTask(String taskName)
Makes the best attempt to undeploy a task from the whole grid. |
void |
Grid.undeployTask(String taskName)
Makes the best attempt to undeploy a task from the whole grid. |
| Uses of GridException in org.gridgain.grid.gridify |
|---|
| Methods in org.gridgain.grid.gridify that throw GridException | |
|---|---|
Serializable |
GridifyJobAdapter.execute()
Provides default implementation for execution of grid-enabled methods. |
boolean |
GridifyInterceptor.isGridify(Gridify gridify,
GridifyArgument arg)
This method is called before actual grid-enabling happens. |
| Uses of GridException in org.gridgain.grid.loaders.memory |
|---|
| Methods in org.gridgain.grid.loaders.memory that throw GridException | |
|---|---|
static void |
GridMemoryLoader.loadGridGain(String springXmlPath)
Deprecated. Loads GridGain with specified Spring XML configuration file and optional grid instance name. |
| Uses of GridException in org.gridgain.grid.logger.log4j |
|---|
| Constructors in org.gridgain.grid.logger.log4j that throw GridException | |
|---|---|
GridLog4jLogger(File cfgFile)
Creates new logger with given configuration cfgFile. |
|
GridLog4jLogger(String path)
Creates new logger with given configuration path. |
|
GridLog4jLogger(URL cfgUrl)
Creates new logger with given configuration cfgUrl. |
|
| Uses of GridException in org.gridgain.grid.marshaller |
|---|
| Methods in org.gridgain.grid.marshaller that throw GridException | ||
|---|---|---|
void |
GridMarshaller.marshal(Object obj,
OutputStream out)
Marshals object to the output stream. |
|
|
GridMarshaller.unmarshal(InputStream in,
ClassLoader clsLoader)
Unmarshals object from the output stream using given class loader. |
|
| Uses of GridException in org.gridgain.grid.marshaller.jboss |
|---|
| Methods in org.gridgain.grid.marshaller.jboss that throw GridException | ||
|---|---|---|
void |
GridJBossMarshaller.marshal(Object obj,
OutputStream out)
Marshals object to the output stream. |
|
|
GridJBossMarshaller.unmarshal(InputStream in,
ClassLoader clsLoader)
Unmarshals object from the output stream using given class loader. |
|
| Uses of GridException in org.gridgain.grid.marshaller.jdk |
|---|
| Methods in org.gridgain.grid.marshaller.jdk that throw GridException | ||
|---|---|---|
void |
GridJdkMarshaller.marshal(Object obj,
OutputStream out)
Marshals object to the output stream. |
|
|
GridJdkMarshaller.unmarshal(InputStream in,
ClassLoader clsLoader)
Unmarshals object from the output stream using given class loader. |
|
| Uses of GridException in org.gridgain.grid.marshaller.xstream |
|---|
| Methods in org.gridgain.grid.marshaller.xstream that throw GridException | ||
|---|---|---|
void |
GridXstreamMarshaller.marshal(Object obj,
OutputStream out)
Marshals object to the output stream. |
|
|
GridXstreamMarshaller.unmarshal(InputStream in,
ClassLoader clsLoader)
Unmarshals object from the output stream using given class loader. |
|
| Uses of GridException in org.gridgain.grid.spi.failover |
|---|
| Methods in org.gridgain.grid.spi.failover that throw GridException | |
|---|---|
GridNode |
GridFailoverContext.getBalancedNode(List<GridNode> top)
Gets the next balanced node for failed job. |
| Uses of GridException in org.gridgain.grid.spi.loadbalancing |
|---|
| Methods in org.gridgain.grid.spi.loadbalancing that throw GridException | |
|---|---|
GridNode |
GridLoadBalancingSpi.getBalancedNode(GridTaskSession ses,
List<GridNode> top,
GridJob job)
Gets balanced node for specified job within given task session. |
| Uses of GridException in org.gridgain.grid.spi.loadbalancing.adaptive |
|---|
| Methods in org.gridgain.grid.spi.loadbalancing.adaptive that throw GridException | |
|---|---|
GridNode |
GridAdaptiveLoadBalancingSpi.getBalancedNode(GridTaskSession ses,
List<GridNode> top,
GridJob job)
Gets balanced node for specified job within given task session. |
| Uses of GridException in org.gridgain.grid.spi.loadbalancing.affinity |
|---|
| Methods in org.gridgain.grid.spi.loadbalancing.affinity that throw GridException | |
|---|---|
GridNode |
GridAffinityLoadBalancingSpi.getBalancedNode(GridTaskSession ses,
List<GridNode> top,
GridJob job)
Gets balanced node for specified job within given task session. |
| Uses of GridException in org.gridgain.grid.spi.loadbalancing.coherence |
|---|
| Methods in org.gridgain.grid.spi.loadbalancing.coherence that throw GridException | |
|---|---|
GridNode |
GridCoherenceLoadBalancingSpi.getBalancedNode(GridTaskSession ses,
List<GridNode> top,
GridJob job)
Gets balanced node for specified job within given task session. |
| Uses of GridException in org.gridgain.grid.spi.loadbalancing.roundrobin |
|---|
| Methods in org.gridgain.grid.spi.loadbalancing.roundrobin that throw GridException | |
|---|---|
GridNode |
GridRoundRobinLoadBalancingSpi.getBalancedNode(GridTaskSession ses,
List<GridNode> top,
GridJob job)
Gets balanced node for specified job within given task session. |
| Uses of GridException in org.gridgain.grid.thread |
|---|
| Constructors in org.gridgain.grid.thread that throw GridException | |
|---|---|
GridWorkManagerExecutorService(String jndiName)
Creates new instance of execution service based on CommonJ implementation. |
|
|
GridGain 2.1.0
Java API Specification |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
|
GridGain - Grid Computing Made Simple, ver. 2.1.0.19122008
2005-2008 Copyright © GridGain Systems. All Rights Reserved. |
|
|