|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.lbl.srm.client.wsdl.SRMServer
public class SRMServer
GSI-based connection is established and ping the BeStMan for version info and its state info. This may happen only once when the web portal starts up. SRMServer class is responsible for establishing and maintaining connections with the SRM Server.
Constructor Summary | |
---|---|
SRMServer(java.lang.String log4jlocation,
java.lang.String logPath,
boolean debug)
constructor |
|
SRMServer(java.lang.String proxyFile,
java.lang.String logPath,
java.lang.String log4jlocation,
boolean debug)
constructor |
Method Summary | |
---|---|
boolean |
connect(java.lang.String serverUrl)
connects to the SRM server, the service path provided in the serverUrl it creates an SRM server object. |
void |
disconnect()
disconnect from the connected SRM server |
java.lang.String |
findInfo(java.lang.String key)
For the given key, it returns the matching value from the extra info provided by the SRM Server |
org.ietf.jgss.GSSCredential |
getCredential()
|
boolean |
getDebug()
|
java.lang.String |
getEndPoint()
|
ISRM |
getISRM()
|
java.lang.String |
getLog4jLocation()
|
java.util.logging.Logger |
getLogger()
|
boolean |
getSilent()
|
java.lang.String |
getStatus()
Returns SRM_SUCCESS when the ping command is successful. |
Stub |
getStub()
|
java.lang.String |
getVersionInfo()
Returns the version Information of the SRM Server |
boolean |
ping(java.lang.String uid)
Check the status of the SRM server. |
void |
printInfo()
prints the information from the map returned by the ping call |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SRMServer(java.lang.String log4jlocation, java.lang.String logPath, boolean debug) throws SRMClientException
log4jlocation
- Location where the log4j.properties existslogPath
- path where log files can go. when logpath is providedthe output from the console will go into the logfilesdebug
- true or false
SRMClientException
public SRMServer(java.lang.String proxyFile, java.lang.String logPath, java.lang.String log4jlocation, boolean debug) throws SRMClientException
proxyFile
- Location where proxy file existslog4jlocation
- Location where the log4j.properties existslogPath
- path where log files can go. when logpath is providedthe output from the console will go into the logfilesdebug
- true or false
SRMClientException
Method Detail |
---|
public boolean getDebug()
public boolean getSilent()
public boolean connect(java.lang.String serverUrl) throws SRMClientException, java.lang.Exception
serverUrl
- -- the serverUrl for the SRM server to be connected
SRMClientException
java.lang.Exception
public void disconnect()
public java.lang.String getEndPoint()
public Stub getStub()
public ISRM getISRM()
public org.ietf.jgss.GSSCredential getCredential()
public java.util.logging.Logger getLogger()
public java.lang.String getLog4jLocation()
public boolean ping(java.lang.String uid) throws SRMClientException, java.lang.Exception
uid
- Authorization Id
SRMClientException
java.lang.Exception
public java.lang.String getVersionInfo()
public java.lang.String getStatus()
String
public java.lang.String findInfo(java.lang.String key) throws SRMClientException
key
- key for the extra info
SRMClientException
String
public void printInfo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |