|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.platform.ServerStartupHelper
The ServerStartupHelper is used by the iSeries C++ startup code to help bring up the platform on an iSeries.
Most of these method will be used for JNI calls to get information on the platform being started.
Constructor Summary | |
ServerStartupHelper(java.lang.String[] args)
Create a new ServerStartupHelper |
Method Summary | |
java.lang.String |
areVerifiableServicesUsed()
When running in secure mode, a platform must be using the verifiable services. |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
void |
deregisterJob(java.lang.String[] jobInfoArray)
Deregister the job that the String array represents. |
java.lang.String |
getAnsPort()
Method getAnsPort |
java.lang.String |
getHostInfo()
Method getHostInfo |
java.lang.String |
getJobInfo(java.lang.String[] args)
This method returns a string representation of the local eServer job specified by the first element of the String[] passed in: the port. |
java.lang.String |
getJobServicePort()
Metod getJobServicePort. |
java.lang.String |
getPrincipalInfo()
Returns a string which holds all of the principal information for each local host The format should be port1?princ1?port2?princ2?port3?princ3?... |
java.lang.String |
getSecureSetting()
Method getSecureSetting. |
void |
getVerifiableAgentName()
This will get a VerifiableAgentName from the VerifiableAgentNamingService of the platform being started, and then create an AbleSecuritySupport Object. |
java.lang.String |
isServiceRunning(java.lang.String[] args)
This method checks to see if the Job or AgentNaming Services are running. |
void |
registerJob(java.lang.String[] jobInfoArray)
Register the job that the String array represents. |
void |
terminatePlatformSupport()
This will end the AblePlatformSupportImpl object that this has been dealing with and starting. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServerStartupHelper(java.lang.String[] args) throws ServerStartupException
A ServierStartupHelper will be used by C++ or other applications that do not have direct reference to the Java parts of the platform. These are intended to be used for JNI calls to make it easy to find out information about the platform being started.
args
- String array containing two arguments:
ServerStartupException
- On any error calling isJobAndNamingServicesConfigured
.
On any error calling loadLocalInfoFromPreferences
where the local
information from the preferences file will be loaded.
Method Detail |
public java.lang.String getHostInfo() throws ServerStartupException
ServerStartupException
- If poolInfoStringBuf
has not been created.public java.lang.String getJobServicePort() throws ServerStartupException
public java.lang.String getAnsPort() throws ServerStartupException
public java.lang.String isServiceRunning(java.lang.String[] args) throws ServerStartupException
String
- array containing two arguments:
ServerStartupException
- if there was an error contacting the service.public void registerJob(java.lang.String[] jobInfoArray) throws ServerStartupException
String[]
- containing the job info. Example: If it was an iSereis job, it would expect
the String array to be in this format: {port,number,user,name}public void deregisterJob(java.lang.String[] jobInfoArray) throws ServerStartupException
String[]
- containing the job info. Example: If it was an iSereis job, it would expect
the String array to be in this format: {port,number,user,name}public java.lang.String getJobInfo(java.lang.String[] args) throws ServerStartupException
It will be up to the implementation of the AbleEServerJobIfc that is being used to know the proper way to return the string if the job object is valid or not.
args
- String array whose first element is the local port of a registered job
whose job info should be returned.
args[0]
.
ServerStartupException
- On any error getting job info from the Job Service.
On any remote error.
public java.lang.String getPrincipalInfo() throws ServerStartupException
This string was created in the loadLocalInfoFromPreferences method.
ServerStartupException
- public java.lang.String getSecureSetting()
public java.lang.String areVerifiableServicesUsed()
public void terminatePlatformSupport() throws ServerStartupException
ServerStartupException
- public void getVerifiableAgentName() throws ServerStartupException
ServerStartupException
- If the VerifiableAgentNamingService is not running.
On all errors creating the new VerifiableAgentName.
If a principal was not defined for this host.
public static java.lang.String Copyright()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |