Search in sources :

Example 1 with OperationUnsupportedException

use of javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException in project Payara by payara.

the class ProgressObjectSink method cancel.

public void cancel() throws OperationUnsupportedException {
    if (!isCancelSupported()) {
        throw new OperationUnsupportedException("cancel");
    }
    for (Iterator itr = getSources().iterator(); itr.hasNext(); ) {
        ProgressObject source = (ProgressObject) itr.next();
        source.cancel();
    }
}
Also used : Iterator(java.util.Iterator) OperationUnsupportedException(javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException) DFProgressObject(org.glassfish.deployment.client.DFProgressObject) ProgressObject(javax.enterprise.deploy.spi.status.ProgressObject)

Example 2 with OperationUnsupportedException

use of javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException in project Payara by payara.

the class ProgressObjectSink method stop.

public void stop() throws OperationUnsupportedException {
    if (!isStopSupported()) {
        throw new OperationUnsupportedException("stop");
    }
    for (Iterator itr = getSources().iterator(); itr.hasNext(); ) {
        ProgressObject source = (ProgressObject) itr.next();
        source.stop();
    }
}
Also used : Iterator(java.util.Iterator) OperationUnsupportedException(javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException) DFProgressObject(org.glassfish.deployment.client.DFProgressObject) ProgressObject(javax.enterprise.deploy.spi.status.ProgressObject)

Aggregations

Iterator (java.util.Iterator)2 OperationUnsupportedException (javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException)2 ProgressObject (javax.enterprise.deploy.spi.status.ProgressObject)2 DFProgressObject (org.glassfish.deployment.client.DFProgressObject)2