|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.validation.javapp.server.ResourceClient
public class ResourceClient
a client used to access ACTF configurations and other resources. This class is used in inter-JVM valaidations to provide the launched (i.e. validating) JVM with access to resources in the launching JVM. An "inter-JVM" validation is one in which the application or content to be validated is launched in a distinct JVM from that in which ACTF is running.
ResourceServer
Field Summary | |
---|---|
Object |
client_lock
|
Constructor Summary | |
---|---|
ResourceClient(int port)
create a client that connects to the ACTF ResourceServer on the specified port. |
|
ResourceClient(String hostName,
int port)
create a client that connects to the specified host and port. |
Method Summary | |
---|---|
SocketChannel |
getChannel()
|
Map |
requestAccessibilityServices()
|
void |
requestClose()
request an end to the session |
IConfiguration |
requestConfiguration()
request the active ACTF configuration object from the resource server |
Object |
requestConfigurationParameter(String pool,
String id)
request a configuration parameter from the server |
InputStream |
requestResource(String id,
String base,
String ext)
request a resource from the resource server. |
IRuleBaseDescriptor[] |
requestRuleBaseDescriptors()
request the active rule base descriptors from the resource server |
void |
sendMessage(String msg)
send a message to the resource server. |
void |
sendReportElements(SocketChannel client,
Object reportElements)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Object client_lock
Constructor Detail |
---|
public ResourceClient(int port) throws IOException
ResourceServer
on the specified port. This client
can be used during an inter-JVM validation to request configurations
and other resources from the source JVM.
port
-
IOException
public ResourceClient(String hostName, int port) throws IOException
hostName
- port
-
IOException
Method Detail |
---|
public IConfiguration requestConfiguration() throws Exception
Exception
public IRuleBaseDescriptor[] requestRuleBaseDescriptors() throws Exception
Exception
public Map requestAccessibilityServices() throws Exception
Exception
public InputStream requestResource(String id, String base, String ext) throws IOException
org.eclipse.actf.validation.javapp.resources.InterJvmResourceLocator
in order to
fetch resources on the client-side of an inter-JVM validation.
id
- base
- ext
-
IOException
InterJvmResourceLocator
public Object requestConfigurationParameter(String pool, String id) throws Exception
pool
- pool idid
- id of parameter
Exception
IConfiguration
public void requestClose() throws IOException
IOException
public void sendMessage(String msg)
ResourceServer
class else the
message will be ignored.
msg
- message to resource serverResourceServer
public void sendReportElements(SocketChannel client, Object reportElements)
public SocketChannel getChannel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |