|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientClusterViewProvider
Interface of providers which offers cluster view to the clients.
org.ow2.cmi.client.ClientClusterViewManagerImpl| Method Summary | |
|---|---|
byte[] |
getBytecode(java.lang.String binaryName)
Returns the bytecode of the class that has the given binary name. |
java.util.Collection<CMIReference> |
getCMIReferences(java.lang.String objectName,
java.lang.String protocolName)
Gets the nodes list of a given object and protocol. |
IUpdatedClientConfig |
getConfiguration()
|
long |
getDateOfConfiguration()
|
long |
getDateOfProperties(java.lang.String objectName)
Returns the date of the last properties for a given object. |
int |
getDelayToRefresh()
Returns the delay to refresh the cluster view. |
ImmutableClusteredObjectInfos |
getImmutableInfos(java.lang.String objectName)
|
int |
getLoadFactor(ServerRef serverRef)
Returns the load-factor for the server with the given address. |
java.lang.Class<? extends IPolicy<?>> |
getPolicyClass(java.lang.String objectName)
Gets the class of a given policy. |
java.lang.String |
getPolicyClassName(java.lang.String objectName)
Returns the name of the class of policy for the 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 for the object with the given name. |
java.lang.Class<? extends IStrategy<?>> |
getStrategyClass(java.lang.String objectName)
Gets a class of strategy for the object with the given name. |
java.lang.String |
getStrategyClassName(java.lang.String objectName)
Returns the name of the class of strategy for the object with the given name. |
boolean |
isClustered(java.lang.String objectName)
Returns true if the specified object is clustered. |
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)
Return true if the object with the given name is replicated for high-availability. |
void |
registerClient(java.util.UUID uuid)
Register a new client (for statistic purposes). |
| Method Detail |
|---|
int getDelayToRefresh()
throws java.rmi.RemoteException
java.rmi.RemoteException - if there are errors on the protocol
java.lang.String getPolicyClassName(java.lang.String objectName)
throws java.rmi.RemoteException,
ObjectNotFoundException
objectName - a name of object
java.rmi.RemoteException - if there are errors on the protocol
ObjectNotFoundException - if none object has the given name
java.lang.Class<? extends IPolicy<?>> getPolicyClass(java.lang.String objectName)
throws java.rmi.RemoteException,
ObjectNotFoundException,
ClusterViewManagerException
objectName - a name of object
java.rmi.RemoteException - if there are errors on the protocol
ObjectNotFoundException - if none object has the given name
ClusterViewManagerException
java.lang.String getStrategyClassName(java.lang.String objectName)
throws java.rmi.RemoteException,
ObjectNotFoundException
objectName - a name of object
java.rmi.RemoteException - if there are errors on the protocol
ObjectNotFoundException - if none object has the given name
java.lang.Class<? extends IStrategy<?>> getStrategyClass(java.lang.String objectName)
throws java.rmi.RemoteException,
ObjectNotFoundException,
ClusterViewManagerException
objectName - a name of object
java.rmi.RemoteException - if there are errors on the protocol
ObjectNotFoundException - if none object has the given name
ClusterViewManagerException
long getDateOfProperties(java.lang.String objectName)
throws java.rmi.RemoteException,
ObjectNotFoundException
objectName - a name of object
java.rmi.RemoteException - if there are errors on the protocol
ObjectNotFoundException - if none object has the given name
java.util.Map<java.lang.String,java.lang.Object> getPropertiesForPolicy(java.lang.String objectName)
throws java.rmi.RemoteException,
ObjectNotFoundException
objectName - a name of object
java.rmi.RemoteException - if there are errors on the protocol
ObjectNotFoundException - if none object has the given name
java.util.Collection<CMIReference> getCMIReferences(java.lang.String objectName,
java.lang.String protocolName)
throws java.rmi.RemoteException,
ObjectNotFoundException
objectName - The name of objectprotocolName - The protocol of the client
java.rmi.RemoteException - if there are errors on the protocol
ObjectNotFoundException - if none object has the given name
byte[] getBytecode(java.lang.String binaryName)
throws java.rmi.RemoteException,
ClientClusterViewProviderException
binaryName - a binary name of a class
java.rmi.RemoteException - if the connection failed
ClientClusterViewProviderException - if an I/O exception happens on server over the reading of the bytecode
org.ow2.util.pool.api.IPoolConfiguration getPoolConfiguration(java.lang.String objectName)
throws java.rmi.RemoteException,
ObjectNotFoundException
objectName - a name of object
java.rmi.RemoteException - if there are errors on the protocol
ObjectNotFoundException - if none object has the given name
boolean isPoolToEmpty(java.lang.String objectName)
throws java.rmi.RemoteException,
ObjectNotFoundException
objectName - a name of object
java.rmi.RemoteException - if there are errors on the protocol
ObjectNotFoundException - if none object has the given name
int getLoadFactor(ServerRef serverRef)
throws java.rmi.RemoteException,
ServerNotFoundException
serverRef - a reference on a server
java.rmi.RemoteException - if there are errors on the protocol
ServerNotFoundException - if none server has the given address
void registerClient(java.util.UUID uuid)
throws java.rmi.RemoteException
uuid - the Universally Unique Identifier of the client
java.rmi.RemoteException - if there are errors on the protocol
boolean isReplicated(java.lang.String objectName)
throws java.rmi.RemoteException,
ObjectNotFoundException
objectName - a name of object
java.rmi.RemoteException - if there are errors on the protocol
ObjectNotFoundException - if none object has the given name
ImmutableClusteredObjectInfos getImmutableInfos(java.lang.String objectName)
throws java.rmi.RemoteException,
ObjectNotFoundException
java.rmi.RemoteException
ObjectNotFoundException
IUpdatedClientConfig getConfiguration()
throws java.rmi.RemoteException
java.rmi.RemoteException
long getDateOfConfiguration()
throws java.rmi.RemoteException
java.rmi.RemoteException
boolean isClustered(java.lang.String objectName)
throws java.rmi.RemoteException
name - a name of object
java.rmi.RemoteException - if there are errors on the protocol
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||