com.ibm.wsspi.collective.repository

Class RepositoryConnectionFactory

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.collective.repository.RepositoryConnectionFactory

  1. public class RepositoryConnectionFactory
  2. extends java.lang.Object
The RepositoryConnectionFactory creates (or retrieves) RepositoryClient and RepositoryMember.

The RepositoryClient or RepositoryMember returned can be held for a reasonable amount of time, and changes to the collective feature configuration will be gracefully handled.

The RepositoryConnectionFactory is also exposed as an OSGi service so that consumers of the service can block until the RepositoryConnectionFactory is ready, that is at least the RepositoryClient and RepositoryMember are available.


Constructor Summary

Constructor and Description
RepositoryConnectionFactory()

Method Summary

Modifier and Type Method and Description
  1. static
  2. RepositoryClient
getRepositoryClient()
Retrieve a RepositoryClient connection.
  1. static
  2. RepositoryMember
getRepositoryMember()
Retrieve a RepositoryMember connection.
  1. RepositoryClient
obtainRepositoryClient()
Instance method used to invoke getRepositoryClient().
  1. RepositoryMember
obtainRepositoryMember()
Instance method used to invoke getRepositoryMember().
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

RepositoryConnectionFactory

  1. public RepositoryConnectionFactory( )

Method Detail

getRepositoryClient

  1. public static RepositoryClient getRepositoryClient( )
Retrieve a RepositoryClient connection.

If no implementation is available, null will be returned and an error message will be logged.

Returns:
RepositoryClient implementation if available, null otherwise.

obtainRepositoryClient

  1. public RepositoryClient obtainRepositoryClient( )
Instance method used to invoke getRepositoryClient().

This method is used for obtaining the RepositoryClient when the RepositoryConnectionFactory is used as a service.

See Also:

getRepositoryMember

  1. public static RepositoryMember getRepositoryMember( )
Retrieve a RepositoryMember connection.

If no implementation is available, null will be returned and an error message will be logged.

Returns:
RepositoryMember implementation if available, null otherwise.

obtainRepositoryMember

  1. public RepositoryMember obtainRepositoryMember( )
Instance method used to invoke getRepositoryMember().

This method is used for obtaining the RepositoryMember when the RepositoryConnectionFactory is used as a service.

See Also: