de.jw.cloud42.webapp
Class RemotingManager

java.lang.Object
  extended by de.jw.cloud42.webapp.RemotingManager

@Name(value="remotingManager")
@Scope(value=SESSION)
@Synchronized(timeout=1000000000L)
public class RemotingManager
extends java.lang.Object

Seam component wrapper around remoting functions of Cloud42.

Author:
fbitzer

Constructor Summary
RemotingManager()
           
 
Method Summary
 void execute(java.lang.String dnsName, java.lang.String keyName)
          Execute a command or a batch file.
 void fileUploadListener(org.richfaces.event.UploadEvent e)
          fileUploadListener function for RichFaces fileupload component.
 byte[] getBatchFile()
           
 java.lang.String getCommand()
           
 RemoteResult getResult()
           
 boolean isUseBatch()
           
 void resetRemotingDialog()
          Reset the remoting dialog by resetting bean values.
 void setBatchFile(byte[] batchFile)
           
 void setCommand(java.lang.String command)
           
 void setResult(RemoteResult result)
           
 void setUseBatch(boolean useBatch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemotingManager

public RemotingManager()
Method Detail

fileUploadListener

public void fileUploadListener(org.richfaces.event.UploadEvent e)
fileUploadListener function for RichFaces fileupload component. Reads the content of the uploaded file into a byte array and stores it in the batchFile property.

Parameters:
e -

execute

public void execute(java.lang.String dnsName,
                    java.lang.String keyName)
Execute a command or a batch file.

Parameters:
dnsName - Hostname of AMI.
keyName - Name of keypair to use.

resetRemotingDialog

public void resetRemotingDialog()
Reset the remoting dialog by resetting bean values.


getCommand

public java.lang.String getCommand()
Returns:
the command

setCommand

public void setCommand(java.lang.String command)
Parameters:
command - the command to set

isUseBatch

public boolean isUseBatch()
Returns:
the useBatch

setUseBatch

public void setUseBatch(boolean useBatch)
Parameters:
useBatch - the useBatch to set

getBatchFile

public byte[] getBatchFile()
Returns:
the batchFile

setBatchFile

public void setBatchFile(byte[] batchFile)
Parameters:
batchFile - the batchFile to set

getResult

public RemoteResult getResult()
Returns:
the result

setResult

public void setResult(RemoteResult result)
Parameters:
result - the result to set


Copyright © 2010 just works! Software. All Rights Reserved.