Ejemplo n.º 1
0
 ClientRequest removePersistentRebootRequest(boolean global, String identifier)
     throws MessageInvalidException {
   FCPClient client = global ? server.globalRebootClient : getRebootClient();
   ClientRequest req = client.getRequest(identifier, null);
   if (req != null) {
     client.removeByIdentifier(identifier, true, server, null, server.core.clientContext);
   }
   return req;
 }
Ejemplo n.º 2
0
 ClientRequest removePersistentForeverRequest(
     boolean global, String identifier, ObjectContainer container) throws MessageInvalidException {
   FCPClient client = global ? server.globalForeverClient : getForeverClient(container);
   container.activate(client, 1);
   ClientRequest req = client.getRequest(identifier, container);
   if (req != null) {
     client.removeByIdentifier(identifier, true, server, container, server.core.clientContext);
   }
   if (!global) container.deactivate(client, 1);
   return req;
 }