org.ow2.jonas.versioning
Interface VirtualContextJMXInterface

All Known Subinterfaces:
VirtualContextMBean, VirtualJNDIBindingMBean
All Known Implementing Classes:
AbsVirtualContext, VirtualContext, VirtualJNDIBinding

public interface VirtualContextJMXInterface

JMX Management Interface for any virtual context.

Author:
Frederic Germaneau, S. Ali Tokmen

Method Summary
 Map<String,String> getContexts()
           
 boolean hasContext(String versionedPath)
          Checks whether a given context has been registered.
 boolean rebindContext(String versionedPath, String policy)
          Rebinds a context.
 boolean removeVirtualContext()
          Removes this virtual context.
 

Method Detail

hasContext

boolean hasContext(String versionedPath)
Checks whether a given context has been registered.

Parameters:
versionedPath - Versioned path of the context.
Returns:
true if found, false otherwise.

getContexts

Map<String,String> getContexts()
Returns:
All versioned contexts with their policies for this virtual context.

rebindContext

boolean rebindContext(String versionedPath,
                      String policy)
Rebinds a context.

Parameters:
versionedPath - Versioned path of the context.
policy - New policy.
Returns:
true if succeeded, false otherwise.

removeVirtualContext

boolean removeVirtualContext()
Removes this virtual context.

Returns:
true if succeeded, false otherwise.


Copyright © 2010 OW2 Consortium. All Rights Reserved.