|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClusterViewManager
Implementations of this interface define a manager of the cluster view.
the manager on client side,
the manager on server side| Nested Class Summary | |
|---|---|
static class |
ClusterViewManager.State
Define the states of a cluster view manager. |
| Method Summary | |
|---|---|
void |
addObjectToWatch(java.lang.String objectName)
Adds an object with the given name to a set of objects that need to have their state up-to-date. |
void |
destroy()
Destroy this manager. |
java.util.Set<java.lang.String> |
getApplicationExceptionNames(java.lang.String objectName)
Return classnames of the application exceptions. |
java.lang.String |
getClusterName(java.lang.String objectName)
Returns the name of cluster for the object with the given name. |
java.util.Collection<CMIReference> |
getCMIReferences(java.lang.String objectName,
java.lang.String protocolName)
Returns a list of CMIReference for an object with the given name and protocol. |
IConfig |
getConfig()
|
long |
getDateOfProperties(java.lang.String objectName)
Returns the date of properties for an object with the given name. |
int |
getDelayToRefresh()
Returns the time between each update of the cluster view by clients. |
org.ow2.util.event.api.IEventDispatcher |
getEventDispatcher()
|
java.lang.String |
getInitialContextFactoryName(java.lang.String protocolName)
Returns a name of class that implements the interface InitialContextFactory for the given name of protocol. |
java.lang.Class<?> |
getInterface(java.lang.String objectName)
Returns the interface of an object bound with the given name. |
int |
getLoadFactor(ServerRef serverRef)
Returns the load-factor for the server with the given address. |
java.util.Set<java.lang.String> |
getObjectNames()
|
IPolicy<CMIReference> |
getPolicy(java.lang.String objectName)
Returns an instance of policy for the object that have the given name. |
java.lang.Class<? extends IPolicy<?>> |
getPolicyClass(java.lang.String objectName)
Returns the class that defines the policy for an object with the given name. |
java.lang.String |
getPolicyClassName(java.lang.String objectName)
Returns the name of class of policy for the object with the given name. |
org.ow2.util.pool.api.Pool<CMIReferenceable<?>,CMIReference> |
getPool(java.lang.String objectName)
Returns a pool of CMIReferenceable for an object with the given name. |
org.ow2.util.pool.api.IPoolConfiguration |
getPoolConfiguration(java.lang.String objectName)
Returns the configuration of pool of CMIReferenceable for a object with the given name. |
java.util.Map<java.lang.String,java.lang.Object> |
getPropertiesForPolicy(java.lang.String objectName)
Returns the properties of the policy for an object with the given name. |
java.lang.Object |
getPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName)
Returns a value property of the policy for an object with the given name. |
java.util.Set<java.lang.String> |
getProtocols()
|
java.lang.Class<? extends javax.ejb.EJBObject> |
getRemoteClass(java.lang.String objectName)
Returns the business interface of an object bound with the given name (for ejb2 only). |
SessionId |
getSessionId()
|
ClusterViewManager.State |
getState()
|
java.lang.Class<? extends IStrategy<?>> |
getStrategyClass(java.lang.String objectName)
Returns the class that defines the strategy for an object with the given name. |
java.lang.String |
getStrategyClassName(java.lang.String objectName)
Returns the name of class of strategy for the object with the given name. |
java.util.UUID |
getUUID()
|
boolean |
hasState(java.lang.String objectName)
Return true if the object with the given name is stateful. |
boolean |
isClustered(java.lang.String objectName)
Returns true if the object with the specified name is clustered. |
boolean |
isPoolToEmpty(java.lang.String objectName)
Returns true if the pool for object with the given name should be empty. |
boolean |
isProxyEnabled(java.lang.String objectName)
|
boolean |
isReplicated(java.lang.String objectName)
Return true if the object with the given name is replicated for high-availability. |
void |
setPool(java.lang.String objectName,
org.ow2.util.pool.api.Pool<CMIReferenceable<?>,CMIReference> pool)
Associates a name of object with a pool of CMIReferenceable. |
boolean |
start()
Start the manager and return if it is available. |
void |
stop()
Stop the manager. |
| Methods inherited from interface org.ow2.cmi.event.CMIManagedObject |
|---|
getCMIManagedObjectId, getComponent |
| Method Detail |
|---|
java.util.Set<java.lang.String> getProtocols()
java.lang.String getPolicyClassName(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
java.lang.Class<? extends IPolicy<?>> getPolicyClass(java.lang.String objectName)
throws ObjectNotFoundException,
ClusterViewManagerException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
ClusterViewManagerException
java.lang.String getStrategyClassName(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
java.lang.Class<? extends IStrategy<?>> getStrategyClass(java.lang.String objectName)
throws ObjectNotFoundException,
ClusterViewManagerException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
ClusterViewManagerException
long getDateOfProperties(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
java.lang.Object getPropertyForPolicy(java.lang.String objectName,
java.lang.String propertyName)
throws ObjectNotFoundException
objectName - a name of objectpropertyName - a name of property
ObjectNotFoundException - if none object has the given name
java.util.Map<java.lang.String,java.lang.Object> getPropertiesForPolicy(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
java.util.Collection<CMIReference> getCMIReferences(java.lang.String objectName,
java.lang.String protocolName)
throws ObjectNotFoundException
objectName - a name of objectprotocolName - a name of protocol
ObjectNotFoundException - if none object has the given name for the given protocol
java.lang.Class<?> getInterface(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
java.lang.Class<? extends javax.ejb.EJBObject> getRemoteClass(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
boolean hasState(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
boolean isReplicated(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
java.util.Set<java.lang.String> getApplicationExceptionNames(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
java.lang.String getInitialContextFactoryName(java.lang.String protocolName)
throws ProtocolNotFoundException
protocolName - a name of protocol
ProtocolNotFoundException - if none protocol has a such name
IPolicy<CMIReference> getPolicy(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given nameboolean isClustered(java.lang.String objectName)
objectName - a name of object
org.ow2.util.pool.api.IPoolConfiguration getPoolConfiguration(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
boolean isPoolToEmpty(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if no object is bound with the given name
org.ow2.util.pool.api.Pool<CMIReferenceable<?>,CMIReference> getPool(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
void setPool(java.lang.String objectName,
org.ow2.util.pool.api.Pool<CMIReferenceable<?>,CMIReference> pool)
throws ObjectNotFoundException
objectName - a name of objectpool - a pool of CMIReferenceable
ObjectNotFoundException - if none object has the given name
java.lang.String getClusterName(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
void addObjectToWatch(java.lang.String objectName)
throws ObjectNotFoundException,
ClusterViewManagerException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
ClusterViewManagerExceptionint getDelayToRefresh()
int getLoadFactor(ServerRef serverRef)
throws ServerNotFoundException
serverRef - a reference on a server
ServerNotFoundException - if none server has the given addressjava.util.UUID getUUID()
SessionId getSessionId()
java.util.Set<java.lang.String> getObjectNames()
IConfig getConfig()
boolean start()
throws ClusterViewManagerException
ClusterViewManagerExceptionvoid stop()
ClusterViewManager.State getState()
boolean isProxyEnabled(java.lang.String objectName)
throws ObjectNotFoundException
objectName - a name of object
ObjectNotFoundException - if none object has the given namevoid destroy()
org.ow2.util.event.api.IEventDispatcher getEventDispatcher()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||