protected static class SWIFT_PING.SwiftClient extends Object
Constructor and Description |
---|
SwiftClient(org.jgroups.protocols.SWIFT_PING.Authenticator authenticator)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
authenticate()
Authenticate
|
void |
createContainer(String containerName)
Create a container, which is equivalent to a bucket
|
void |
createObject(String containerName,
String objectName,
byte[] contents)
Create an object (=file)
|
void |
deleteObject(String containerName,
String objectName)
Delete a object (=file) from the storage
|
List<String> |
listObjects(String containerName)
List files in a folder
|
byte[] |
readObject(String containerName,
String objectName)
Read the content of a file
|
public SwiftClient(org.jgroups.protocols.SWIFT_PING.Authenticator authenticator)
authenticator
- Swift auth providerpublic void deleteObject(String containerName, String objectName) throws Exception
containerName
- Folder nameobjectName
- File nameIOException
Exception
public void createContainer(String containerName) throws Exception
containerName
- Name of the containerIOException
Exception
public void createObject(String containerName, String objectName, byte[] contents) throws Exception
containerName
- Name of the containerobjectName
- Name of the filecontents
- Binary content of the fileIOException
Exception
public byte[] readObject(String containerName, String objectName) throws Exception
containerName
- Name of the folderobjectName
- name of the fileIOException
Exception
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.