MSEventSender
public class MSEventSenderImpl extends java.lang.Object implements MSEventSender
Modifier and Type | Class | Description |
---|---|---|
protected static class |
MSEventSenderImpl.BoundedDeque |
|
protected class |
MSEventSenderImpl.Worker |
Constructor | Description |
---|---|
MSEventSenderImpl(java.lang.String name,
IGApplicationConfiguration appConfig) |
This constructor is used by the AppTemplate configuration helper methods.
|
MSEventSenderImpl(java.lang.String name,
java.lang.String host,
int port,
java.lang.String backupHost,
int backupPort,
java.util.Map<java.lang.String,java.lang.String> properties) |
This constructor is used by the Delivery Manager implementation in case of Message Server
Appender initialization from a logging configuration file.
|
Modifier and Type | Method | Description |
---|---|---|
protected IGApplicationConfiguration |
getAppConfig() |
|
protected java.lang.String |
getBackupHost() |
|
protected int |
getBackupPort() |
|
protected java.util.Map<java.lang.String,java.lang.String> |
getConnProperties() |
|
protected java.lang.String |
getHost() |
|
protected java.lang.String |
getName() |
|
protected int |
getPort() |
|
protected java.lang.String |
getServerName() |
|
void |
push(java.lang.Integer entryId,
LogCategory entryCategory,
LogLevel level,
java.lang.String entryText,
java.util.Date date,
AttributeList attributes) |
|
void |
start() |
|
void |
stop() |
|
java.lang.String |
toString() |
public MSEventSenderImpl(java.lang.String name, java.lang.String host, int port, java.lang.String backupHost, int backupPort, java.util.Map<java.lang.String,java.lang.String> properties)
name
- the name of sender.host
- the Message Server host name or address.port
- the Message Server TCP/IP port number.backupHost
- host name or address of backup Message Server or null.backupPort
- TCP/IP port number of the backup Message Server.properties
- parameters of the Message Server connection.java.lang.IllegalArgumentException
- if given parameters contain invalid values.GMessageServerDeliveryManagerImpl
,
MSEventSenderImpl(String, IGApplicationConfiguration)
public MSEventSenderImpl(java.lang.String name, IGApplicationConfiguration appConfig)
name
- the name of sender.appConfig
- the application configuration.java.lang.IllegalArgumentException
- if given application configuration parameters contain invalid values.Log4j2Configurator
,
DirectLmsLoggerFactory
protected java.lang.String getName()
protected IGApplicationConfiguration getAppConfig()
protected java.lang.String getServerName()
protected java.lang.String getHost()
protected int getPort()
protected java.lang.String getBackupHost()
protected int getBackupPort()
protected java.util.Map<java.lang.String,java.lang.String> getConnProperties()
public void start()
start
in interface MSEventSender
public void stop()
stop
in interface MSEventSender
public void push(java.lang.Integer entryId, LogCategory entryCategory, LogLevel level, java.lang.String entryText, java.util.Date date, AttributeList attributes)
push
in interface MSEventSender
public java.lang.String toString()
toString
in class java.lang.Object
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.