org.globus.cog.karajan.workflow.service.channels
Class ChannelManager

java.lang.Object
  extended by org.globus.cog.karajan.workflow.service.channels.ChannelManager

public class ChannelManager
extends Object


Constructor Summary
ChannelManager()
           
 
Method Summary
 String getCallbackURL()
           
 Service getLocalService()
           
static ChannelManager getManager()
           
 void registerChannel(ChannelID id, KarajanChannel channel)
           
 void releaseChannel(KarajanChannel channel)
           
 void releaseLongTerm(KarajanChannel channel)
           
 KarajanChannel reserveChannel(ChannelContext context)
           
 KarajanChannel reserveChannel(KarajanChannel channel)
           
 KarajanChannel reserveChannel(MetaChannel meta)
           
 KarajanChannel reserveChannel(String host, GSSCredential cred)
           
 void reserveLongTerm(KarajanChannel channel)
           
 void shutdownChannel(KarajanChannel channel)
           
protected  void unregisterChannel(MetaChannel channel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelManager

public ChannelManager()
Method Detail

getManager

public static ChannelManager getManager()

getCallbackURL

public String getCallbackURL()
                      throws IOException,
                             GlobusCredentialException,
                             GSSException
Throws:
IOException
GlobusCredentialException
GSSException

getLocalService

public Service getLocalService()
                        throws IOException,
                               GlobusCredentialException,
                               GSSException
Throws:
IOException
GlobusCredentialException
GSSException

registerChannel

public void registerChannel(ChannelID id,
                            KarajanChannel channel)
                     throws ChannelException
Throws:
ChannelException

reserveChannel

public KarajanChannel reserveChannel(String host,
                                     GSSCredential cred)
                              throws ChannelException
Throws:
ChannelException

reserveChannel

public KarajanChannel reserveChannel(KarajanChannel channel)
                              throws ChannelException
Throws:
ChannelException

reserveChannel

public KarajanChannel reserveChannel(ChannelContext context)
                              throws ChannelException
Throws:
ChannelException

reserveChannel

public KarajanChannel reserveChannel(MetaChannel meta)
                              throws ChannelException
Throws:
ChannelException

releaseChannel

public void releaseChannel(KarajanChannel channel)

unregisterChannel

protected void unregisterChannel(MetaChannel channel)
                          throws ChannelException
Throws:
ChannelException

shutdownChannel

public void shutdownChannel(KarajanChannel channel)
                     throws ChannelException
Throws:
ChannelException

reserveLongTerm

public void reserveLongTerm(KarajanChannel channel)
                     throws ChannelException
Throws:
ChannelException

releaseLongTerm

public void releaseLongTerm(KarajanChannel channel)
                     throws ChannelException
Throws:
ChannelException