|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.impl.config.Config
Instances of Config class provides the interface for configuring a JXTA peer. Config provides:
Field Summary | |
static java.lang.String |
SERVICE_DISCOVERY
|
static java.lang.String |
SERVICE_MEMBERSHIP
|
static java.lang.String |
SERVICE_PEERINFO
|
static java.lang.String |
SERVICE_PIPE
|
static java.lang.String |
SERVICE_RESOLVER
|
Constructor Summary | |
Config()
Creates a blank configuration. |
Method Summary | |
void |
addRendezvousPeer(net.jxta.endpoint.EndpointAddress address)
Adds a rendezvous peer |
void |
clearRendezvousPeers()
Clears ou the list of rendezvous peers |
static Config |
createDefaultConfig()
Creates a default configuration instance. |
HttpConfig |
getHttpConfig()
Gets the contained Http Transport configuration |
CodeDescriptor |
getInitialApp()
Returns the classname of the initial class that is booted at startup |
CodeDescriptor |
getInitialPlatform()
Returns the descriptor of the initial class that is booted at startup |
java.util.Enumeration |
getRendezvousPeers()
Returns an enumeration of rendezvous peers |
CodeDescriptor |
getServiceImplDescriptor(java.lang.String aServiceKey)
Given a service key, returns the descriptor of the implementation class. |
boolean |
getShouldPropagate()
Tells whether messages should be propagated. |
TcpConfig |
getTcpConfig()
Gets the contained TCP Transport configuration |
boolean |
isRendezvous()
Tells whether the peer is a rendezvous peer |
boolean |
isRouter()
Tells whether the peer is a router peer |
static Config |
read(java.io.InputStream aInStream)
Reads the configuration file in aInStream and creates a new Configuration. |
void |
setHttpConfig(HttpConfig aConfig)
Sets the contained Http Transport configuration |
void |
setInitialApp(CodeDescriptor aInitialApp)
Sets the classname of the initial class that is booted at startup |
void |
setInitialPlatform(CodeDescriptor aInitialPlatform)
Sets the classname of the initial class that is booted at startup |
void |
setRendezvous(boolean aIsRendezvous)
Sets whether the peer is a rendezvous peer |
void |
setRouter(boolean aIsRouter)
Sets whether the peer is a rendezvous peer |
void |
setServiceImplDescriptor(java.lang.String aServiceKey,
CodeDescriptor aDescriptor)
Correlates a service with a code descriptor. |
void |
setShouldPropagate(boolean aShouldPropagate)
Sets whether messages should be propagated. |
void |
setTcpConfig(TcpConfig aConfig)
Sets the contained TCP Transport configuration |
void |
write(java.io.Writer aWriter)
Writes configuration to a writer in XML format. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String SERVICE_DISCOVERY
public static final java.lang.String SERVICE_MEMBERSHIP
public static final java.lang.String SERVICE_PIPE
public static final java.lang.String SERVICE_PEERINFO
public static final java.lang.String SERVICE_RESOLVER
Constructor Detail |
public Config()
Method Detail |
public static Config createDefaultConfig()
public CodeDescriptor getServiceImplDescriptor(java.lang.String aServiceKey)
public void setServiceImplDescriptor(java.lang.String aServiceKey, CodeDescriptor aDescriptor) throws ConfigurationException
public boolean isRendezvous()
public void setRendezvous(boolean aIsRendezvous)
public boolean isRouter()
public void setRouter(boolean aIsRouter)
public TcpConfig getTcpConfig()
public void setTcpConfig(TcpConfig aConfig)
public HttpConfig getHttpConfig()
public void setHttpConfig(HttpConfig aConfig)
public CodeDescriptor getInitialPlatform()
public void setInitialPlatform(CodeDescriptor aInitialPlatform)
public CodeDescriptor getInitialApp()
public void setInitialApp(CodeDescriptor aInitialApp)
public void addRendezvousPeer(net.jxta.endpoint.EndpointAddress address)
public java.util.Enumeration getRendezvousPeers()
public void clearRendezvousPeers()
public boolean getShouldPropagate()
public void setShouldPropagate(boolean aShouldPropagate)
public static Config read(java.io.InputStream aInStream) throws ConfigurationException
public void write(java.io.Writer aWriter) throws ConfigurationException
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |