org.modeshape.jboss.managed
Class ManagedConnector

java.lang.Object
  extended by org.modeshape.jboss.managed.ManagedConnector
All Implemented Interfaces:
ModeShapeManagedObject

public class ManagedConnector
extends Object
implements ModeShapeManagedObject

A ManagedConnector instance is a JBoss managed object for a repository source.


Constructor Summary
protected ManagedConnector()
           
  ManagedConnector(RepositorySource connector)
          Creates a JBoss managed object for the specified repository source.
 
Method Summary
 String getName()
          Obtains the name of the repository source.
 int getRetryLimit()
          Obtains the maximum number of retries to perform on an operation.
 boolean isSupportingCreatingWorkspaces()
          Indicates if the repository source supports creating workspaces.
 boolean isSupportingEvents()
          Indicates if the repository source supports publishing change events.
 boolean isSupportingLocks()
          Indicates if the repository source supports creating locks.
 boolean isSupportingQueries()
          Indicates if the repository source supports queries.
 boolean isSupportingReferences()
          Indicates if the repository source supports references by identifiers.
 boolean isSupportingSameNameSiblings()
          Indicates if the repository source supports siblings being able to have the same name.
 boolean isSupportingSearches()
          Indicates if the repository source supports full-text searches.
 boolean isSupportingUpdates()
          Indicates if the repository source supports updates.
 boolean ping()
          Indicates if the connection is valid and alive.
 void setRetryLimit(int limit)
          Sets the maximum number of retries to perform on an operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedConnector

protected ManagedConnector()

ManagedConnector

public ManagedConnector(RepositorySource connector)
Creates a JBoss managed object for the specified repository source.

Parameters:
connector - the repository source being managed (never null)
Method Detail

getRetryLimit

public int getRetryLimit()
Obtains the maximum number of retries to perform on an operation. This is a JBoss managed writable property.

Returns:
the number of retries

getName

public String getName()
Obtains the name of the repository source. This is a JBoss managed readonly property.

Returns:
the name of the connector

isSupportingCreatingWorkspaces

public boolean isSupportingCreatingWorkspaces()
Indicates if the repository source supports creating workspaces. This is a JBoss managed readonly property.

Returns:
true if created workspaces is supported

isSupportingEvents

public boolean isSupportingEvents()
Indicates if the repository source supports publishing change events. This is a JBoss managed readonly property.

Returns:
true if events are supported

isSupportingLocks

public boolean isSupportingLocks()
Indicates if the repository source supports creating locks. This is a JBoss managed readonly property.

Returns:
true if locking is supported

isSupportingQueries

public boolean isSupportingQueries()
Indicates if the repository source supports queries. This is a JBoss managed readonly property.

Returns:
true if queries are supported

isSupportingReferences

public boolean isSupportingReferences()
Indicates if the repository source supports references by identifiers. This is a JBoss managed readonly property.

Returns:
true if references are supported

isSupportingSameNameSiblings

public boolean isSupportingSameNameSiblings()
Indicates if the repository source supports siblings being able to have the same name. This is a JBoss managed readonly property.

Returns:
true if same name siblings are supported

isSupportingSearches

public boolean isSupportingSearches()
Indicates if the repository source supports full-text searches. This is a JBoss managed readonly property.

Returns:
true if searches are supported

isSupportingUpdates

public boolean isSupportingUpdates()
Indicates if the repository source supports updates. This is a JBoss managed readonly property.

Returns:
true if updates are supported

ping

public boolean ping()
Indicates if the connection is valid and alive. This is a JBoss managed operation.

Returns:
true if connection can still be used

setRetryLimit

public void setRetryLimit(int limit)
Sets the maximum number of retries to perform on an operation. This is a JBoss managed property.

Parameters:
limit - the new retry limit (must be non-negative)


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.