org.globus.cog.karajan.workflow.service
Class Service

java.lang.Object
  extended by org.globus.net.BaseServer
      extended by org.globus.cog.karajan.workflow.service.Service
All Implemented Interfaces:
Runnable

public class Service
extends BaseServer


Field Summary
 
Fields inherited from class org.globus.net.BaseServer
_server, accept, authorization, credentials, deactivator, gssMode, SO_TIMEOUT, timeout, url
 
Constructor Summary
Service(boolean secure, int port)
           
Service(boolean secure, int port, InetAddress bindTo)
           
Service(GSSCredential cred)
           
Service(GSSCredential cred, int port)
           
Service(GSSCredential cred, int port, InetAddress bindTo)
           
Service(int port)
           
 
Method Summary
 String getContactString()
           
 ServiceContext getContext()
           
protected  void handleConnection(Socket socket)
           
 void initialize()
           
static GSSCredential initializeCredentials(boolean personal, String hostcert, String hostkey)
           
 boolean isRestricted()
           
static void main(String[] args)
           
 void setRestricted(boolean restricted)
           
protected  void start()
           
 
Methods inherited from class org.globus.net.BaseServer
getCredentials, getHost, getHostname, getPort, getProtocol, getTimeout, getURL, registerDefaultDeactivator, run, setAuthorization, setGssMode, setTimeout, shutdown, unregisterDefaultDeactivator, wrapSocket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service

public Service(GSSCredential cred)
        throws IOException
Throws:
IOException

Service

public Service(boolean secure,
               int port)
        throws IOException
Throws:
IOException

Service

public Service(GSSCredential cred,
               int port)
        throws IOException
Throws:
IOException

Service

public Service(GSSCredential cred,
               int port,
               InetAddress bindTo)
        throws IOException
Throws:
IOException

Service

public Service(int port)
        throws IOException
Throws:
IOException

Service

public Service(boolean secure,
               int port,
               InetAddress bindTo)
        throws IOException
Throws:
IOException
Method Detail

initialize

public void initialize()
Overrides:
initialize in class BaseServer

initializeCredentials

public static GSSCredential initializeCredentials(boolean personal,
                                                  String hostcert,
                                                  String hostkey)
                                           throws GlobusCredentialException,
                                                  GSSException
Throws:
GlobusCredentialException
GSSException

handleConnection

protected void handleConnection(Socket socket)
Specified by:
handleConnection in class BaseServer

getContactString

public String getContactString()

start

protected void start()
Overrides:
start in class BaseServer

isRestricted

public boolean isRestricted()

setRestricted

public void setRestricted(boolean restricted)

getContext

public ServiceContext getContext()

main

public static void main(String[] args)