com.ibm.ia.gateway
Interface GridConnection
-
- All Superinterfaces:
- java.lang.AutoCloseable, java.io.Closeable
public interface GridConnection extends java.io.Closeable
A GridConnection class contains Object Grid connection to the grid specified by GridConfiguration. GridConnection allows communication with multiple Solutions in the same grid. SolutionGateway instance, produced by GridConnection, represents a SolutionGateway for the specified solution connected to the grid. Instances of SolutionGateways are cached until solution upgrade notification is received.
-
-
Method Summary
Methods Modifier and Type Method and Description GridConfiguration
getGridConfiguration()
Returns GridConfiguration object used to establish this GridConnectionSolutionGateway
getSolutionGateway(java.lang.String solutionName)
Provides an instance of the SolutionGateway for specified solution.SolutionGateway
getSolutionGateway(java.lang.String solutionName, java.lang.ClassLoader solutionClassloader)
Provides an instance of the SolutionGateway for specified solution.java.util.Set<java.lang.String>
getSolutions()
Provides solution names of all solutions deployed on the grid
-
-
-
Method Detail
-
getGridConfiguration
GridConfiguration getGridConfiguration()
Returns GridConfiguration object used to establish this GridConnection- Returns:
- GridConfiguration
-
getSolutions
java.util.Set<java.lang.String> getSolutions() throws GatewayException, SolutionException
Provides solution names of all solutions deployed on the grid- Throws:
SolutionException
GatewayException
- Returns:
- set of solution names
-
getSolutionGateway
SolutionGateway getSolutionGateway(java.lang.String solutionName) throws GatewayException
Provides an instance of the SolutionGateway for specified solution. Solution version is not specified as current version of deployed solution "solutionName" is used.- Throws:
GatewayException
- Parameters:
solutionName
- solution Name- Returns:
- SolutionGateway instance
-
getSolutionGateway
SolutionGateway getSolutionGateway(java.lang.String solutionName, java.lang.ClassLoader solutionClassloader) throws GatewayException
Provides an instance of the SolutionGateway for specified solution. Solution version is not specified as current version of deployed solution "solutionName" is used. If the caller The solution ClassLoader allows the a client to provide a ClassLoader and is only needed if solution model interfaces are used when submitting events from inside an OSGi environment. If the client is not uxing solution model interfaces or the client is in a non-OSGi J2SE container, the ClassLoader argument is not necessary.- Throws:
GatewayException
- Parameters:
solutionName
- the solution NamesolutionClassloader
- the solution classloader- Returns:
- SolutionGateway instance
-
-