|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rhq.enterprise.client.RemoteClient
public class RemoteClient
A remote access client that provides transparent servlet-based proxies to an RHQ Server.
| Field Summary | |
|---|---|
static String |
NONSECURE_TRANSPORT
|
static String |
SECURE_TRANSPORT
|
| Constructor Summary | |
|---|---|
RemoteClient(String host,
int port)
Creates a client that will communicate with the server running on the given host listening on the given port. |
|
RemoteClient(String transport,
String host,
int port)
Creates a client that will communicate with the server running on the given host listening on the given port over the given transport. |
|
RemoteClient(String transport,
String host,
int port,
String subsystem)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NONSECURE_TRANSPORT
public static final String SECURE_TRANSPORT
| Constructor Detail |
|---|
public RemoteClient(String host,
int port)
login(String, String) for that.
host - port -
public RemoteClient(String transport,
String host,
int port)
login(String, String) for that.
transport - valid values are "servlet" and "sslservlet" - if null,
sslservlet will be used for ports that end with "443", servlet otherwisehost - port -
public RemoteClient(String transport,
String host,
int port,
String subsystem)
| Method Detail |
|---|
public Subject login(String user,
String password)
throws Exception
isLoggedIn() will be true
and getSubject() will return the subject that this method returns.
login in interface RhqFacadeuser - password -
Exception - if failed to connect to the server or log inpublic void logout()
logout in interface RhqFacade
public void connect()
throws Exception
isConnected() will be true
and getSubject() will return the subject that this method returns.
Exception - if failed to connect to the server or log inpublic void disconnect()
public boolean isLoggedIn()
true if and only if this client successfully connected
to the remote server and the user successfully logged in.
isLoggedIn in interface RhqFacadepublic boolean isConnected()
true if and only if this client successfully connected
to the remote server.
public Subject getSubject()
null if the user never logged in successfully.
getSubject in interface RhqFacadenullpublic String getHost()
public int getPort()
public String getTransport()
protected String guessTransport(int port)
public void setTransport(String transport)
null, then the transport to be used will
be set appropriately for the getPort() (e.g. a secure transport
will be used for ports that end with 443, a non-secure transport will be
used for all other ports).
transport - public AlertManagerRemote getAlertManager()
getAlertManager in interface RhqFacadepublic AlertDefinitionManagerRemote getAlertDefinitionManager()
getAlertDefinitionManager in interface RhqFacadepublic AvailabilityManagerRemote getAvailabilityManager()
getAvailabilityManager in interface RhqFacadepublic BundleManagerRemote getBundleManager()
getBundleManager in interface RhqFacadepublic CallTimeDataManagerRemote getCallTimeDataManager()
getCallTimeDataManager in interface RhqFacadepublic RepoManagerRemote getRepoManager()
getRepoManager in interface RhqFacadepublic ConfigurationManagerRemote getConfigurationManager()
getConfigurationManager in interface RhqFacadepublic ContentManagerRemote getContentManager()
getContentManager in interface RhqFacadepublic DataAccessManagerRemote getDataAccessManager()
getDataAccessManager in interface RhqFacadepublic DiscoveryBossRemote getDiscoveryBoss()
getDiscoveryBoss in interface RhqFacadepublic EventManagerRemote getEventManager()
getEventManager in interface RhqFacadepublic MeasurementBaselineManagerRemote getMeasurementBaselineManager()
getMeasurementBaselineManager in interface RhqFacadepublic MeasurementDataManagerRemote getMeasurementDataManager()
getMeasurementDataManager in interface RhqFacadepublic MeasurementDefinitionManagerRemote getMeasurementDefinitionManager()
getMeasurementDefinitionManager in interface RhqFacadepublic MeasurementScheduleManagerRemote getMeasurementScheduleManager()
getMeasurementScheduleManager in interface RhqFacadepublic OperationManagerRemote getOperationManager()
getOperationManager in interface RhqFacadepublic ResourceManagerRemote getResourceManager()
getResourceManager in interface RhqFacadepublic ResourceFactoryManagerRemote getResourceFactoryManager()
getResourceFactoryManager in interface RhqFacadepublic ResourceGroupManagerRemote getResourceGroupManager()
getResourceGroupManager in interface RhqFacadepublic ResourceTypeManagerRemote getResourceTypeManager()
getResourceTypeManager in interface RhqFacadepublic RoleManagerRemote getRoleManager()
getRoleManager in interface RhqFacadepublic SavedSearchManagerRemote getSavedSearchManager()
getSavedSearchManager in interface RhqFacadepublic SubjectManagerRemote getSubjectManager()
getSubjectManager in interface RhqFacadepublic SupportManagerRemote getSupportManager()
getSupportManager in interface RhqFacadepublic SystemManagerRemote getSystemManager()
getSystemManager in interface RhqFacadepublic RemoteInstallManagerRemote getRemoteInstallManager()
getRemoteInstallManager in interface RhqFacadepublic TagManagerRemote getTagManager()
getTagManager in interface RhqFacadepublic Map<String,Object> getManagers()
getManagers in interface RhqFacadepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||