public class TIBHawkConsoleFactory
extends java.lang.Object
Constructor and Description |
---|
TIBHawkConsoleFactory() |
Modifier and Type | Method and Description |
---|---|
TIBHawkConsole |
createHawkConsole(java.util.Map props)
Create a new HawkConsole with given properties
|
static TIBHawkConsoleFactory |
getInstance()
To get an instance of TIBHawkConsoleFactory class.
|
public static TIBHawkConsoleFactory getInstance()
public TIBHawkConsole createHawkConsole(java.util.Map props) throws ConsoleInitializationException, java.io.UnsupportedEncodingException
props
- Configuration map can have below keys:
Property Name | Mandatory | Default | Desciption |
---|---|---|---|
HawkConstants.HAWK_DOMAIN |
No | default | The hawk domain |
HawkConstants.HAWK_TRANSPORT |
No | HawkConstants.HAWK_TRANSPORT_TIBAS |
Choice of transport. Can be one of
HawkConstants.HAWK_TRANSPORT_TIBAS or
HawkConstants.HAWK_TRANSPORT_TIBRV or
HawkConstants.HAWK_TRANSPORT_TIBEMS |
Properties when hawk transport is tibas: | |||
HawkConstants.PROP_AS_LISTEN_URL |
No | <host>:50000 | -listen parameter of ActiveSpaces |
HawkConstants.PROP_AS_DISCOVER_URL |
No | tibpgm://default provided by ActiveSpaces) | -discover parameter of ActiveSpaces |
HawkConstants.PROP_AS_MEMBER_NAME |
No | A unique name generated by ActiveSpaces | Each member can be given a name. Member names have to be unique in the cluster |
HawkConstants.PROP_TRANSPORT_TIMEOUT |
No | 30000 | All internal synchronous communications will use this default timeout in milliseconds |
HawkConstants.PROP_AS_RECEIVE_BUFFER_SIZE |
No | 1000 | Internal memory size allocation in bytes |
HawkConstants.PROP_AS_VIRTUAL_NODE_COUNT |
No | 100 | Internal parameter for even distribution of data in seeders |
HawkConstants.PROP_AS_WORKER_THREAD_COUNT |
No | 32 | Number of threads used by ActiveSpaces API |
HawkConstants.PROP_AS_CONNECTION_RETRY_COUNT |
No | 3 | Maximum number of retry attempts to be made while establishing connection to ActiveSpaces. If configured to zero, then no retry will be made. |
Properties when hawk transport is tibrv: | |||
HawkConstants.RV_SERVICE |
No | 7500 | Rendezvous service name |
HawkConstants.RV_NETWORK |
No | ; | Rendezvous Network |
HawkConstants.RV_DAEMON |
No | tcp:7500 | Rendezvous Deamon |
Properties when hawk transport is tibems: | |||
HawkConstants.HAWK_EMS_URL |
No | localhost://7222 | EMS server URL |
HawkConstants.HAWK_EMS_USERNAME |
No | null | EMS username |
HawkConstants.HAWK_EMS_PWD |
No | null | EMS password |
HawkConstants.HAWK_SSL_PARAMS |
No | null | A Java Hashtable containing key/values as documented in TIBCO JMS document: com.tibco.tibjms.TibjmsSSL.<prop> and its value |
ConsoleInitializationException
java.io.UnsupportedEncodingException
Copyright © 2000-2019 TIBCO Inc. All Rights Reserved.