|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.protocols.SWIFT_PING.SwiftClient
protected static class SWIFT_PING.SwiftClient
A thread safe Swift client
Constructor Summary | |
---|---|
SWIFT_PING.SwiftClient(org.jgroups.protocols.SWIFT_PING.Authenticator authenticator)
Constructor |
Method Summary | |
---|---|
void |
authenticate()
Authenticate |
void |
createContainer(java.lang.String containerName)
Create a container, which is equivalent to a bucket |
void |
createObject(java.lang.String containerName,
java.lang.String objectName,
byte[] contents)
Create an object (=file) |
void |
deleteObject(java.lang.String containerName,
java.lang.String objectName)
Delete a object (=file) from the storage |
java.util.List<java.lang.String> |
listObjects(java.lang.String containerName)
List files in a folder |
byte[] |
readObject(java.lang.String containerName,
java.lang.String objectName)
Read the content of a file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SWIFT_PING.SwiftClient(org.jgroups.protocols.SWIFT_PING.Authenticator authenticator)
authenticator
- Swift auth providerMethod Detail |
---|
public void authenticate() throws java.lang.Exception
java.lang.Exception
public void deleteObject(java.lang.String containerName, java.lang.String objectName) throws java.lang.Exception
containerName
- Folder nameobjectName
- File name
java.io.IOException
java.lang.Exception
public void createContainer(java.lang.String containerName) throws java.lang.Exception
containerName
- Name of the container
java.io.IOException
java.lang.Exception
public void createObject(java.lang.String containerName, java.lang.String objectName, byte[] contents) throws java.lang.Exception
containerName
- Name of the containerobjectName
- Name of the filecontents
- Binary content of the file
java.io.IOException
java.lang.Exception
public byte[] readObject(java.lang.String containerName, java.lang.String objectName) throws java.lang.Exception
containerName
- Name of the folderobjectName
- name of the file
java.io.IOException
java.lang.Exception
public java.util.List<java.lang.String> listObjects(java.lang.String containerName) throws java.lang.Exception
containerName
- Folder name
java.io.IOException
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |