public class TransportFactory extends Object
TransportFactory.ConnectorCreator before use.| Modifier and Type | Class and Description |
|---|---|
static interface |
TransportFactory.ConnectorCreator
Defines an internal factory implementation to create connectors.
|
| Modifier and Type | Field and Description |
|---|---|
private static TransportFactory.ConnectorCreator |
dmCreator |
private static boolean |
initialized |
private static TransportFactory.ConnectorCreator |
ipcCreator |
private static TransportFactory.ConnectorCreator |
mainCreator |
| Constructor and Description |
|---|
TransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
static TransportConnector |
createConnector()
Creates a connector instance.
|
static TransportConnector |
createDirectMemoryConnector()
Creates a direct memory transfer connector instance.
|
static TransportConnector |
createIpcConnector()
Creates an inter-process connector.
|
static String |
getConnectorName()
Returns the descriptive name of the main connector.
|
private static TransportFactory.ConnectorCreator |
getCreator(TransportFactory.ConnectorCreator creator,
TransportFactory.ConnectorCreator dflt)
Returns either
creator if not null or dflt. |
private static void |
initialize()
Initializes the factory if not already done.
|
static TransportFactory.ConnectorCreator |
setDmImplementation(TransportFactory.ConnectorCreator inst)
Changes the direct memory factory implementation.
|
static TransportFactory.ConnectorCreator |
setIpcImplementation(TransportFactory.ConnectorCreator inst)
Changes the inter-process factory implementation.
|
static TransportFactory.ConnectorCreator |
setMainImplementation(TransportFactory.ConnectorCreator inst)
Changes the main factory implementation.
|
private static TransportFactory.ConnectorCreator mainCreator
private static TransportFactory.ConnectorCreator ipcCreator
private static TransportFactory.ConnectorCreator dmCreator
private static boolean initialized
public static TransportFactory.ConnectorCreator setMainImplementation(TransportFactory.ConnectorCreator inst)
inst - the factory implementation instance (ignored if null)public static TransportFactory.ConnectorCreator setIpcImplementation(TransportFactory.ConnectorCreator inst)
inst - the factory implementation instance (ignored if null)public static TransportFactory.ConnectorCreator setDmImplementation(TransportFactory.ConnectorCreator inst)
inst - the factory implementation instance (ignored if null)private static void initialize()
private static TransportFactory.ConnectorCreator getCreator(TransportFactory.ConnectorCreator creator, TransportFactory.ConnectorCreator dflt)
creator if not null or dflt.creator - the primary creator to return (if not null)dflt - the default creator to return if the primary creator is not presentcreator or dfltpublic static TransportConnector createConnector()
public static TransportConnector createIpcConnector()
public static TransportConnector createDirectMemoryConnector()
public static String getConnectorName()
Copyright © 2022. All rights reserved.