org.mondemand.transport
Class LWESTransport
java.lang.Object
org.mondemand.transport.LWESTransport
- All Implemented Interfaces:
- Transport
public class LWESTransport
- extends Object
- implements Transport
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 addressport
- the port to send events tonetworkInterface
- 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 addressport
- the port to send events tonetworkInterface
- the network interface to use, or null to
specify the defaultttl
- for multicast addresses, the TTL value to use
- Throws:
TransportException
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.