Package org.opennms.netmgt.tl1d
Class Tl1ClientImpl
- java.lang.Object
-
- org.opennms.netmgt.tl1d.Tl1ClientImpl
-
- All Implemented Interfaces:
Tl1Client
public class Tl1ClientImpl extends java.lang.Object implements Tl1Client
Default Implementation of the Tl1Client API.- Version:
- $Id: $
- Author:
- David Hustace
-
-
Constructor Summary
Constructors Constructor Description Tl1ClientImpl()
Constructor for Tl1ClientImpl.Tl1ClientImpl(java.util.concurrent.BlockingQueue<Tl1AutonomousMessage> queue, Tl1Element element)
Constructor for Tl1ClientImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHost()
getHostTl1AutonomousMessageProcessor
getMessageProcessor()
getMessageProcessorint
getPort()
getPortlong
getReconnectionDelay()
getReconnectionDelayjava.util.concurrent.BlockingQueue<Tl1AutonomousMessage>
getTl1Queue()
getTl1Queueboolean
isStarted()
isStartedvoid
setHost(java.lang.String host)
setHostvoid
setMessageProcessor(Tl1AutonomousMessageProcessor messageProcessor)
setMessageProcessorvoid
setPort(int port)
setPortvoid
setReconnectionDelay(long reconnectionDelay)
setReconnectionDelayvoid
setStarted(boolean started)
setStartedvoid
setTl1Queue(java.util.concurrent.BlockingQueue<Tl1AutonomousMessage> tl1Queue)
setTl1Queuevoid
start()
startvoid
stop()
stopjava.lang.String
toString()
-
-
-
Constructor Detail
-
Tl1ClientImpl
public Tl1ClientImpl()
Constructor for Tl1ClientImpl.
-
Tl1ClientImpl
public Tl1ClientImpl(java.util.concurrent.BlockingQueue<Tl1AutonomousMessage> queue, Tl1Element element) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
Constructor for Tl1ClientImpl.
- Parameters:
queue
- aBlockingQueue
object.element
- aTl1Element
object.- Throws:
java.lang.InstantiationException
- if any.java.lang.IllegalAccessException
- if any.java.lang.ClassNotFoundException
- if any.
-
-
Method Detail
-
getHost
public java.lang.String getHost()
getHost
-
setHost
public void setHost(java.lang.String host)
setHost
-
setPort
public void setPort(int port)
setPort
-
getReconnectionDelay
public long getReconnectionDelay()
getReconnectionDelay
- Specified by:
getReconnectionDelay
in interfaceTl1Client
- Returns:
- a long.
-
setReconnectionDelay
public void setReconnectionDelay(long reconnectionDelay)
setReconnectionDelay
- Specified by:
setReconnectionDelay
in interfaceTl1Client
- Parameters:
reconnectionDelay
- a long.
-
getTl1Queue
public java.util.concurrent.BlockingQueue<Tl1AutonomousMessage> getTl1Queue()
getTl1Queue
- Specified by:
getTl1Queue
in interfaceTl1Client
- Returns:
- a
BlockingQueue
object.
-
setTl1Queue
public void setTl1Queue(java.util.concurrent.BlockingQueue<Tl1AutonomousMessage> tl1Queue)
setTl1Queue
- Specified by:
setTl1Queue
in interfaceTl1Client
- Parameters:
tl1Queue
- aBlockingQueue
object.
-
getMessageProcessor
public Tl1AutonomousMessageProcessor getMessageProcessor()
getMessageProcessor
- Specified by:
getMessageProcessor
in interfaceTl1Client
- Returns:
- a
Tl1AutonomousMessageProcessor
object.
-
setMessageProcessor
public void setMessageProcessor(Tl1AutonomousMessageProcessor messageProcessor)
setMessageProcessor
- Specified by:
setMessageProcessor
in interfaceTl1Client
- Parameters:
messageProcessor
- aTl1AutonomousMessageProcessor
object.
-
setStarted
public void setStarted(boolean started)
setStarted
- Parameters:
started
- a boolean.
-
isStarted
public boolean isStarted()
isStarted
- Returns:
- a boolean.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-