|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hyperic.hq.transport.util.TransportUtils
public class TransportUtils
Provides utility methods for the transport layer.
| Method Summary | |
|---|---|
static void |
assertOperationsThrowException(java.lang.Class serviceInterface,
java.lang.Class expectedExceptionType)
Assert that all interface operations throw the expected exception. |
static void |
assertVoidReturnTypes(java.lang.Class serviceInterface)
Assert that the interface only contains operations with void return types. |
static java.lang.String |
getHttpTransport(boolean encrypted)
Return the HTTP transport name. |
static boolean |
isOneWayInvocation(org.jboss.remoting.InvocationRequest invocation)
Determine if the invocation request represents a one-way (asynchronous) invocation. |
static void |
setOneWayInvocation(org.jboss.remoting.InvocationRequest invocation)
Set the invocation request as one-way (asynchronous). |
static java.lang.Class |
tryLoadUnidirectionalTransportPollerClient()
Attempt to load the poller client implementation from the context class loader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isOneWayInvocation(org.jboss.remoting.InvocationRequest invocation)
invocation - The invocation request.
true if this is a one-way invocation.public static void setOneWayInvocation(org.jboss.remoting.InvocationRequest invocation)
invocation - The invocation request.public static java.lang.String getHttpTransport(boolean encrypted)
encrypted - true if the transport is encrypted.
public static void assertVoidReturnTypes(java.lang.Class serviceInterface)
serviceInterface - The interface to inspect.
java.lang.IllegalArgumentException - if a non-void return type operation is found.
public static void assertOperationsThrowException(java.lang.Class serviceInterface,
java.lang.Class expectedExceptionType)
serviceInterface - The interface to inspect.expectedExceptionType - The expected exception type.
java.lang.IllegalArgumentException - if an interface operation does not throw
the expected exception.
public static java.lang.Class tryLoadUnidirectionalTransportPollerClient()
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - if the poller client implementation cannot
be found. This can happen if invoked from
a .ORG instance.
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||