org.mondemand.transport
Class LWESTransport

java.lang.Object
  extended by org.mondemand.transport.LWESTransport
All Implemented Interfaces:
Transport

public class LWESTransport
extends Object
implements Transport


Constructor Summary
LWESTransport(InetAddress address, int port, InetAddress networkInterface)
          Creates an initializes a LWES transport.
LWESTransport(InetAddress address, int port, InetAddress networkInterface, int ttl)
          Creates and initializes a LWES transport.
 
Method Summary
 void sendLogs(String programId, LogMessage[] messages, Context[] contexts)
           
 void sendStats(String programId, StatsMessage[] messages, Context[] contexts)
           
 void sendTrace(String programId, Context[] contexts)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LWESTransport

public LWESTransport(InetAddress address,
                     int port,
                     InetAddress networkInterface)
              throws TransportException
Creates an initializes a LWES transport.

Parameters:
address - the address to send events to, can be a multicast or unicast address
port - the port to send events to
networkInterface - the network interface to use, or null to specify the default
Throws:
TransportException

LWESTransport

public LWESTransport(InetAddress address,
                     int port,
                     InetAddress networkInterface,
                     int ttl)
              throws TransportException
Creates and initializes a LWES transport.

Parameters:
address - the address to send events to, can be a multicast or unicast address
port - the port to send events to
networkInterface - the network interface to use, or null to specify the default
ttl - for multicast addresses, the TTL value to use
Throws:
TransportException
Method Detail

sendLogs

public void sendLogs(String programId,
                     LogMessage[] messages,
                     Context[] contexts)
              throws TransportException
Specified by:
sendLogs in interface Transport
Throws:
TransportException

sendStats

public void sendStats(String programId,
                      StatsMessage[] messages,
                      Context[] contexts)
               throws TransportException
Specified by:
sendStats in interface Transport
Throws:
TransportException

sendTrace

public void sendTrace(String programId,
                      Context[] contexts)
               throws TransportException
Specified by:
sendTrace in interface Transport
Throws:
TransportException

shutdown

public void shutdown()
              throws TransportException
Specified by:
shutdown in interface Transport
Throws:
TransportException


Copyright © 2012. All Rights Reserved.