|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.duracloud.client.ContentStoreManagerImpl
public class ContentStoreManagerImpl
Provides facilities for connecting to a set of content stores
Constructor Summary | |
---|---|
ContentStoreManagerImpl(java.lang.String host,
java.lang.String port)
Constructor for ContentStoreManagerImpl. |
|
ContentStoreManagerImpl(java.lang.String host,
java.lang.String port,
java.lang.String context)
Constructor for ContentStoreManagerImpl. |
Method Summary | |
---|---|
protected java.lang.String |
getBaseURL()
|
ContentStore |
getContentStore(java.lang.String storeID)
getContentStore |
java.util.Map<java.lang.String,ContentStore> |
getContentStores()
getContentStores |
ContentStore |
getPrimaryContentStore()
getPrimaryContentStore |
ContentStore |
getPrimaryContentStoreAsAnonymous()
Provides access to the primary content store without requiring login(). |
protected org.duracloud.common.web.RestHttpHelper |
getRestHelper()
|
void |
login(org.duracloud.common.model.Credential appCred)
|
void |
logout()
|
protected ContentStore |
newContentStoreImpl(org.duracloud.storage.domain.StorageAccount acct)
|
void |
reinitialize(java.lang.String host,
java.lang.String port,
java.lang.String context)
reconfigure |
protected void |
setRestHelper(org.duracloud.common.web.RestHttpHelper restHelper)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentStoreManagerImpl(java.lang.String host, java.lang.String port)
Constructor for ContentStoreManagerImpl.
host
- a String
object.port
- a String
object.public ContentStoreManagerImpl(java.lang.String host, java.lang.String port, java.lang.String context)
Constructor for ContentStoreManagerImpl.
host
- the host name on which DuraStore can be accessedport
- the port on which DuraStore can be accessedcontext
- the application context by which DuraStore can be accessedMethod Detail |
---|
public void reinitialize(java.lang.String host, java.lang.String port, java.lang.String context) throws ContentStoreException
ContentStoreManager
reconfigure
reinitialize
in interface ContentStoreManager
host
- of durastoreport
- of durastorecontext
- of durastore
ContentStoreException
public java.util.Map<java.lang.String,ContentStore> getContentStores() throws ContentStoreException
getContentStores
getContentStores
in interface ContentStoreManager
ContentStoreException
- if the content store list cannot be retrievedpublic ContentStore getContentStore(java.lang.String storeID) throws ContentStoreException
getContentStore
getContentStore
in interface ContentStoreManager
storeID
- the ID of a particular content store
ContentStoreException
- if the content store cannot be retrievedpublic ContentStore getPrimaryContentStore() throws ContentStoreException
getPrimaryContentStore
getPrimaryContentStore
in interface ContentStoreManager
ContentStoreException
public ContentStore getPrimaryContentStoreAsAnonymous() throws ContentStoreException
getPrimaryContentStoreAsAnonymous
getPrimaryContentStoreAsAnonymous
in interface ContentStoreManager
ContentStoreException
public void login(org.duracloud.common.model.Credential appCred)
login
in interface org.duracloud.common.model.Securable
public void logout()
logout
in interface org.duracloud.common.model.Securable
protected ContentStore newContentStoreImpl(org.duracloud.storage.domain.StorageAccount acct)
protected java.lang.String getBaseURL()
protected org.duracloud.common.web.RestHttpHelper getRestHelper()
protected void setRestHelper(org.duracloud.common.web.RestHttpHelper restHelper)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |