How to create SRB actors
details on how to create SRB actors that conform to the dart srb actor standard!
Below is the process which allows you to create your own SRB actors which use the SRB Server actor to gain access to SRB servers.
- make a class that extends org.dart.srb.SRBActor. This creates:
- Parameter: srbServerIDParameter. Which is the parameter for the server id that is to be used.
- function: getSRBFileSystem(). which returns the instance of edu.sdsc.grid.io.srb.SRBFileSystem for the SRB server
- function: serverId(). which returns the srbServerIDParameter parameter.
- done!
org.dart.srb.SRBActor extends ptolemy.actor.TypedAtomicActor so you can continue to build your actor then as if it was extending that class.
Then whenever you need access to an instance of edu.sdsc.grid.io.srb.SRBFileSystem call the getSRBFileSystem() function to retrieve one.