|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CMIAdminMBean
Definition of a MBean to monitor managers of cluster view. In the case of a manager at server-side, we can also configure it with this MBean.
| Method Summary | |
|---|---|
void |
addPooltoEmpty(java.lang.String objectName)
Adds the pool of the object with the given name of the list of pool that should be empty. |
void |
addServerToBlackList(java.lang.String serverName)
Adds a server to the blacklist. |
java.lang.String |
getBusinessName(java.lang.String objectName)
Returns the business interface name of an object bound with the given name (for ejb2 only). |
java.lang.String |
getClusterName(java.lang.String objectName)
Returns the name of cluster for the object with the given name. |
java.util.Set<java.lang.String> |
getClusterNames()
Returns the set of name of cluster. |
java.lang.Integer |
getDelayToRefresh()
Returns the time between each update of the cluster view by clients. |
java.lang.String |
getItfName(java.lang.String objectName)
Returns a name of interface of this object. |
javax.management.remote.JMXServiceURL |
getJMXServiceURL(java.lang.String protocolName)
|
java.util.Set<java.lang.String> |
getListPropertiesNamesForPolicy(java.lang.String objectName)
Returns the set of property names (for which value is a list) for the object with the given name. |
java.util.List<java.lang.String> |
getListPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName)
Returns the list of value of the property with the given name. |
java.lang.Integer |
getLoadFactor(java.lang.String serverRef)
Returns the load-factor for the server with the given address. |
java.lang.Integer |
getMaxPoolSize(java.lang.String objectName)
Returns the maximal size of pool of CMIReferenceable for a object with the given name. |
java.lang.Integer |
getMaxPoolWaiters(java.lang.String objectName)
Returns the waiters of pool of CMIReferenceable for a object with the given name. |
java.lang.Integer |
getMinPoolSize(java.lang.String objectName)
Returns the minimal size of pool of CMIReferenceable for a object with the given name. |
java.lang.Integer |
getNbClientsConnectedToProvider()
|
javax.management.ObjectName |
getObjectName()
Returns the ObjectName binded in the MBean Server. |
java.util.Set<java.lang.String> |
getObjectNames()
|
java.util.Set<java.lang.String> |
getObjectNames(java.lang.String clusterName)
Returns the set of object names included in the given cluster. |
java.lang.String |
getPolicyClassName(java.lang.String objectName)
Returns the name of class of policy for the object with the given name. |
java.lang.Long |
getPoolTimeout(java.lang.String objectName)
Returns the pool timeout of CMIReferenceable for a object with the given name. |
java.util.Set<java.lang.String> |
getPropertiesNamesForPolicy(java.lang.String objectName)
Returns the set of property names for the object with the given name. |
java.lang.String |
getPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName)
Returns the value of the property with the given name, from a policy instance associated to the object instance. |
java.util.Set<java.lang.String> |
getProtocols()
|
java.lang.String |
getRefOnLocalRegistry(java.lang.String protocolName)
|
java.util.Set<java.lang.String> |
getServerObjectsForProtocol(java.lang.String serverUrl,
java.lang.String protocolName)
Gets objects hosted on a given server started with a given protocol. |
java.util.List<java.lang.String> |
getServerRefs(java.lang.String objectName)
Returns a list of String representing a ServerRef for an object with the given name. |
java.util.List<java.lang.String> |
getServerRefs(java.lang.String objectName,
java.lang.String protocolName)
Returns a list of String representing a ServerRef for an object with the given name and protocol. |
java.util.Set<java.lang.String> |
getServerRefsForProtocol(java.lang.String protocolName)
|
java.lang.Object |
getStaticPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName)
Returns the value of the property with the given name, retrieved from clustering metadatas. |
java.lang.String |
getStrategyClassName(java.lang.String objectName)
Returns the name of class of strategy for the object with the given name. |
boolean |
isPoolToEmpty(java.lang.String objectName)
Returns true if the pool for object with the given name should be empty. |
boolean |
isReplicated(java.lang.String objectName)
|
boolean |
isServerBlackListed(java.lang.String serverName)
Returns true the server with the given reference if blacklisted. |
void |
removePoolToEmpty(java.lang.String objectName)
Removes the pool of the object with the given name of the list of pool that should be empty. |
void |
removeServerFromBlackList(java.lang.String serverName)
Removes a server from the blacklist. |
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
retrieveAvailablePoliciesAndStrategies()
Gets available load balancing policies and strategies. |
void |
setAlgorithmForPolicy(java.lang.String objectName,
java.lang.String policyClassName,
java.lang.String strategyClassName,
java.util.Map<java.lang.String,java.lang.Object> properties)
Sets the algorithm of load-balancing for the object with the given name. |
void |
setDelayToRefresh(java.lang.Integer delay)
Sets the time between each update of the cluster view by clients. |
void |
setListPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName,
java.util.List<java.lang.String> propertyValues)
Sets a property for a given object. |
void |
setLoadFactor(java.lang.String serverRef,
java.lang.String loadFactor)
Sets the load-factor for the server with the given address. |
void |
setMaxPoolSize(java.lang.String objectName,
java.lang.Integer maxPoolSize)
Sets the maximal size of pool of CMIReferenceable for a object with the given name. |
void |
setMaxPoolWaiters(java.lang.String objectName,
java.lang.Integer maxPoolWaiters)
Sets the max waiters of pool of CMIReferenceable for a object with the given name. |
void |
setMinPoolSize(java.lang.String objectName,
java.lang.Integer minPoolSize)
Sets the minimal size of pool of CMIReferenceable for a object with the given name. |
void |
setPolicyClassName(java.lang.String objectName,
java.lang.String policyClassName)
Sets a new policy for a given object. |
void |
setPoolTimeout(java.lang.String objectName,
java.lang.Long poolTimeout)
Sets the pool timeout of CMIReferenceable for a object with the given name. |
void |
setPropertiesForPolicy(java.lang.String objectName,
java.util.Map<java.lang.String,java.lang.Object> properties)
Sets the properties for a given object. |
void |
setPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName,
java.lang.String propertyValue)
Sets a property for a given object. |
void |
setStaticPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName,
java.lang.String propertyValue)
Sets a property on policy class of a given object(not object instance). |
void |
setStrategyClassName(java.lang.String objectName,
java.lang.String strategyClassName)
Sets a new strategy for a given object. |
| Method Detail |
|---|
javax.management.ObjectName getObjectName()
javax.management.remote.JMXServiceURL getJMXServiceURL(java.lang.String protocolName)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
protocolName - a name of protocol
java.lang.IllegalArgumentException - if no object is bound with the given name
java.lang.UnsupportedOperationException - if the used manager is at client-sidejava.util.Set<java.lang.String> getProtocols()
java.lang.String getRefOnLocalRegistry(java.lang.String protocolName)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
protocolName - a name of protocol
java.lang.IllegalArgumentException - if the given protocol name doesn't exist
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.lang.String getItfName(java.lang.String objectName)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
objectName - a name of object
java.lang.IllegalArgumentException - if no object is bound with the given name
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.lang.String getBusinessName(java.lang.String objectName)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
objectName - a name of object
java.lang.IllegalArgumentException - if none object has the given name
java.lang.UnsupportedOperationException - if the used manager is at client-side
boolean isReplicated(java.lang.String objectName)
throws java.lang.IllegalArgumentException
objectName - a name of object
java.lang.IllegalArgumentException - if none object has the given name
java.util.Set<java.lang.String> getServerRefsForProtocol(java.lang.String protocolName)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
protocolName - a name of protocol
java.lang.IllegalArgumentException - if the given protocol name doesn't exist
java.lang.UnsupportedOperationException - if the used manager is at client-sidejava.util.Set<java.lang.String> getObjectNames()
java.lang.String getPolicyClassName(java.lang.String objectName)
throws java.lang.IllegalArgumentException
objectName - name of the object
java.lang.IllegalArgumentException - if none object has the given name
void setPolicyClassName(java.lang.String objectName,
java.lang.String policyClassName)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException,
java.lang.ClassNotFoundException
objectName - a name of objectpolicyClassName - a name of class of policy
java.lang.IllegalArgumentException - if none object has the given name
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.lang.ClassNotFoundException - if the class is missing
java.lang.String getStrategyClassName(java.lang.String objectName)
throws java.lang.IllegalArgumentException
objectName - name of the object
java.lang.IllegalArgumentException - if none object has the given name
void setStrategyClassName(java.lang.String objectName,
java.lang.String strategyClassName)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException,
java.lang.ClassNotFoundException
objectName - a name of objectstrategyClassName - a name of class of strategy
java.lang.IllegalArgumentException - if none object has the given name
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.lang.ClassNotFoundException - if the class is missing
java.util.Set<java.lang.String> getPropertiesNamesForPolicy(java.lang.String objectName)
throws java.lang.IllegalArgumentException
objectName - a name of object
java.lang.IllegalArgumentException - if none object has the given name
java.util.Set<java.lang.String> getListPropertiesNamesForPolicy(java.lang.String objectName)
throws java.lang.IllegalArgumentException
objectName - a name of object
java.lang.IllegalArgumentException - if none object has the given name
java.lang.String getPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName)
throws java.lang.IllegalArgumentException
objectName - a name of objectpropertyName - a name of property
java.lang.IllegalArgumentException - if none object has the given name, or if the value is a list
java.lang.Object getStaticPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName)
throws javax.management.JMRuntimeException,
java.lang.UnsupportedOperationException
objectName - a name of objectpropertyName - a name of property
javax.management.JMRuntimeException - if any other exception occurs.
java.lang.UnsupportedOperationException - if operation is not supported.
java.util.List<java.lang.String> getListPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName)
throws java.lang.IllegalArgumentException
objectName - a name of objectpropertyName - a name of property
java.lang.IllegalArgumentException - if none object has the given name, or if the value is not a list
void setPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName,
java.lang.String propertyValue)
throws javax.management.JMRuntimeException,
java.lang.UnsupportedOperationException
objectName - a name of objectpropertyName - a name of propertypropertyValue - a value for the given name of property
java.lang.IllegalArgumentException - if none object has the given name, or if the property doesn't exist or has an invalid type
java.lang.UnsupportedOperationException - if the used manager is at client-side
javax.management.JMRuntimeException
void setStaticPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName,
java.lang.String propertyValue)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
objectName - a name of objectpropertyName - a name of propertypropertyValue - a value for the given name of property
java.lang.IllegalArgumentException - if none object has the given name, or if the property doesn't exist or has an invalid type
java.lang.UnsupportedOperationException - if the used manager is at client-side
void setListPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName,
java.util.List<java.lang.String> propertyValues)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
objectName - a name of objectpropertyName - a name of propertypropertyValues - a list of value for the given name of property
java.lang.IllegalArgumentException - if none object has the given name, or if the property doesn't exist or has an invalid type
java.lang.UnsupportedOperationException - if the used manager is at client-side
void setPropertiesForPolicy(java.lang.String objectName,
java.util.Map<java.lang.String,java.lang.Object> properties)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
objectName - a name of objectproperties - properties a set of properties
java.lang.IllegalArgumentException - if none object has the given name, or if a property doesn't exist or has an invalid type
java.lang.UnsupportedOperationException - if the used manager is at client-side
void setAlgorithmForPolicy(java.lang.String objectName,
java.lang.String policyClassName,
java.lang.String strategyClassName,
java.util.Map<java.lang.String,java.lang.Object> properties)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException,
java.lang.ClassNotFoundException
objectName - a name of objectpolicyClassName - a name of class of policystrategyClassName - a name of class of strategyproperties - a set of properties
java.lang.IllegalArgumentException - if none object has the given name, or if a property doesn't exist or has an invalid type
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.lang.ClassNotFoundException - if the class is missing
java.util.List<java.lang.String> getServerRefs(java.lang.String objectName,
java.lang.String protocolName)
throws java.lang.IllegalArgumentException
objectName - a name of objectprotocolName - a name of protocol
java.lang.IllegalArgumentException - if none object has the given name
java.util.List<java.lang.String> getServerRefs(java.lang.String objectName)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
objectName - a name of object
java.lang.IllegalArgumentException - if none object has the given name
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.util.Set<java.lang.String> getClusterNames()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.util.Set<java.lang.String> getObjectNames(java.lang.String clusterName)
throws java.lang.UnsupportedOperationException,
java.lang.IllegalArgumentException
clusterName - The cluster name
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.lang.IllegalArgumentException - if none cluster has the given namejava.lang.Integer getDelayToRefresh()
void setDelayToRefresh(java.lang.Integer delay)
throws java.lang.UnsupportedOperationException
delay - the time between each update of the cluster view by clients
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.lang.String getClusterName(java.lang.String objectName)
throws java.lang.IllegalArgumentException
objectName - a name of object
java.lang.IllegalArgumentException - if none object has the given name
java.lang.Integer getMinPoolSize(java.lang.String objectName)
throws java.lang.IllegalArgumentException
objectName - a name of object
java.lang.IllegalArgumentException - if none object has the given name
java.lang.Integer getMaxPoolSize(java.lang.String objectName)
throws java.lang.IllegalArgumentException
objectName - a name of object
java.lang.IllegalArgumentException - if none object has the given name
void setMinPoolSize(java.lang.String objectName,
java.lang.Integer minPoolSize)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
objectName - a name of objectminPoolSize - the minimal size of pool of CMIReferenceable for a object with the given name
java.lang.IllegalArgumentException - if no object is bound with the given name
java.lang.UnsupportedOperationException - if the used manager is at client-side
void setMaxPoolSize(java.lang.String objectName,
java.lang.Integer maxPoolSize)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
objectName - a name of objectmaxPoolSize - the maximal size of pool of CMIReferenceable for a object with the given name
java.lang.IllegalArgumentException - if no object is bound with the given name
java.lang.UnsupportedOperationException - if the used manager is at client-side
void setMaxPoolWaiters(java.lang.String objectName,
java.lang.Integer maxPoolWaiters)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
objectName - a name of objectmaxPoolWaiters - the max waiters of pool of CMIReferenceable for a object with the given name
java.lang.IllegalArgumentException - if no object is bound with the given name
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.lang.Integer getMaxPoolWaiters(java.lang.String objectName)
throws java.lang.IllegalArgumentException
objectName - a name of object
java.lang.IllegalArgumentException - if none object has the given name
void setPoolTimeout(java.lang.String objectName,
java.lang.Long poolTimeout)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
objectName - a name of objectpoolTimeout - the timeout of pool of CMIReferenceable for a object with the given name
java.lang.IllegalArgumentException - if no object is bound with the given name
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.lang.Long getPoolTimeout(java.lang.String objectName)
throws java.lang.IllegalArgumentException
objectName - a name of object
java.lang.IllegalArgumentException - if none object has the given name
void addServerToBlackList(java.lang.String serverName)
throws java.lang.UnsupportedOperationException,
java.net.MalformedURLException,
java.net.UnknownHostException
serverName - a reference on a server
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.net.MalformedURLException - if the URL is malformed
java.net.UnknownHostException - if the given host cannot be resolved
void removeServerFromBlackList(java.lang.String serverName)
throws java.lang.UnsupportedOperationException,
java.net.MalformedURLException,
java.net.UnknownHostException
serverName - a reference on a server
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.net.MalformedURLException - if the URL is malformed
java.net.UnknownHostException - if the given host cannot be resolved
boolean isServerBlackListed(java.lang.String serverName)
throws java.lang.UnsupportedOperationException,
java.net.MalformedURLException,
java.net.UnknownHostException
serverName - a reference on a server
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.net.MalformedURLException - if the URL is malformed
java.net.UnknownHostException - if the given host cannot be resolved
void addPooltoEmpty(java.lang.String objectName)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
objectName - a name of object
java.lang.IllegalArgumentException - if no object is bound with the given name
java.lang.UnsupportedOperationException - if the used manager is at client-side
void removePoolToEmpty(java.lang.String objectName)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
objectName - a name of object
java.lang.IllegalArgumentException - if no object is bound with the given name
java.lang.UnsupportedOperationException - if the used manager is at client-side
boolean isPoolToEmpty(java.lang.String objectName)
throws java.lang.IllegalArgumentException
objectName - a name of object
java.lang.IllegalArgumentException - if no object is bound with the given name
java.lang.Integer getLoadFactor(java.lang.String serverRef)
throws java.lang.IllegalArgumentException,
java.net.MalformedURLException,
java.net.UnknownHostException
serverRef - a reference on a server
java.lang.IllegalArgumentException - if none server has the given address
java.net.MalformedURLException - if the URL is malformed
java.net.UnknownHostException - if the given host cannot be resolved
void setLoadFactor(java.lang.String serverRef,
java.lang.String loadFactor)
throws java.lang.UnsupportedOperationException,
java.net.MalformedURLException,
java.net.UnknownHostException
serverRef - a reference on a serverloadFactor - the load-factor for the server with the given address
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.net.MalformedURLException - if the URL is malformed
java.net.UnknownHostException - if the given host cannot be resolvedjava.lang.Integer getNbClientsConnectedToProvider()
java.util.Set<java.lang.String> getServerObjectsForProtocol(java.lang.String serverUrl,
java.lang.String protocolName)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
serverUrl - a server referenceprotocolName - a name of protocol
java.lang.IllegalArgumentException - if the given protocol name doesn't exist or
the server is not registered for the given protocol
java.lang.UnsupportedOperationException - if the used manager is at client-side
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> retrieveAvailablePoliciesAndStrategies()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if the operation is not supported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||