if (ci.partName != null) comp.setPartitionname(ci.partName);
List<LockComponent> components = new ArrayList<LockComponent>(1);
components.add(comp);
LockRequest rqst = new LockRequest(components, System.getProperty("user.name"),
Worker.hostname());
LockResponse rsp = txnHandler.lockNoWait(rqst);
try {
if (rsp.getState() == LockState.ACQUIRED) {
clean(ci);
}
} finally {
if (rsp.getState() == LockState.ACQUIRED) {
txnHandler.unlock(new UnlockRequest(rsp.getLockid()));
}
}
}
// Now, go back to bed until it's time to do this again