ipars
Class IparsJxtaMain
java.lang.Object
|
+--ipars.IparsJxtaMain
- All Implemented Interfaces:
- net.jxta.platform.Application, net.jxta.discovery.DiscoveryListener, java.util.EventListener, IparsListener, net.jxta.platform.Module, net.jxta.rendezvous.RendezvousListener
- public class IparsJxtaMain
- extends java.lang.Object
- implements net.jxta.platform.Application, IparsListener, net.jxta.discovery.DiscoveryListener, net.jxta.rendezvous.RendezvousListener
An application controling the IPARS Factory.
Listens to START or STOP messages from the network to START or STOP an IPARS instance on a designated host. Currently the destination host is the machine on which this application runs. Running the IPARS instance on another host requires authenticating to the remote machine. This could be done using Globus OGSA architecture.
- Author:
- : Vincent Matossian
|
Method Summary |
void |
discoveryEvent(net.jxta.discovery.DiscoveryEvent e)
|
void |
init(net.jxta.peergroup.PeerGroup group,
net.jxta.id.ID assignedID,
net.jxta.document.Advertisement implAdv)
|
void |
rendezvousEvent(net.jxta.rendezvous.RendezvousEvent rve)
|
int |
startApp(java.lang.String[] args)
|
void |
startApplication()
Starts an IPARS instance with designated input and output files. |
void |
stopApp()
|
void |
stopApplication()
Stops all ipars instances |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
refModClassID
public static final java.lang.String refModClassID
- See Also:
- Constant Field Values
refModSpecID
public static final java.lang.String refModSpecID
- See Also:
- Constant Field Values
IparsJxtaMain
public IparsJxtaMain()
init
public void init(net.jxta.peergroup.PeerGroup group,
net.jxta.id.ID assignedID,
net.jxta.document.Advertisement implAdv)
throws net.jxta.exception.PeerGroupException
- Specified by:
init in interface net.jxta.platform.Module
net.jxta.exception.PeerGroupException
startApp
public int startApp(java.lang.String[] args)
- Specified by:
startApp in interface net.jxta.platform.Module
rendezvousEvent
public void rendezvousEvent(net.jxta.rendezvous.RendezvousEvent rve)
- Specified by:
rendezvousEvent in interface net.jxta.rendezvous.RendezvousListener
stopApp
public void stopApp()
- Specified by:
stopApp in interface net.jxta.platform.Module
startApplication
public void startApplication()
- Starts an IPARS instance with designated input and output files.
Those two parameter files should be passed by argument to the function
- Specified by:
startApplication in interface IparsListener
stopApplication
public void stopApplication()
- Stops all ipars instances
- Specified by:
stopApplication in interface IparsListener
discoveryEvent
public void discoveryEvent(net.jxta.discovery.DiscoveryEvent e)
- Specified by:
discoveryEvent in interface net.jxta.discovery.DiscoveryListener