I think the DeploymentManager.distribute(String name, DeploymentPhase phase, URL
contentURL) should become:
distribute(String name, DeploymentPhase phase, URL contentURL, boolean copyContent);
and DeploymentTarget.distribute(DeploymentID deployment) should become:
DeploymentTarget.distribute(DeploymentID deployment, boolean copyContent)
The StreamingDeploymentTarget.distribute would then either pass in the stream or just the
url via another distribute(DeploymentID) method that would be added to the
org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(InvocationRequest)
else clause:
| else
| {
| Map payload = request.getRequestPayload();
| DeploymentID dtID = (DeploymentID)
payload.get("DeploymentTargetID");
| log.debug("invoke, payload: "+payload+", parameter:
"+parameter);
| if( parameter.equals("distribute"))
| {
| DeploymentPhase phase = (DeploymentPhase) payload.get("phase");
| returnValue = distribute(dtID, phase);
| }
| else if( parameter.equals("getRepositoryNames"))
| {
| String[] names = (String[]) payload.get("names");
| DeploymentPhase phase = (DeploymentPhase) payload.get("phase");
| returnValue = getRepositoryNames(names, phase);
| }
| else if( parameter.equals("start") )
| {
| start(dtID);
| }
| else if( parameter.equals("stop") )
| {
| stop(dtID);
| }
| else if( parameter.equals("undeploy") )
| {
| undeploy(dtID);
| }
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171400#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...