|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface describes partition operations.
| Method Summary | |
OperationStatus |
createPartition(ObjectEntry partObjEntry)
Creates a partition at the with the specified ObjectEntry as the partition root. |
OperationStatus |
createReplica(ObjectEntry partObjEntry,
java.lang.String servFDN,
int type)
Creates a replica of a specified partition. |
OperationStatus |
deleteReplica(ObjectEntry partObjEntry,
java.lang.String servFDN)
Deletes a replica of a specified partition. |
Replica[] |
getPartitionReplicaList(ObjectEntry servObjEntry,
java.lang.String serverToRead)
Returns a list of replicas of a partition objectEntry. |
java.lang.String |
getPartitionRoot(ObjectEntry objEntry)
Returns the fully distinguished name of the specified partition root objEntry. |
Replica[] |
getServerPartitionList(ObjectEntry servObjEntry)
Returns the list of replicas stored on a server. |
boolean |
isPartition(ObjectEntry objEntry)
Determines if an object is a partition. |
OperationStatus |
mergePartition(ObjectEntry partObjEntry)
Merges a partition with its parent partition. |
| Method Detail |
public OperationStatus createPartition(ObjectEntry partObjEntry)
throws SPIException
partObjEntry - The ObjectEntry at which the partition will be created.
SPIException - Thrown when the service provider returns an error.public OperationStatus createReplica(ObjectEntry partObjEntry,
java.lang.String servFDN,
int type)
throws SPIException
partObjEntry - The partition ObjectEntry for which to create a replica.servFDN - The FDN of the server where we will create a replica on.type - The type of the replica which we will create.
SPIException - Thrown when the service provider returns an error.public OperationStatus deleteReplica(ObjectEntry partObjEntry,
java.lang.String servFDN)
throws SPIException
partObjEntry - The partition ObjectEntry whose replica will be deleted.servFDN - The fully distinguished name of the server holding the replica.
SPIException - Thrown when the service provider returns an error.public Replica[] getPartitionReplicaList(ObjectEntry servObjEntry,
java.lang.String serverToRead)
throws SPIException
servObjEntry - The server ObjectEntery.
SPIException - Thrown when the service provider returns an error.public java.lang.String getPartitionRoot(ObjectEntry objEntry)
throws SPIException
objEntry - The object whose partition root is being retrieved.
SPIException - Thrown when the service provider returns an error.public Replica[] getServerPartitionList(ObjectEntry servObjEntry)
throws SPIException
servObjEntry - The server ObjectEntry where to get a list of replicas from.
SPIException - Thrown when the service provider returns an error.public boolean isPartition(ObjectEntry objEntry)
throws SPIException
objEntry - The object to be checked.
SPIException - Thrown when the service provider returns an error.public OperationStatus mergePartition(ObjectEntry partObjEntry)
throws SPIException
partObjEntry - The partition ObjectEntry to be merged with its parent partition.
SPIException - Thrown when the service provider returns an error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||