Class Broker.BrokerCreator
java.lang.Object
de.iip_ecosphere.platform.services.environment.services.Broker.BrokerCreator
- Enclosing class:
Broker
Broker creator.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.iip_ecosphere.platform.support.ServercreateInstance(de.iip_ecosphere.platform.support.ServerAddress addr) Creates a server instance.de.iip_ecosphere.platform.transport.connectors.TransportConnectorReturns an associated (disconnected) transport connector instance.Returns the archive/packed configuration location.Returns the name of the default binder determining the broker to start.Returns the config property determining the local port.intReturns the default port.Returns the unpacked configuration location.booleanhandlesBinder(String name) Returns whether this broker handles the given binder name.booleanisTls()Whether we rely on TLS for transport encryption.
-
Field Details
-
location
-
className
-
transportConnectorClsName
-
configProperty
-
binderName
-
defaultPort
private int defaultPort
-
-
Constructor Details
-
BrokerCreator
public BrokerCreator(String location, String configProperty, String className, String transportConnectorClsName, int defaultPort, String... binderName) Creates a type constant.- Parameters:
location- the server configuration location within the executing JAR, may be null or empty for noneconfigProperty- the config property determining the local portclassName- the name of the server class, created dynamically due to potential newer libs than JDK 1.8, requires a constructor with ServerAddress as parametertransportConnectorClsName- the name of the transport connectordefaultPort- the default network portbinderName- the name(s) of the default binder determining the broker to start
-
-
Method Details
-
getArchiveLocation
Returns the archive/packed configuration location.- Returns:
- the server configuration location within the executing JAR, may be null or empty for none
-
getUnpackedLocation
Returns the unpacked configuration location.- Returns:
- the server configuration location in development setup, may be null or empty for none
-
getBinderName
Returns the name of the default binder determining the broker to start.- Returns:
- the name of the default binder
-
handlesBinder
Returns whether this broker handles the given binder name.- Parameters:
name- the binder name- Returns:
truefor handles,falsefor not supported
-
getConfigProperty
Returns the config property determining the local port.- Returns:
- the config property
-
getDefaultPort
public int getDefaultPort()Returns the default port.- Returns:
- the default port
-
createInstance
public de.iip_ecosphere.platform.support.Server createInstance(de.iip_ecosphere.platform.support.ServerAddress addr) Creates a server instance.- Parameters:
addr- the server address- Returns:
- the server instance
-
createTransportConnector
public de.iip_ecosphere.platform.transport.connectors.TransportConnector createTransportConnector()Returns an associated (disconnected) transport connector instance.- Returns:
- the instance
-
isTls
public boolean isTls()Whether we rely on TLS for transport encryption.- Returns:
truefor TLS,falsefor plain
-