|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rbnb.sapi.Client
com.rbnb.sapi.Control
public class Control
A client for controlling RBNB server behavior.
| Nested Class Summary | |
|---|---|
static class |
Control.AccessControlEntry
An element in a list of internet hosts which define permitted access to an RBNB server. |
static class |
Control.Mirror
A representation of a 'mirror', which copies data from one server to another. |
| Constructor Summary | |
|---|---|
Control()
|
|
| Method Summary | |
|---|---|
long |
BytesTransferred()
Reports the total number of bytes read and written by this Client. |
static Vector |
CreateACLFromStream(Reader isRead)
Create an access control list from a character stream. |
static Control.AccessControlEntry |
CreateAllowEntry(String address,
String permissions)
Create a new access control entry that allows access. |
static Control.AccessControlEntry |
CreateDenyEntry(String address)
Create a new access control entry that forbids access. |
Control.Mirror |
CreateMirrorIn(String remoteServer,
String remoteSource,
String localName)
Creates a mirror to copy data from a source on the specified server address to the connected server. |
Control.Mirror |
CreateMirrorOut(String localSource,
String remoteServer,
String remoteName)
Creates a mirror to copy data from a local source to the specified remote server. |
Vector |
GetAccessControlList()
Obtains a list of access control entries from the connected server. |
void |
SetAccessControlList(Vector list)
Sets the access control list on the server. |
void |
Terminate(String name)
Stops the object with the given name. |
void |
TerminateServer()
Stops the server to which this Control is connected. |
| Methods inherited from class com.rbnb.sapi.Client |
|---|
CloseRBNBConnection, CloseRBNBConnection, GetArchiveMode, GetArchiveSize, GetCacheSize, GetChannelList, GetChannelList, GetClientName, GetServerName, OpenRBNBConnection, OpenRBNBConnection, OpenRBNBConnection, SetRingBuffer, VerifyConnection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Control()
| Method Detail |
|---|
public Control.Mirror CreateMirrorIn(String remoteServer,
String remoteSource,
String localName)
throws SAPIException
SAPIException
public Control.Mirror CreateMirrorOut(String localSource,
String remoteServer,
String remoteName)
throws SAPIException
SAPIException
public void Terminate(String name)
throws SAPIException
Note: this method returns after the server has acknowledged receipt of the command, but before the server executes the task. Thus the actual shutdown of the object will occur asynchronously.
SAPIException
public void TerminateServer()
throws SAPIException
SAPIException
public Vector GetAccessControlList()
throws SAPIException
SAPIException
public void SetAccessControlList(Vector list)
throws SAPIException
IllegalArgumentException - if any element in the vector is
not an instance of Control.AccessControlEntry.
SAPIExceptionpublic long BytesTransferred()
Client
BytesTransferred in class Client
public static Control.AccessControlEntry CreateAllowEntry(String address,
String permissions)
permissions object is optional. If specified it should
be one or more of the following:
See the RBNB Server documentation for more details.
public static Control.AccessControlEntry CreateDenyEntry(String address)
public static Vector CreateACLFromStream(Reader isRead)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||