|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.RepositoryAgent
public class RepositoryAgent
This is main class responsible for initializing repository client side and it must be used for all operations on repository.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_CONFIGURATION_FILENAME
Default configuration filename used for reading configuration. |
static java.lang.String |
DEFAULT_REPOSITORY_CONTEXT
Default repository context path used for initializing repository, if context path is not specified. |
static java.lang.String |
DEFAULT_REPOSITORY_HOST
Default repository host name used for initializing repository, if host name is not specified. |
static int |
DEFAULT_REPOSITORY_PORT
Default repository port used for initializing repository, if port is not specified. |
static java.lang.String |
DEFAULT_REPOSITORY_URL
Default repository URL used for initializing repository, if URL is not specified. |
static org.apache.commons.httpclient.HttpClient |
httpClientInstance
Global HttpClient instance, which should be used in any Http transfer. |
Constructor Summary | |
---|---|
RepositoryAgent(NodeConfiguration nodeConfiguration)
Basic constructor, which initialize entire repository with NodeConfiguration object. |
Method Summary | |
---|---|
RepositoryFacade |
getFacade()
Returns repository facade - for accessing the repository, primarily use facade. |
static ModelFactory |
getFactory()
Returns EMF model factory to create new model objects - DON'T USE THIS FACTORY UNLESS YOU KNOW WHAT YOU ARE DOING - Instead use create methods on RepositoryData or even better
RepositoryFacade . |
NodeConfiguration |
getNodeConfiguration()
Returns active node configuration of this RepositoryAgent instance. |
static ModelPackage |
getPackage()
Returns EMF model package to retrieve all information about metamodel of Sofa 2.0 model. |
RepositoryPersister |
getPersister()
Returns persister object for storing new objects into repository. |
RepositoryQuery |
getQuery()
Returns query object for looking up objects in repository. |
static RepositoryAgent |
init()
Tries to initialize RepositoryAgent from configuration loaded by ConfigurationHelper from default filename. |
static RepositoryAgent |
init(java.net.URL url)
Tries to initialize class from configuration loaded by ConfigurationHelper from URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_REPOSITORY_URL
public static final int DEFAULT_REPOSITORY_PORT
public static final java.lang.String DEFAULT_REPOSITORY_HOST
public static final java.lang.String DEFAULT_REPOSITORY_CONTEXT
public static final java.lang.String DEFAULT_CONFIGURATION_FILENAME
public static org.apache.commons.httpclient.HttpClient httpClientInstance
Constructor Detail |
---|
public RepositoryAgent(NodeConfiguration nodeConfiguration)
nodeConfiguration
- Node configuration with all necessary connection data.Method Detail |
---|
public static ModelPackage getPackage()
public static ModelFactory getFactory()
RepositoryData
or even better
RepositoryFacade
.
public RepositoryQuery getQuery()
public RepositoryPersister getPersister()
public NodeConfiguration getNodeConfiguration()
public static RepositoryAgent init() throws java.io.IOException
ConfigurationHelper
from default filename.
java.io.IOException
public static RepositoryAgent init(java.net.URL url) throws java.io.IOException
ConfigurationHelper
from URL.
url
- URL object specifying host, port and file with configuration
stored in XML file (ussually Sofa RepositoryServer is used)
java.io.IOException
public RepositoryFacade getFacade()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |