konark.manager
Class SMSAgentServer

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byajanta.server.AgentServer
                  extended bykonark.manager.SMSAgentServer
All Implemented Interfaces:
ajanta.server.AServer, GUILaunch, java.rmi.Remote, ajanta.util.Reportable, ajanta.util.Resource, java.io.Serializable

public class SMSAgentServer
extends ajanta.server.AgentServer
implements GUILaunch

A specialized AgentServer capable of launching an SMSAgent on that host Facilitates an RMI interface for a GUI to connect and launch the agents

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ajanta.server.AgentServer
atp, atp_port, ca, codeBase, cs, cs_port, dd, dsa, dsa_priv, dsa_pub, dsa_v, eg, eg_priv, eg_pub, host, logger, myCertificate, myHost, myURN, namereg, nameregistryCertificate, nameTGmap, rmiRegURL, rr, securityManager, srand, tkt
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
SMSAgentServer(java.lang.String name)
          Constructor for the SMSAgentServer.
 
Method Summary
 java.lang.String attachToSMSAgent(java.lang.String name)
          A remote method that returns the url of SMSAgent on an SMSAgentServer if the agent exists.
 java.lang.String launchSMSAgent(java.lang.String name)
          Routine for the GUI to create and SMS Agent returns url if the agent creation was successful return null otherwise
 java.util.Vector listSMSAgents()
          A remote method that returns the list of SMSAgents on an SMSAgentServer
static void main(java.lang.String[] args)
          Main routine for the SMSAgentServer
 
Methods inherited from class ajanta.server.AgentServer
authenticate, checkAdmissionPolicy, decrypt, deleteDDEntry, deleteDDEntry, encrypt, getAgentCurrentServer, getCascadedCertificate, getCertificiates, getMaxDuration, getNR, getRegURL, getTemporaryPrivateKey, getTemporaryPublicKey, launch, logEvent, ping, recall, recall, registerAgent, remoteServerTicket, report, retract, retract, sign, terminate, terminate, verify, whoAreYou
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SMSAgentServer

public SMSAgentServer(java.lang.String name)
               throws java.rmi.RemoteException
Constructor for the SMSAgentServer. Takes the name of the agentserver as a parameter

Method Detail

main

public static void main(java.lang.String[] args)
Main routine for the SMSAgentServer

Parameters:
args -

launchSMSAgent

public java.lang.String launchSMSAgent(java.lang.String name)
Routine for the GUI to create and SMS Agent returns url if the agent creation was successful return null otherwise

Specified by:
launchSMSAgent in interface GUILaunch
Parameters:
name -
Returns:
url

listSMSAgents

public java.util.Vector listSMSAgents()
                               throws java.rmi.RemoteException
A remote method that returns the list of SMSAgents on an SMSAgentServer

Specified by:
listSMSAgents in interface GUILaunch
Returns:
v
Throws:
java.rmi.RemoteException

attachToSMSAgent

public java.lang.String attachToSMSAgent(java.lang.String name)
A remote method that returns the url of SMSAgent on an SMSAgentServer if the agent exists. Otherwise it return null.

Specified by:
attachToSMSAgent in interface GUILaunch