Package com.attivio.sdk.service
Class ServiceFactoryFactory
- java.lang.Object
-
- com.attivio.sdk.service.ServiceFactoryFactory
-
public class ServiceFactoryFactory extends java.lang.Object
Factory class for creating an instance of theServiceFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceFactoryFactory.ServiceFactoryError
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ATTIVIO_INTERNAL_TEST_CLASS_RESOURCE
static java.lang.String
ATTIVIO_TEST_FILE_RESOURCE
-
Constructor Summary
Constructors Constructor Description ServiceFactoryFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceFactory
get()
Get an instance of the {@link #com.attivio.sdk.service.ServiceFactory}static ServiceFactory
get(java.lang.Object serviceFactoryParams)
Get an instance of the {@link #com.attivio.sdk.service.ServiceFactory}static ServiceFactory
getRemote(java.lang.String projectName, java.lang.String projectEnvironment, java.lang.String zookeeperConnectionInfo)
Get an instance of the {@link #com.attivio.sdk.service.ServiceFactory}static ServiceFactory
getRemote(java.lang.String projectName, java.lang.String projectEnvironment, java.lang.String zookeeperConnectionInfo, java.lang.Object serviceFactoryParams)
Similar togetRemote(String, String, String)
, but allows for specification of arbitrary service factory parameters.protected static void
init()
-
-
-
Field Detail
-
ATTIVIO_TEST_FILE_RESOURCE
public static final java.lang.String ATTIVIO_TEST_FILE_RESOURCE
- See Also:
- Constant Field Values
-
ATTIVIO_INTERNAL_TEST_CLASS_RESOURCE
public static final java.lang.String ATTIVIO_INTERNAL_TEST_CLASS_RESOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
protected static void init()
-
get
public static ServiceFactory get()
Get an instance of the {@link #com.attivio.sdk.service.ServiceFactory}- Returns:
- serviceFactory
-
get
public static ServiceFactory get(java.lang.Object serviceFactoryParams)
Get an instance of the {@link #com.attivio.sdk.service.ServiceFactory}- Returns:
- serviceFactory
-
getRemote
public static ServiceFactory getRemote(java.lang.String projectName, java.lang.String projectEnvironment, java.lang.String zookeeperConnectionInfo, java.lang.Object serviceFactoryParams)
Similar togetRemote(String, String, String)
, but allows for specification of arbitrary service factory parameters.- Parameters:
projectName
-projectEnvironment
-zookeeperConnectionInfo
-serviceFactoryParams
- The factory parameters for the typeparams.getClass()
and all interfaces provided by the type for this client process. There can be only one set of parameters per type.- Returns:
- ServiceFactory object
-
getRemote
public static ServiceFactory getRemote(java.lang.String projectName, java.lang.String projectEnvironment, java.lang.String zookeeperConnectionInfo)
Get an instance of the {@link #com.attivio.sdk.service.ServiceFactory}- Parameters:
projectName
- The name of the Attivio project from which services should be fetched.projectEnvironment
- The environment of the Attivio project from which services should be fetched.zookeeperConnectionInfo
- The Zookeeper connection information for Attivio project from which services should be fetched. String should be in the format host:port.- Returns:
- ServiceFactory object
-
-