| Package | Description |
|---|---|
| com.ceph.rados | |
| com.ceph.rados.exceptions |
| Modifier and Type | Method and Description |
|---|---|
void |
IoCTX.append(String oid,
byte[] buf)
Append data to an object
|
void |
IoCTX.append(String oid,
byte[] buf,
int len) |
void |
IoCTX.append(String oid,
String buf)
Append data to an object
|
void |
IoCTX.clone(String dst,
long dst_off,
String src,
long src_off,
long len)
Efficiently copy a portion of one object to another
If the underlying filesystem on the OSD supports it, this will be a
copy-on-write clone.
|
String |
Rados.clusterFsid()
Get the cluster's fsid
|
RadosClusterInfo |
Rados.clusterStat()
Get the cluster stats
|
String |
Rados.confGet(String option)
Retrieve a RADOS configuration option's value
|
void |
Rados.confReadFile(File file)
Read a Ceph configuration file
|
void |
Rados.confSet(String option,
String value)
Set a RADOS configuration option
|
void |
Rados.connect()
Connect to the Ceph cluster
|
long |
IoCTX.getAuid()
Get the associated auid owner of the current pool
|
String |
IoCTX.getExtentedAttribute(String oid,
String xattrName)
Get the value of an extended attribute on an object.
|
long |
Rados.getInstanceId()
Get the global unique ID of the current connection
|
String |
IoCTX.getPoolName()
Get the pool name of the context
|
protected <T extends Number> |
RadosBase.handleReturnCode(Callable<T> callable,
String errorMsg,
Object... errorMsgArgs) |
IoCTX |
Rados.ioCtxCreate(String pool)
Create a IoCTX
|
String[] |
IoCTX.listObjects()
List all objects in a pool
|
ListCtx |
IoCTX.listObjectsPartial(int limit)
List all objects in a pool by piece.
|
int |
ListCtx.nextObjects()
List a subset of objects in a pool
|
int |
ListCtx.nextObjects(long skip)
List a subset of objects in a pool after skipping a set of ids
|
void |
Rados.poolCreate(String name)
Create a RADOS pool
|
void |
Rados.poolCreate(String name,
long auid)
Create a RADOS pool and set a auid
|
void |
Rados.poolCreate(String name,
long auid,
long crushrule)
Create a RADOS pool and set a auid and crushrule
|
void |
Rados.poolDelete(String name)
Delete a RADOS pool
|
String[] |
Rados.poolList()
List all the RADOS pools
|
long |
Rados.poolLookup(String name)
Get the ID of a RADOS pool
|
String |
Rados.poolReverseLookup(long id)
Get the name of a RADOS pool
|
RadosPoolInfo |
IoCTX.poolStat()
Stat the currently open pool
|
ReadOp.ReadResult |
ReadOp.queueRead(long offset,
long len)
Add a read operation to the rados_read_op_t via rados_read_op_read.
|
int |
IoCTX.read(String oid,
int length,
long offset,
byte[] buf)
Read data from an object
|
void |
IoCTX.remove(String oid)
Remove an object
|
void |
IoCTX.removeExtentedAttribute(String oid,
String xattrName)
Delete an extended attribute from an object.
|
void |
IoCTX.setAuid(long auid)
Set the associated auid owner of the current pool
|
void |
IoCTX.setExtentedAttribute(String oid,
String xattrName,
String val)
Set an extended attribute on an object.
|
void |
IoCTX.snapCreate(String snapname)
Create a snapshot
|
String |
IoCTX.snapGetName(long id)
Get the name of a snapshot by it's ID
|
long |
IoCTX.snapGetStamp(long id)
Get the timestamp of a snapshot
|
Long[] |
IoCTX.snapList()
List all snapshots
|
long |
IoCTX.snapLookup(String snapname)
Get the ID of a snapshot
|
void |
IoCTX.snapRemove(String snapname)
Remove a snapshot
|
RadosObjectInfo |
IoCTX.stat(String oid)
Stat an object
|
void |
IoCTX.truncate(String oid,
long size)
Resize an object
|
void |
IoCTX.write(String oid,
byte[] buf)
Write to an object without an offset
|
void |
IoCTX.write(String oid,
byte[] buf,
long offset)
Write to an object
|
void |
IoCTX.write(String oid,
String buf)
Write to an object without an offset
|
void |
IoCTX.write(String oid,
String buf,
long offset)
Write to an object without an offset
|
void |
IoCTX.writeFull(String oid,
byte[] buf,
int len)
Write an entire object
The object is filled with the provided data.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RadosAlreadyConnectedException
Thrown when an operation is being called which is not allowed
in a already connected state.
|
class |
RadosArgumentOutOfDomainException
Thrown when an argument is out of domain
|
class |
RadosInvalidArgumentException
Thrown when a invalid argument is being passed
|
class |
RadosNotFoundException
Thrown when not able to found given object
|
class |
RadosOperationInProgressException
Thrown when a operation is being called which is already in progress, e.g.
|
class |
RadosPermissionException
Thrown when an operation it not permitted
|
class |
RadosReadOnlyException
Thrown when only ready only operations are allowed
|
class |
RadosTimeoutException
Thrown when a timeout occurs
|
Copyright © 2015. All rights reserved.