|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.xs.ra.XSConnectionFactory
public final class XSConnectionFactory
The XSConnectionFactory creates connections to eXtreme Scale ObjectGrids.
Usage example:
InitialContext ctx = new InitialContext(); XSConnectionFactory cf = (XSConnectionFactory) ctx.lookup("java:comp/env/wxsconnection"); XSConnection con = cf.getConnection("MyGrid"); Session ogSession = con.getSession(); ... con.close();For additional examples, see the package documentation.
Constructor Summary | |
---|---|
XSConnectionFactory()
|
Method Summary | |
---|---|
String |
getCatalogServiceDomain()
Get the eXtreme Scale specific property: CatalogDomain |
String |
getCatalogServiceEndpoints()
Get the eXtreme Scale specific property: CatalogServiceEndpoints |
String |
getClientPropertiesResource()
Get the eXtreme Scale specific property: ClientPropertiesResource |
String |
getClientPropertiesURL()
Get the eXtreme Scale specific property: ClientPropertiesURL |
Connection |
getConnection()
Retrieve an XSConnection for the ObjectGrid configured on the ConnectionFactory. |
Connection |
getConnection(ConnectionSpec spec)
Retrieve an XSConnection for the ObjectGrid using the specified XSConnectionSpec properties. |
Connection |
getConnection(String gridName)
Retrieve an XSConnection for the specified ObjectGrid name. |
String |
getConnectionName()
Get the eXtreme Scale specific property: ConnectionName |
ResourceAdapterMetaData |
getMetaData()
Retrieve the metadata information regarding the eXtreme Scale resource adapter |
String |
getObjectGridName()
Get the eXtreme Scale specific property: ObjectGridName |
String |
getObjectGridResource()
Get the eXtreme Scale specific property: ObjectGridResource |
String |
getObjectGridURL()
Get the eXtreme Scale specific property: ObjectGridURL |
RecordFactory |
getRecordFactory()
Retrieve the RecordFactory instance |
Reference |
getReference()
Gets the Reference instance |
boolean |
isLocalGrid()
Get the eXtreme Scale specific property: LocalGrid |
void |
setReference(Reference ref)
Sets the Reference instance |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XSConnectionFactory()
Method Detail |
---|
public void setReference(Reference ref)
ref
- - Reference instanceReferenceable.setReference(Reference)
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
Referenceable.getReference()
public Connection getConnection() throws ResourceException
getConnection
in interface ConnectionFactory
ResourceException
ConnectionFactory.getConnection()
public Connection getConnection(ConnectionSpec spec) throws ResourceException
getConnection
in interface ConnectionFactory
spec
- the XSConnectionSpec
properties used to retrieve the correct connection.
ResourceException
ConnectionFactory.getConnection(ConnectionSpec)
,
XSConnectionSpec
public Connection getConnection(String gridName) throws ResourceException
gridName
- - The ObjectGrid name
ResourceException
public ResourceAdapterMetaData getMetaData() throws ResourceException
getMetaData
in interface ConnectionFactory
ResourceException
ConnectionFactory.getMetaData()
public RecordFactory getRecordFactory() throws ResourceException
getRecordFactory
in interface ConnectionFactory
NotSupportedException
ResourceException
ConnectionFactory.getRecordFactory()
public String toString()
toString
in class Object
public String getCatalogServiceDomain()
public String getCatalogServiceEndpoints()
public String getClientPropertiesResource()
public String getClientPropertiesURL()
public String getConnectionName()
public String getObjectGridName()
public String getObjectGridResource()
public String getObjectGridURL()
public boolean isLocalGrid()
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |