net.kwfgrid.gwes.client
Class GWESClient

java.lang.Object
  extended by net.kwfgrid.gwes.client.GWESClient

public class GWESClient
extends Object

Version:
$Id: GWESClient.java 1537 2011-07-27 15:34:04Z hoheisel $
Author:
Andreas Hoheisel (www.andreas-hoheisel.de)

Field Summary
static int COMMAND_ABORT
           
static int COMMAND_GET_ACTIVITIES
           
static int COMMAND_GET_DATA
           
static int COMMAND_GET_DESCRIPTION
           
static int COMMAND_GET_STATUS
           
static int COMMAND_GET_WORKFLOW_DESCRIPTION
           
static int COMMAND_GET_WORKFLOW_IDS
           
static int COMMAND_GET_WORKFLOW_PROPERTIES
           
static int COMMAND_GET_WORKFLOW_STATUS_ARRAY
           
static int COMMAND_INITIATE
           
static int COMMAND_INITIATE_START
           
static int COMMAND_MONITOR
           
static int COMMAND_REMOVE
           
static int COMMAND_RESTART
           
static int COMMAND_RESTORE
           
static int COMMAND_RESUME
           
static int COMMAND_SET_DESCRIPTION
           
static int COMMAND_SET_WORKFLOW_PROPERTY
           
static int COMMAND_START
           
static int COMMAND_STORE
           
static int COMMAND_SUSPEND
           
 RemoteGWES gwes
           
 String host
           
 int port
           
 String userID
           
 
Constructor Summary
GWESClient()
           
GWESClient(URL gwesServiceUrl, String userID)
           
 
Method Summary
static String getUserIDWithCredential(String userName)
          Load local GSS credential and extend userID
static void main(String[] args)
           
static String readFile(String fileName)
          Read a file and put the contents to a string
static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND_INITIATE

public static final int COMMAND_INITIATE
See Also:
Constant Field Values

COMMAND_INITIATE_START

public static final int COMMAND_INITIATE_START
See Also:
Constant Field Values

COMMAND_START

public static final int COMMAND_START
See Also:
Constant Field Values

COMMAND_SUSPEND

public static final int COMMAND_SUSPEND
See Also:
Constant Field Values

COMMAND_RESUME

public static final int COMMAND_RESUME
See Also:
Constant Field Values

COMMAND_STORE

public static final int COMMAND_STORE
See Also:
Constant Field Values

COMMAND_RESTORE

public static final int COMMAND_RESTORE
See Also:
Constant Field Values

COMMAND_RESTART

public static final int COMMAND_RESTART
See Also:
Constant Field Values

COMMAND_ABORT

public static final int COMMAND_ABORT
See Also:
Constant Field Values

COMMAND_GET_WORKFLOW_DESCRIPTION

public static final int COMMAND_GET_WORKFLOW_DESCRIPTION
See Also:
Constant Field Values

COMMAND_GET_STATUS

public static final int COMMAND_GET_STATUS
See Also:
Constant Field Values

COMMAND_GET_WORKFLOW_IDS

public static final int COMMAND_GET_WORKFLOW_IDS
See Also:
Constant Field Values

COMMAND_GET_WORKFLOW_STATUS_ARRAY

public static final int COMMAND_GET_WORKFLOW_STATUS_ARRAY
See Also:
Constant Field Values

COMMAND_GET_DATA

public static final int COMMAND_GET_DATA
See Also:
Constant Field Values

COMMAND_MONITOR

public static final int COMMAND_MONITOR
See Also:
Constant Field Values

COMMAND_REMOVE

public static final int COMMAND_REMOVE
See Also:
Constant Field Values

COMMAND_GET_WORKFLOW_PROPERTIES

public static final int COMMAND_GET_WORKFLOW_PROPERTIES
See Also:
Constant Field Values

COMMAND_SET_WORKFLOW_PROPERTY

public static final int COMMAND_SET_WORKFLOW_PROPERTY
See Also:
Constant Field Values

COMMAND_GET_DESCRIPTION

public static final int COMMAND_GET_DESCRIPTION
See Also:
Constant Field Values

COMMAND_SET_DESCRIPTION

public static final int COMMAND_SET_DESCRIPTION
See Also:
Constant Field Values

COMMAND_GET_ACTIVITIES

public static final int COMMAND_GET_ACTIVITIES
See Also:
Constant Field Values

gwes

public RemoteGWES gwes

host

public String host

port

public int port

userID

public String userID
Constructor Detail

GWESClient

public GWESClient()
           throws MalformedURLException
Throws:
MalformedURLException

GWESClient

public GWESClient(URL gwesServiceUrl,
                  String userID)
Method Detail

main

public static void main(String[] args)

getUserIDWithCredential

public static String getUserIDWithCredential(String userName)
                                      throws GSSException
Load local GSS credential and extend userID

Parameters:
userName -
Returns:
userID + "|" + GSScredential
Throws:
GSSException

usage

public static void usage()

readFile

public static String readFile(String fileName)
Read a file and put the contents to a string

Parameters:
fileName - File name of the file to read
Returns:
String with the contents of the file


Copyright © 2005-2011 Fraunhofer FIRST. All Rights Reserved.