public interface TcpEventReceiverMBean extends BaseOnmsMBean
TcpEventReceiverMBean interface.
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(String name)
Adds a new event handler by its managed name.
|
void |
destroy()
Invoked prior to garbage collection.
|
Integer |
getPort()
Returns the where a listener is waiting to process new request.
|
void |
removeEventHandler(String name)
Removes an event handler.
|
void |
setEventsPerConnection(Integer number)
The number of event records a new connection is allowed to send before
the connection is terminated by the server.
|
void |
setLogPrefix(String prefix)
The logging prefix to use
|
void |
setPort(Integer port)
Sets the port where new requests will be handled.
|
getStatus, getStatusText, init, start, status, stop
void destroy()
void setPort(Integer port)
port
- The port to listen on.Integer getPort()
void addEventHandler(String name) throws MalformedObjectNameException, InstanceNotFoundException
name
- The name of the handler to add.MalformedObjectNameException
- Thrown if the passed name is not a valid ObjectName.InstanceNotFoundException
- Thrown if no managed bean can be found that matches the name.void removeEventHandler(String name) throws MalformedObjectNameException, InstanceNotFoundException
name
- The name of the handler to remove.MalformedObjectNameException
- Thrown if the passed name is not a valid ObjectName.InstanceNotFoundException
- Thrown if no managed bean can be found that matches the name.void setLogPrefix(String prefix)
prefix
- a String
object.void setEventsPerConnection(Integer number)
number
- The number of event records.Copyright © 2017. All rights reserved.