org.ow2.cmi.controller.client
Interface ClientClusterViewManager

All Superinterfaces:
ClusterViewManager, CMIManagedObject

public interface ClientClusterViewManager
extends ClusterViewManager

Interface for a manager of the cluster view at client-side.

Author:
The new CMI team

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.cmi.controller.common.ClusterViewManager
ClusterViewManager.State
 
Method Summary
 byte[] getBytecode(java.lang.String binaryName)
          Returns the bytecode of the class with the given binary name.
 java.lang.String getInitialContextFactoryName()
          Returns a name of class that implements the interface InitialContextFactory.
 ServerId getLocalRegistryId()
           
 java.lang.String getProtocolName()
           
 java.util.List<ServerRef> getProviderURLs()
          Returns the list of Provider URL.
 void pullAndUpdateObjectInfos(java.lang.String objectName)
          Updates informations about clustering for the object with the given name.
 void updateClusterView()
          Updates informations about clustering for every watched objects.
 
Methods inherited from interface org.ow2.cmi.controller.common.ClusterViewManager
addObjectToWatch, destroy, getApplicationExceptionNames, getClusterName, getCMIReferences, getConfig, getDateOfProperties, getDelayToRefresh, getEventDispatcher, getInitialContextFactoryName, getInterface, getLoadFactor, getObjectNames, getPolicy, getPolicyClass, getPolicyClassName, getPool, getPoolConfiguration, getPropertiesForPolicy, getPropertyForPolicy, getProtocols, getRemoteClass, getSessionId, getState, getStrategyClass, getStrategyClassName, getUUID, hasState, isClustered, isPoolToEmpty, isProxyEnabled, isReplicated, setPool, start, stop
 
Methods inherited from interface org.ow2.cmi.event.CMIManagedObject
getCMIManagedObjectId, getComponent
 

Method Detail

getInitialContextFactoryName

java.lang.String getInitialContextFactoryName()
Returns a name of class that implements the interface InitialContextFactory.

Returns:
a name of class that implements the interface InitialContextFactory

getProviderURLs

java.util.List<ServerRef> getProviderURLs()
Returns the list of Provider URL.

Returns:
providers of the cluster view

getProtocolName

java.lang.String getProtocolName()
Returns:
the protocol name

getBytecode

byte[] getBytecode(java.lang.String binaryName)
                   throws ClientClusterViewManagerException
Returns the bytecode of the class with the given binary name.

Parameters:
binaryName - a binary name of a class
Returns:
the bytecode of the class with the given binary name
Throws:
ClientClusterViewManagerException - if the bytecode cannot obtained

updateClusterView

void updateClusterView()
                       throws ClientClusterViewManagerException,
                              java.rmi.RemoteException
Updates informations about clustering for every watched objects.

Throws:
ClientClusterViewManagerException - if the update failed
java.rmi.RemoteException

pullAndUpdateObjectInfos

void pullAndUpdateObjectInfos(java.lang.String objectName)
                              throws ObjectNotFoundException,
                                     java.rmi.RemoteException
Updates informations about clustering for the object with the given name.

Parameters:
objectName - a name of object
Throws:
ObjectNotFoundException - if no object is bound with the given name
java.rmi.RemoteException

getLocalRegistryId

ServerId getLocalRegistryId()
Returns:


Copyright © 2009 OW2 Consortium. All Rights Reserved.