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