|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dynalivery.harmoni.HarmoniClient
| Field Summary | |
static java.lang.String |
CRYSTAL7
Crystal 7 Server Type |
static java.lang.String |
CRYSTAL9
Crystal 9 Server Type |
java.lang.String |
folder
folder variable |
static int |
HARMONI_FAIL
Failure return code. |
static java.lang.String |
HARMONI_NAME
The default Harmoni name |
static int |
HARMONI_OK
Successful return code. |
int |
priority
priority variable |
static int |
PRIORITY_HIGH
HIGH PRIORITY variable |
static int |
PRIORITY_LOW
LOW PRIORITY variable |
static int |
PRIORITY_MEDIUM
MEDIUM PRIORITY variable |
boolean |
verbose
verbose variable |
static java.lang.String |
WORD
Word Server Type |
| Constructor Summary | |
HarmoniClient()
Construct a Harmoni client context for Java applications with given console, command-line arguments and property-array. |
|
HarmoniClient(LogService logger)
Construct a Harmoni client context for Java applications with given console, command-line arguments and property-array. |
|
| Method Summary | |
void |
Connect()
Connect client to selected Harmoni services. |
void |
Connect(boolean useLoadBalancer)
Connect client to selected Harmoni services. |
boolean |
Connected(java.lang.String name)
Is the Client connected to named service. |
void |
Disconnect()
Disconnect client from all Harmoni services. |
java.lang.Object |
GetAPI(java.lang.String name)
Get an API object from the registry. |
boolean |
getArchiveFileReturnOption()
Getter method for zipFlag member. |
java.lang.String |
getClientName()
Getter method for clientName member |
HarmoniConfigServer |
getConfigServer()
Returns the config server object associated with this client. |
boolean |
getDisableServerTimeout()
Getter method for disableServerTimeout flag. |
java.lang.String |
getFolder()
Getter method for folder member |
HarmoniGateway |
getGateway()
Returns the gateway server object associated with this client. |
static java.lang.String |
getHost()
Return the Harmoni client's host IP-address. |
static LogService |
getLog()
Return the Harmoni client's log |
java.lang.String |
getName()
Return the client's name. |
org.omg.CORBA.ORB |
getORB()
Return the client orb. |
java.lang.String[] |
GetPrinterInfo(java.lang.String printerName,
java.lang.StringBuffer driverName,
HarmoniDEVMODE devMode)
This method returns the printer Info given the Printer Name |
java.lang.String[] |
GetPrinterNames()
This method returns the names of the printers attached to the report server |
int |
getPriority()
Getter method for priority member. |
HarmoniServer |
getServer()
Returns the Harmoniserver object associated with this client. |
java.lang.String |
getServerType()
|
HarmoniService |
GetService(java.lang.String name)
Get a service from the client's registry. |
static org.omg.CORBA.ORB |
getSharedORB()
Get the shared ORB instance. |
boolean |
getVerbose()
Getter method for verbose member |
PCREEngine |
OpenCrystalEngine()
Acquire a print-engine for this client. |
WordEngine |
OpenWordEngine()
Acquire a print-engine for this client. |
void |
PutAPI(java.lang.String name,
java.lang.Object api)
Put an API object into the registry. |
void |
PutService(HarmoniService service)
Enter a Harmoni service in the client's registry. |
void |
Quit()
Short-hand for Quit(HarmoniClient.Harmoni_OK). |
void |
Quit(int code)
Disconnect client from all Harmoni services. |
void |
RemoveAPI(java.lang.String name)
Remove an API object from the registry. |
void |
RemoveService(java.lang.String name)
Remove a service from the client's registry. |
void |
ResetReportServer(HarmoniReportServerInfo rsinfo)
|
void |
SelectReportServer(java.lang.String method)
Use the Load balancer to select a Gateway by the given method. |
void |
setArchiveFileReturnOption(boolean zipOption)
Setter method for zipFlag member. |
void |
setClientName(java.lang.String value)
Setter method for clientName member |
void |
setConfigServer(HarmoniConfigServer newConfigServer)
Sets the config server object associated with this client. |
void |
setDisableServerTimeout(boolean timeoutFlag)
Setter method for disableServerTimeout flag. |
void |
setFolder(java.lang.String value)
Setter method for folder member |
void |
setGatewayServer(HarmoniGateway newGatewayServer)
Sets the gateway server object associated with this client. |
void |
setLog(LogService logger)
|
void |
setName(java.lang.String name)
Set the client's name. |
void |
setPriority(int clientPriority)
Setter method for priority member. |
void |
setReportEngineServer(HarmoniServer newReportEngineServer)
Sets the Harmoniserver object associated with this client. |
void |
setServerType(java.lang.String typ)
|
static void |
setSharedORB(org.omg.CORBA.ORB theSharedORB)
Set the shared ORB instance. |
void |
setVerbose(boolean value)
Setter method for verbose member |
static void |
Terminate()
Short-hand for Terminate(Harmoni_FAIL); |
static void |
Terminate(int code)
Terminate the client application. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int HARMONI_OK
public static final int HARMONI_FAIL
public static final java.lang.String HARMONI_NAME
public static final int PRIORITY_HIGH
public static final int PRIORITY_MEDIUM
public static final int PRIORITY_LOW
public static final java.lang.String CRYSTAL7
public static final java.lang.String CRYSTAL9
public static final java.lang.String WORD
public int priority
public boolean verbose
public java.lang.String folder
| Constructor Detail |
public HarmoniClient()
logger - Log Servicepublic HarmoniClient(LogService logger)
logger - Log Service| Method Detail |
public void Connect()
throws HarmoniError,
GatewayShuttingDown
public void Connect(boolean useLoadBalancer)
throws HarmoniError,
GatewayShuttingDown
useLoadBalancer - Boolean value used to connect a report server via a load balancer.public boolean Connected(java.lang.String name)
name - The name of the service to test for.
public void Disconnect()
throws HarmoniError
public java.lang.Object GetAPI(java.lang.String name)
name - The name of the object to be retrieved.public HarmoniConfigServer getConfigServer()
public HarmoniGateway getGateway()
public static LogService getLog()
public void setLog(LogService logger)
public java.lang.String getServerType()
public void setServerType(java.lang.String typ)
public static java.lang.String getHost()
public java.lang.String getName()
public org.omg.CORBA.ORB getORB()
public java.lang.String[] GetPrinterInfo(java.lang.String printerName,
java.lang.StringBuffer driverName,
HarmoniDEVMODE devMode)
throws HarmoniAPIError,
HarmoniServerError
printerName, - Name of the Printer as StringdriverName, - Holds the Driver Name of the Printer Name given as inputHarmoniMode, - Holds the HarmoniDEVMODE of this Printer
public java.lang.String[] GetPrinterNames()
throws HarmoniAPIError,
HarmoniServerError
public HarmoniServer getServer()
public HarmoniService GetService(java.lang.String name)
name - The name of the service requested.
public WordEngine OpenWordEngine()
throws HarmoniError
public PCREEngine OpenCrystalEngine()
throws HarmoniError
public void PutAPI(java.lang.String name,
java.lang.Object api)
name - The name of the API object.api - The API object to be entered.public void PutService(HarmoniService service)
service - The service that is going to be used.public void Quit()
public void Quit(int code)
code - The termination code.public void RemoveAPI(java.lang.String name)
name - The name of the API object to be removed.public void RemoveService(java.lang.String name)
name - The name of the service to remove.
public void ResetReportServer(HarmoniReportServerInfo rsinfo)
throws HarmoniClientError,
HarmoniServerError
public void SelectReportServer(java.lang.String method)
throws HarmoniClientError,
HarmoniServerError
public void setConfigServer(HarmoniConfigServer newConfigServer)
newConfigServer - com.dynalivery.harmoni.HarmoniConfigServerpublic void setGatewayServer(HarmoniGateway newGatewayServer)
newGatewayServer - com.dynalivery.harmoni.HarmoniGatewaypublic void setName(java.lang.String name)
name - The new name for this client.public void setReportEngineServer(HarmoniServer newReportEngineServer)
newReportEngineServer - com.dynalivery.harmoni.HarmoniServerpublic static void Terminate()
public static void Terminate(int code)
code - The termination code.public void setPriority(int clientPriority)
clientPriority - static integer variablepublic int getPriority()
public void setArchiveFileReturnOption(boolean zipOption)
zipOption - booleanpublic boolean getArchiveFileReturnOption()
public void setDisableServerTimeout(boolean timeoutFlag)
disableServerTimeout - booleanpublic boolean getDisableServerTimeout()
public static org.omg.CORBA.ORB getSharedORB()
public static void setSharedORB(org.omg.CORBA.ORB theSharedORB)
org.omg.CORBA.ORB - public boolean getVerbose()
public void setVerbose(boolean value)
verbose - public java.lang.String getClientName()
public void setClientName(java.lang.String value)
clientName - public java.lang.String getFolder()
public void setFolder(java.lang.String value)
folder -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||