org.mobicents.slee.services.sip.balancer.mbean
Interface BalancerNodeMonitorMBeanImplMBean
- All Superinterfaces:
- org.jboss.system.Service, org.jboss.system.ServiceMBean
- All Known Implementing Classes:
- BalancerNodeMonitorMBeanImpl
public interface BalancerNodeMonitorMBeanImplMBean
- extends org.jboss.system.ServiceMBean
| Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
getBalancers
java.lang.String[] getBalancers()
- Returns:
- - list of String objects representing balancer addresses. Example
content:
- 192.168.1.100
- ala.ma.kota.pl
addBalancerAddress
boolean addBalancerAddress(java.lang.String addr)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException,
java.io.IOException
- Throws:
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
addBalancerAddress
boolean addBalancerAddress(java.lang.String hostName,
int index)
throws java.lang.IllegalArgumentException
- Adds balancer address to distribution list. Tries to connect to it.
- Parameters:
hostName - -
name of the host to be looked up in DNSindex - -
possible index of IP address when host has more than one
address - like InetAddress.getAllByName(..);
- Returns:
- true - if address didnt exist and it has been
injected into list
- false - otherwise
- Throws:
java.lang.IllegalArgumentException - if something goes wrong when adding the balancer address or while trying to connect to it
removeBalancerAddress
boolean removeBalancerAddress(java.lang.String addr)
throws java.lang.IllegalArgumentException
- Tries to remove balancer with name: addr[0].addr[1].addr[2].addr[3]
- Parameters:
addr - -
The argument is address representation in network byte order:
the highest order byte of the address is in [0].port - -
port on which remote balancer listens
- Returns:
- true - if name exists and was removed
- false - otherwise
- Throws:
java.lang.IllegalArgumentException - -
if there is no balancer with that name on the list.
removeBalancerAddress
boolean removeBalancerAddress(java.lang.String hostName,
int index)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
removeBalancerAddress
void removeBalancerAddress(int index)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
getHeartBeatInterval
long getHeartBeatInterval()
setHeartBeatInterval
void setHeartBeatInterval(long heartBeatInterval)
Copyright © 2008. All Rights Reserved.