Platform SDK Java 8.5 API Reference

com.genesyslab.platform.apptemplate.lmslogger.impl
Class MSEventSenderImpl

java.lang.Object
  extended by com.genesyslab.platform.apptemplate.lmslogger.impl.MSEventSenderImpl
All Implemented Interfaces:
MSEventSender

public class MSEventSenderImpl
extends java.lang.Object
implements MSEventSender

Default implementation of the Message Server Delivery component.

Note: This class is a part of PSDK internal LMS Events delivery mechanism.
It is not supposed for direct usage from applications.


Nested Class Summary
protected static class MSEventSenderImpl.BoundedDeque
           
protected  class MSEventSenderImpl.Worker
           
 
Constructor Summary
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.
 
Method Summary
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()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MSEventSenderImpl

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)
This constructor is used by the Delivery Manager implementation in case of Message Server Appender initialization from a logging configuration file.

Parameters:
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.
Throws:
java.lang.IllegalArgumentException - if given parameters contain invalid values.
See Also:
GMessageServerDeliveryManagerImpl, MSEventSenderImpl(String, IGApplicationConfiguration)

MSEventSenderImpl

public MSEventSenderImpl(java.lang.String name,
                         IGApplicationConfiguration appConfig)
This constructor is used by the AppTemplate configuration helper methods.

Parameters:
name - the name of sender.
appConfig - the application configuration.
Throws:
java.lang.IllegalArgumentException - if given application configuration parameters contain invalid values.
See Also:
Log4j2Configurator, DirectLmsLoggerFactory
Method Detail

getName

protected java.lang.String getName()

getAppConfig

protected IGApplicationConfiguration getAppConfig()

getHost

protected java.lang.String getHost()

getPort

protected int getPort()

getBackupHost

protected java.lang.String getBackupHost()

getBackupPort

protected int getBackupPort()

getConnProperties

protected java.util.Map<java.lang.String,java.lang.String> getConnProperties()

start

public void start()
Specified by:
start in interface MSEventSender

stop

public void stop()
Specified by:
stop in interface MSEventSender

push

public void push(java.lang.Integer entryId,
                 LogCategory entryCategory,
                 LogLevel level,
                 java.lang.String entryText,
                 java.util.Date date,
                 AttributeList attributes)
Specified by:
push in interface MSEventSender

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.