|
Project JXTA | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Attributable
.
Throwable
.
List
of causes
.
RendezVousService.addPropagateListener(String, String, EndpointListener)
.
Advertisement
JxtaServerSocket
to a specific pipe advertisement
JxtaServerSocket
to a specific pipe advertisement
JxtaServerPipe
to a specific pipe advertisement
JxtaServerPipe
to a specific pipe advertisement
List
of all possible causes
that may be generated as a part of the
configuration process.JxtaException
with no specified details.
JxtaException
with the specified message.
JxtaException
with the specified cause
.
JxtaException
with the specified message and cause
.
JxtaException
with the specified List
of causes
.
JxtaException
with the specified message in
addition to the List
of causes
.
MessageElement.getByteLength()
operation.
MessageElement.getBytes(boolean)
operation.
TextMessageElement.getCharLength()
operation.
MessageElement.getBytes(boolean)
operation.
MessageElement.toString()
operation.
Messenger.USABLE
states, which means that no message may be sent through it. Any other effect of this
method, such as an underlying connection being closed, or all pending messages being processed, may be deferred
indefinitely. When the messenger has completely processed the closure request, it will be in one of the Messenger.TERMINAL
states (which are also Messenger.IDLE
states). Therefore, if one is interrested in the outcome of the closure, one may wait
for the messenger to be in a Messenger.TERMINAL
or Messenger.IDLE
state, and check which it is. Messenger.CLOSED
denotes success
(all outstanding messages have been sent), as opposed to Messenger.UNRESOLVABLE
or Messenger.BROKEN
.
Messenger.USABLE
states, which means that no message may be sent through it. Any other effect of this
method, such as an underlying connection being closed, or all pending messages being processed, may be deferred
indefinitely. When the messenger has completely processed the closure request, it will be in one of the Messenger.TERMINAL
states (which are also Messenger.IDLE
states). Therefore, if one is interrested in the outcome of the closure, one may wait
for the messenger to be in a Messenger.TERMINAL
or Messenger.IDLE
state, and check which it is. Messenger.CLOSED
denotes success
(all outstanding messages have been sent), as opposed to Messenger.UNRESOLVABLE
or Messenger.BROKEN
.
from
into the
the element intoElement
of document intoDoc
.
from
into the
document identified by intoDoc
.
from
into the
document identified by intoDoc
.
Message.Message()
instead.
PipeService.createOutputPipe(PipeAdvertisement, Set, long)
with a Collections.singleton(Object)
instead.
PipeService.createOutputPipe(PipeAdvertisement, Set, long)
instead.
PipeService.createOutputPipe(PipeAdvertisement, Set, long)
with a Collections.singleton(Object)
instead.
propagate()
or walk()
using the most
appropriate TTL value for the implementation and configuration.
DiscoveryEvent
s from the
Discovery Service.
StructuredDocument
. MessageFilterListener
.MimeMediaType.equals(Object)
, but ignores any parameters.
Messenger.IDLE
state.
If the reached state is neither Messenger.CLOSED
or any Messenger.USABLE
state, then it throws
an IOException. Else it returns silently.
If another thread keeps sending messages, this method may never return.
This method is deliberately simple. If a timeout needs to be provided, or if more detailed conditions are required,
the Messenger.waitState(int, long)
and Messenger.getState()
methods should be used. For example :
int myFlush(long notTooLong) {
messenger.waitState(IDLE, notTooLong);
if ((messenger.getState() & IDLE) == 0) return TOOLONG;
if ((messenger.getState() & USABLE) != 0) return FLUSHED;
if (messenger.getState() == CLOSED) return CLOSEDANDFLUSHED;
return BROKEN;
}
Note: Messenger.close()
being asynchronous, it is valid to invoke flush()
after close()
as a form
of synchronous variant of close()
. If this messenger is not shared with any other thread, then invoking
flush()
before close
is a more familiar means of achieving the same effect.
IDFactory.fromURI( URI )
instead.
final
.
final
.
final
.
final
.
final
.
final
.
final
.
final
.
final
.
final
.
final
.
copy
parameter allows you to request a
private, modifiable copy of the element data.
This implementation builds the byte array from the stream.
synchronized so that we can replace our internal buffer with
the buffer we are returning if we were using a shared buffer.
copy
parameter allows you to request a
private, modifiable copy of the element data.
This implementation builds the byte array from the stream.
copy
parameter allows you to request a
private, modifiable copy of the element data.
This implementation builds the byte array from the stream.
causes
as a List
.
Messenger.sendMessage(Message, String, String,
OutgoingMessageEventListener)
legacy method. If use of this method is desired, ChannelMessenger.setMessageWatcher(net.jxta.endpoint.ListenerAdaptor)
must be used first.
By default a channel refuses to make a channel.
Messenger.sendMessage(Message, String, String,
OutgoingMessageEventListener)
legacy method. If use of this method is desired, ChannelMessenger.setMessageWatcher(net.jxta.endpoint.ListenerAdaptor)
must be used first.
By default a channel refuses to make a channel.
ModuleImplAdvertisement.getCompat()
that does not clone the elements.
asMimeType
is a mime
media-type specification and provides the form of the document which is
being requested. Two standard document forms are defined.
"text/plain"
encodes the document in a "pretty-print"
format for human viewing and "text/xml" which provides an
XML format.
We don't have any content to add, just build the document instance
and return it to implementations that actually do something with it.
- getDocument(MimeMediaType) -
Method in class net.jxta.protocol.DiscoveryQueryMsg
- Write advertisement into a document. asMimeType is a mime media-type
specification and provides the form of the document which is being
requested.
- getDocument(MimeMediaType) -
Method in class net.jxta.protocol.DiscoveryResponseMsg
- Write advertisement into a document. asMimeType is a mime media-type
specification and provides the form of the document which is being
requested.
- getDocument(MimeMediaType) -
Method in class net.jxta.protocol.LimitedRangeRdvMessage
- Write advertisement into a document. asMimeType is a mime media-type
specification and provides the form of the document which is being
requested.
- getDocument(MimeMediaType) -
Method in class net.jxta.protocol.PeerInfoQueryMessage
-
- getDocument(MimeMediaType) -
Method in class net.jxta.protocol.PeerInfoResponseMessage
-
- getDocument(MimeMediaType) -
Method in class net.jxta.protocol.PipeResolverMessage
- Write message into a document. asMimeType is a mime media-type
specification and provides the form of the document which is being
requested.
- getDocument(MimeMediaType) -
Method in class net.jxta.protocol.ResolverQueryMsg
- Write advertisement into a document. asMimeType is a mime media-type
specification and provides the form of the document which is being
requested.
- getDocument(MimeMediaType) -
Method in class net.jxta.protocol.ResolverResponseMsg
- Write advertisement into a document. asMimeType is a mime media-type
specification and provides the form of the document which is being
requested.
- getDocument(MimeMediaType) -
Method in class net.jxta.protocol.ResolverSrdiMsg
- Write advertisement into a document. asMimeType is a mime media-type
specification and provides the form of the document which is being
requested.
- getDocument(MimeMediaType) -
Method in class net.jxta.protocol.RouteQueryMsg
- Write advertisement into a document. asMimeType is a mime media-type
specification and provides the form of the document which is being
requested.
- getDocument(MimeMediaType) -
Method in class net.jxta.protocol.RouteResponseMsg
- Write advertisement into a document. asMimeType is a mime media-type
specification and provides the form of the document which is being
requested.
- getDocument(MimeMediaType) -
Method in class net.jxta.protocol.SrdiMessage
- Write advertisement into a document. asMimeType is a mime media-type
specification and provides the form of the document which is being
requested.
- getDocumentSerializable(Element, Class) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Create an object from its Document Serialized components
- getDocumentSerializable(Element, DocumentSerializable) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Initialize an object from its Document Serialized components
- getDocumentSerializable(Element, String, Class) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Create an object from its Document Serialized components
- getDocumentSerializableFromXml(String, Class) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Create a DocumentSerializable Object from an XML Document
- getDocumentSerializableFromXml(byte[], Class) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Create a DocumentSerializable Object from an XML Document
- getDocumentSerializableFromXml(InputStream, Class) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Create a DocumentSerializable Object from an XML Document
- getDouble(Message, String, double) -
Static method in class net.jxta.util.MessageUtilities
- Deprecated.
- getDouble(Element) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Get the value of an element converted from a String
- getDouble(Element, String, double) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Get the value of a Child Element
- getElementName() -
Method in class net.jxta.endpoint.MessageElement
- Returns the name of the MessageElement.
- getElementProperty(Object) -
Method in class net.jxta.endpoint.MessageElement
- Retrieves a transient property from the set for this element.
- getEndpointAddresses() -
Method in class net.jxta.protocol.AccessPointAdvertisement
- returns the list of endpoint addresses associated with this access
point
- getEndpointService() -
Method in interface net.jxta.endpoint.MessageTransport
- Returns the endpoint service with which this MessageTransport is
registered.
- getEndpointService() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Return the Endpoint Service for this Peer Group. This service is
present in every Peer Group.
- getEndpointService() -
Method in interface net.jxta.peergroup.PeerGroup
- Return the Endpoint Service for this Peer Group.
- getEntries() -
Method in class net.jxta.protocol.SrdiMessage
- returns the entries of this SrdiMessage
- getEntrySet() -
Method in class net.jxta.util.ClassFactory
- Returns an umodifiable Set containing all of the associations stored in
this ClassFactory.
- getExpirations() -
Method in class net.jxta.protocol.DiscoveryResponseMsg
- Gets the expirations attribute of the DiscoveryResponseMsg object
- getExtension() -
Method in class net.jxta.document.StructuredDocumentFactory.Instantiator.ExtensionMapping
- returns the extension which is part of this mapping.
- getFailure() -
Method in class net.jxta.endpoint.OutgoingMessageEvent
- Get the failure associated with this event, if any.
- getFileExtension() -
Method in interface net.jxta.document.Document
- Returns the file extension type used by this
Document
.
- getFileExtension() -
Method in class net.jxta.endpoint.MessageElement
- Returns the file extension type used by this
Document
. This
value is usually chosen based upon the MIME Media Type.
We use the "unknown" extension and leave it to sub-classes to
extend this.
- getFileExtension() -
Method in class net.jxta.endpoint.TextDocumentMessageElement
- Returns the file extension type used by this
Document
. This
value is usually chosen based upon the MIME Media Type.
We use the "unknown" extension and leave it to sub-classes to
extend this. If we had a mailcap facility we could do better
classification based on mimetype.
We use the "text" extension and leave it to sub-classes to extend
this.
- getFileExtension() -
Method in class net.jxta.endpoint.TextMessageElement
- Returns the file extension type used by this
Document
. This
value is usually chosen based upon the MIME Media Type.
We use the "unknown" extension and leave it to sub-classes to
extend this. If we had a mailcap facility we could do better
classification based on mimetype.
We use the "text" extension and leave it to sub-classes to extend
this.
- getFileExtensionForMimeType(MimeMediaType) -
Static method in class net.jxta.document.StructuredDocumentFactory
- Returns the prefered extension for a given mime-type.
- getFirstHop() -
Method in class net.jxta.protocol.RouteAdvertisement
- Returns the access point for the first hop
- getFromTime() -
Method in class net.jxta.meter.MonitorReport
- Begin time that this report is representing
- getGroup() -
Method in interface net.jxta.endpoint.EndpointService
- Returns the group to which this EndpointService is attached.
- getGroup() -
Method in class net.jxta.socket.JxtaServerSocket
- Gets the group associated with this JxtaServerSocket object
- getGroup() -
Method in class net.jxta.util.JxtaServerPipe
- Gets the group associated with this JxtaServerPipe
- getGroupID() -
Method in class net.jxta.protocol.RdvAdvertisement
- get the group id
- getHandlerName() -
Method in class net.jxta.protocol.ResolverQueryMsg
- returns the handlername
- getHandlerName() -
Method in class net.jxta.protocol.ResolverResponseMsg
- returns the handlername
- getHandlerName() -
Method in class net.jxta.protocol.ResolverSrdiMsg
- returns the handlername
- getHomeThreadGroup() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Returns the Thread Group in which threads for this peer group will live.
This is currently used only for debugging purposes so that the source of
a thread can be determined.
- getHomeThreadGroup() -
Method in interface net.jxta.peergroup.PeerGroup
- Returns the Thread Group in which threads for this peer group will live.
- getHop(PeerID) -
Method in class net.jxta.protocol.RouteAdvertisement
- return a hop from the list of hops
- getHop(int) -
Method in class net.jxta.protocol.RouteAdvertisement
- Return hop of the route at location index in the hops list
- getHopCount() -
Method in class net.jxta.protocol.ResolverQueryMsg
- returns the hop count
- getHops() -
Method in class net.jxta.protocol.RouteAdvertisement
- returns the list of hops
- getID() -
Method in class net.jxta.document.Advertisement
- Returns a unique ID suitable for indexing of this Advertisement.
- getID() -
Method in class net.jxta.protocol.ModuleClassAdvertisement
- returns a unique ID for that advertisement (for indexing purposes).
- getID() -
Method in class net.jxta.protocol.ModuleImplAdvertisement
- Returns the unique ID of that advertisement for indexing purposes.
- getID() -
Method in class net.jxta.protocol.ModuleSpecAdvertisement
- returns a unique id for that adv for the purpose of indexing.
- getID() -
Method in class net.jxta.protocol.PeerAdvertisement
- Returns a unique ID for that peer X group intersection.
- getID() -
Method in class net.jxta.protocol.PeerGroupAdvertisement
- Returns a unique ID for indexing purposes.
- getID() -
Method in class net.jxta.protocol.PipeAdvertisement
- get an ID for indexing purposes.
- getID() -
Method in class net.jxta.protocol.RdvAdvertisement
- Returns a unique ID suitable for indexing of this Advertisement.
The ID is supposed to be unique and is not guaranteed to be of
any particular subclass of ID. Each class of advertisement is
responsible for the choice of ID to return. The value for the ID
returned can either be:
- An ID which is already part of the advertisement definition
and is relatively unique between advertisements instances. For
example, the Peer Advertisement returns the Peer ID.
- A static CodatID which is generated via some canonical process
which will produce the same value each time and different values for
different advertisements of the same type.
- ID.nullID for advertisement types which are not readily indexed.
Since this ID is normally used for indexing, the IDs returned must
be as unique as possible to avoid collisions.
For Advertisement types which normally return non-ID.nullID values
no ID should be returned when asked to generate an ID while the
Advertisement is an inconsistent state (example: unitialized index
fields). Instead java.lang.IllegalStateException
should be
thrown.
- getID() -
Method in class net.jxta.protocol.RouteAdvertisement
- Returns a unique ID suitable for indexing of this Advertisement.
The ID is supposed to be unique and is not guaranteed to be of
any particular subclass of ID. Each class of advertisement is
responsible for the choice of ID to return. The value for the ID
returned can either be:
- An ID which is already part of the advertisement definition
and is relatively unique between advertisements instances. For
example, the Peer Advertisement returns the Peer ID.
- A static CodatID which is generated via some canonical process
which will produce the same value each time and different values for
different advertisements of the same type.
- ID.nullID for advertisement types which are not readily indexed.
Since this ID is normally used for indexing, the IDs returned must
be as unique as possible to avoid collisions.
For Advertisement types which normally return non-ID.nullID values
no ID should be returned when asked to generate an ID while the
Advertisement is an inconsistent state (example: unitialized index
fields). Instead java.lang.IllegalStateException
should be
thrown.
- getID() -
Method in class net.jxta.protocol.TransportAdvertisement
- Return ID for indexing.
- getIDFormat() -
Method in class net.jxta.id.ID
- Returns a string identifier which indicates which ID format is
used by this ID instance.
- getIdentityInfo() -
Method in class net.jxta.credential.AuthenticationCredential
- Returns the StructuredDocument Element containing the identity information which was
originally provided when this AuthenticationCredential was created.
- getIdentityReference() -
Method in class net.jxta.util.AbstractSimpleSelectable
-
- getIdentityReference() -
Method in interface net.jxta.util.SimpleSelectable
-
- getImplAdvertisement() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Returns the advertisment for this service.
- getImplAdvertisement() -
Method in interface net.jxta.service.Service
- Returns the advertisment for this service.
- getIndexFields() -
Method in class net.jxta.document.Advertisement
- returns an array of String fields to index the advertisement on.
- getInputPeerAdv() -
Method in class net.jxta.protocol.PipeResolverMessage
-
- getInputPipe() -
Method in class net.jxta.util.JxtaBiDiPipe
- Returns an input stream for this socket.
- getInputStream() -
Method in class net.jxta.socket.JxtaSocket
- Returns an input stream for this socket.
- getInstantiator(Object) -
Method in class net.jxta.util.ClassFactory
- Return the instantiator associated with the provided key.
- getInt(Message, String, int) -
Static method in class net.jxta.util.MessageUtilities
- Deprecated.
- getInt(Element) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Get the value of an element converted from a String
- getInt(Element, String, int) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Get the value of a Child Element
- getInterface() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Service objects are not manipulated directly to protect usage
of the service. A Service interface is returned to access the service
methods.
- getInterface() -
Method in interface net.jxta.service.Service
- Service objects are not manipulated directly to protect usage
of the service.
- getKeepAlive() -
Method in class net.jxta.socket.JxtaSocket
-
- getKey() -
Method in interface net.jxta.document.Element
- Get the key associated with this Element.
- getLastHop() -
Method in class net.jxta.protocol.RouteAdvertisement
- Returns the access point for the last hop
- getLastResetTime() -
Method in class net.jxta.meter.PeerMonitorInfo
- Get Time that the Monitor was last Reset (probably same as startTime)
- getLeaseTime() -
Method in class net.jxta.meter.MonitorEvent
- Most recent Lease time granted (not specified if a cumulative Report)
- getListener() -
Method in class net.jxta.util.JxtaBiDiPipe
- Returns the message listener for this pipe
- getLoader() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Returns the class loader for this group.
- getLoader() -
Method in interface net.jxta.peergroup.PeerGroup
- Returns the class loader for this group.
- getLocalAddress() -
Method in class net.jxta.socket.JxtaMulticastSocket
-
- getLocalAdvertisement(PeerGroup, String, String) -
Static method in class net.jxta.util.DiscoveryUtilities
- Deprecated. Just use discovery directly. This method doesn't seem to do
anything useful.
- getLocalAdvertisements(int, String, String) -
Method in interface net.jxta.discovery.DiscoveryService
- Retrieve Stored Peer, Group, and General Advertisements
- getLocalSocketAddress() -
Method in class net.jxta.socket.JxtaMulticastSocket
-
- getLocalWalkView() -
Method in interface net.jxta.rendezvous.RendezVousService
- Returns a vector of RdvAdvertisement of the local view of rendezvous peers.
- getLogicalDestinationAddress() -
Method in interface net.jxta.endpoint.Messenger
- Returns the logical destination of this messenger.
- getLogicalDestinationAddress() -
Method in class net.jxta.endpoint.ThreadedMessenger
- Returns the logical destination of this messenger. This may be a
different address than is returned by
getDestinationAddress
and refers to
the entity which is located at the destination address.
By analogy, a telephone number would be the destination address, and
the owner of that telephone number would be the logical destination.
Each logical destination may be known by one or more destination
addresses.
- getLogicalDestinationImpl() -
Method in class net.jxta.endpoint.ThreadedMessenger
- Obtain the logical destination address from the implementer (which likely gets it from the transport messenger).
- getLong(Message, String, long) -
Static method in class net.jxta.util.MessageUtilities
- Deprecated.
- getLong(Element) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Get the value of an element converted from a String
- getLong(Element, String, long) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Get the value of a Child Element
- getMTU() -
Method in class net.jxta.endpoint.AbstractMessenger
- Returns the maximum message size that this messenger can handle. That limit refers to the cummulative size of application
level elements. The various
sendMessage
will refuse to send messages that exceed this limit.
- getMTU() -
Method in interface net.jxta.endpoint.Messenger
- Returns the maximum message size that this messenger can handle.
- getMembershipService() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Return the Membership Service for this Peer Group. This service is
present in every Peer Group.
- getMembershipService() -
Method in interface net.jxta.peergroup.PeerGroup
- Return the Membership Service for this Peer Group.
- getMessage() -
Method in class net.jxta.pipe.PipeMsgEvent
- Returns the message associated with the event
- getMessage(int) -
Method in class net.jxta.util.JxtaBiDiPipe
- Gets a message from the queue.
- getMessageElement(String) -
Method in class net.jxta.endpoint.Message
- Retrieve a element by name from the message without regard to
namespace.
- getMessageElement(String, String) -
Method in class net.jxta.endpoint.Message
- Retrieve a element by name in the specified namespace from the message.
- getMessageElements() -
Method in class net.jxta.endpoint.Message
- Returns a list iterator of all of the elements contained in this message.
- getMessageElements(String) -
Method in class net.jxta.endpoint.Message
- Returns a list iterator of all of the elements contained in this
message who's name matches the specified name.
- getMessageElements(String, String) -
Method in class net.jxta.endpoint.Message
- Returns a list iterator of all of the elements contained in the
specified namespace who's name matches the specified name in the order
in which they were added to the Message.
- getMessageElements(MimeMediaType) -
Method in class net.jxta.endpoint.Message
- Returns a list iterator of all of the elements contained in this message
whose mime-type matchs the given in the order they were added to the
message.
- getMessageElements(String, MimeMediaType) -
Method in class net.jxta.endpoint.Message
- Returns a list iterator of all of the elements contained in this message
whose type matches the given in the order they were added to the message.
- getMessageElementsOfNamespace(String) -
Method in class net.jxta.endpoint.Message
- Returns an list iterator of all of the elements contained in this message
which match the specified namespace.
- getMessageLineage() -
Method in class net.jxta.endpoint.Message
- Returns an iterator which describes the lineage of this message.
- getMessageModCount() -
Method in class net.jxta.endpoint.Message
- Returns the modification count of this message.
- getMessageModHistory() -
Method in class net.jxta.endpoint.Message
- Returns a string containing the modification history for this message
- getMessageNamespaces() -
Method in class net.jxta.endpoint.Message
- Returns an iterator of the namespaces present in this message.
- getMessageNumber() -
Method in class net.jxta.endpoint.Message
- Returns the message number of this message.
- getMessageProperty(Object) -
Method in class net.jxta.endpoint.Message
- Retrieves a transient property from the set for this message.
- getMessageTransport(String) -
Method in interface net.jxta.endpoint.EndpointService
- Get a MessageTransport by name
- getMessageType() -
Static method in class net.jxta.protocol.PeerInfoQueryMessage
- returns the Message type
- getMessageType() -
Static method in class net.jxta.protocol.PeerInfoResponseMessage
- returns the Message type
- getMessageType() -
Static method in class net.jxta.protocol.PipeResolverMessage
- returns the Message type.
- getMessageType() -
Static method in class net.jxta.protocol.ResolverSrdiMsg
- All messages have a type (in xml this is !
- getMessageType() -
Static method in class net.jxta.protocol.SrdiMessage
- All messages have a type (in xml this is !
- getMessenger(EndpointAddress, Object) -
Method in interface net.jxta.endpoint.EndpointService
- Behaves like
EndpointService.getMessengerImmediate(EndpointAddress, Object)
, except that the invoker is blocked until the
messenger resolves or fails to do so.
- getMessenger(EndpointAddress) -
Method in interface net.jxta.endpoint.EndpointService
- Deprecated. This convenience method adds little value. It is strictly equivalent to
getMessenger(addr, null)
- getMessenger(MessengerEventListener, EndpointAddress, Object) -
Method in interface net.jxta.endpoint.EndpointService
- Deprecated. This method is being phased out. Prefer one of the other non-blocking variants. If a listener style paradigm is
required, use
ListenerAdaptor
which emulates this functionality.
- getMessenger(EndpointAddress, Object) -
Method in interface net.jxta.endpoint.MessageSender
- Creates an
Messenger
for sending messages to the
specified destination EndpointAddress
.
- getMessenger() -
Method in class net.jxta.endpoint.MessengerEvent
-
- getMessenger() -
Method in class net.jxta.util.JxtaBiDiPipe
- Deprecated. use sendMessage instead
- getMessenger(EndpointAddress) -
Method in class net.jxta.util.endpoint.WeakMessengerCache
- Deprecated. Return, if any, a cached Messenger.
- getMessengerImmediate(EndpointAddress, Object) -
Method in interface net.jxta.endpoint.EndpointService
- Returns a messenger to the specified destination.
- getMetaID() -
Method in class net.jxta.codat.Codat
- Returns Codat id of related codat associated with this metadata Codat.
- getMethod() -
Method in class net.jxta.credential.AuthenticationCredential
- Returns the authentication method which this AuthenticationCredential
will be requesting when it is provided to a Membership Service during the
"Apply" operation.
- getMethodName() -
Method in interface net.jxta.membership.Authenticator
- Returns the name of this authentication method.
- getMimeMediaType() -
Method in class net.jxta.document.MimeMediaType
- Get the "root" mime-type/subtype without any of the parameters.
- getMimeMediaType() -
Method in class net.jxta.document.StructuredDocumentFactory.Instantiator.ExtensionMapping
- returns the MIME Media Type which is part of this mapping.
- getMimeType() -
Method in interface net.jxta.document.Document
- Returns the MIME Media type of this
Document
per
IETF RFC 2046 MIME : Media Types.
- getMimeType() -
Method in class net.jxta.endpoint.MessageElement
- Returns the MIME Media type of this
Document
per
IETF RFC 2046 MIME : Media Types.
JXTA does not currently support the 'Multipart
' or
'Message
' media types.
Will return "Application/Octet-Stream" if no type was originally
specified.
- getMimeType() -
Method in class net.jxta.endpoint.TextDocumentMessageElement
- Returns the MIME Media type of this
Document
per
IETF RFC 2046 MIME : Media Types.
JXTA does not currently support the 'Multipart
' or
'Message
' media types.
Will return "Application/Octet-Stream" if no type was originally
specified.
- getMimeTypeForFileExtension(String) -
Static method in class net.jxta.document.StructuredDocumentFactory
- Returns the prefered mime-type for a given file extension.
- getModCount() -
Method in class net.jxta.protocol.ConfigParams
- Returns the number of times this object has been modified since
it was created.
- getModCount() -
Method in class net.jxta.protocol.PeerAdvertisement
- Returns the number of times this object has been modified since
it was created.
- getModuleClassID() -
Method in interface net.jxta.meter.ServiceMetric
- getModuleClassID
- getModuleClassID() -
Method in interface net.jxta.meter.ServiceMonitor
- Get ModuleClassID of this ServiceMonitor
- getModuleClassID() -
Method in interface net.jxta.meter.ServiceMonitorFilter
- get ModuleClassID
- getModuleClassID() -
Method in class net.jxta.protocol.ModuleClassAdvertisement
- returns the id of the class
- getModuleClassIDs() -
Method in class net.jxta.meter.MonitorFilter
- get ModuleClassIDs of contained subfilters
- getModuleClassIDs() -
Method in class net.jxta.meter.PeerMonitorInfo
- Get Suported Service Monitors as a list of ModuleClassIDs
- getModuleSpecID() -
Method in class net.jxta.protocol.ModuleImplAdvertisement
- Returns the id of the spec that this implements.
- getModuleSpecID() -
Method in class net.jxta.protocol.ModuleSpecAdvertisement
- returns the id of the spec
- getModuleSpecID() -
Method in class net.jxta.protocol.PeerGroupAdvertisement
- Returns the id of the group spec that this uses.
- getModuleSpecID(Service) -
Static method in class net.jxta.util.ServiceUtilities
- Deprecated.
- getMonitorFilter() -
Method in class net.jxta.meter.MonitorEvent
- MonitorFilter provided when the report was requested
- getMonitorReport() -
Method in class net.jxta.meter.MonitorEvent
- Get the corresponding MonitorReport
- getMonitorTypeName(ModuleClassID) -
Static method in class net.jxta.meter.MonitorResources
- Get the name of standard Monitor Type
- getMsgType() -
Method in class net.jxta.protocol.PipeResolverMessage
- Returns whether this message is a query or a response.
- getName() -
Method in class net.jxta.document.Attribute
- Return name of this attribute
- getName() -
Method in interface net.jxta.document.TextElement
- Get the name associated with an element.
- getName() -
Method in interface net.jxta.pipe.InputPipe
- Gets the pipe name
- getName() -
Method in interface net.jxta.pipe.OutputPipe
- Gets the pipe name
- getName() -
Method in class net.jxta.protocol.ModuleClassAdvertisement
- returns the name of the class
- getName() -
Method in class net.jxta.protocol.ModuleSpecAdvertisement
- returns the name of the module spec
- getName() -
Method in class net.jxta.protocol.PeerAdvertisement
- returns the name of the peer.
- getName() -
Method in class net.jxta.protocol.PeerGroupAdvertisement
- returns the name of the group.
- getName() -
Method in class net.jxta.protocol.PipeAdvertisement
- get the symbolic name associated with the pipe
- getName() -
Method in class net.jxta.protocol.RdvAdvertisement
- get the symbolic name associated with the rdv
- getNamespace() -
Method in class net.jxta.endpoint.Message.ElementIterator
- return the namespace of the current element.
- getNextMessageNumber() -
Static method in class net.jxta.endpoint.Message
- Returns the next message number in sequence.
- getObject() -
Method in class net.jxta.util.SimpleSelectable.IdentityReference
-
- getOfferer() -
Method in interface net.jxta.credential.PrivilegedOperation
- Returns the offerer of this operation.
- getOutputPipe() -
Method in class net.jxta.pipe.OutputPipeEvent
- Returns the output associated with the event
- getOutputStream() -
Method in class net.jxta.socket.JxtaSocket
- Returns an output stream for this socket.
- getOutputStreamBufferSize() -
Method in class net.jxta.socket.JxtaSocket
- Returns the OutputStream buffer size
- getOwner() -
Method in class net.jxta.document.Attribute
- Return the
Attributable
which is the owner of this attribute.
- getParam() -
Method in class net.jxta.protocol.ModuleImplAdvertisement
- returns the param element.
- getParam() -
Method in class net.jxta.protocol.ModuleSpecAdvertisement
- returns the param element.
- getParamPriv() -
Method in class net.jxta.protocol.ModuleImplAdvertisement
- Privileged version of
ModuleImplAdvertisement.getParam()
that does not clone the elements.
- getParamPriv() -
Method in class net.jxta.protocol.ModuleSpecAdvertisement
- Privileged version of
ModuleSpecAdvertisement.getParam()
that does not clone the elements.
- getParameter(String) -
Method in class net.jxta.document.MimeMediaType
- Get the value of the first occurance of the specified parameter from the
parameter list.
- getParent() -
Method in interface net.jxta.document.Element
- Get the parent element of this element.
- getParentGroup() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Returns the parent group of this group. Not all groups have parents and
some implementations may not reveal their parents.
- getParentGroup() -
Method in interface net.jxta.peergroup.PeerGroup
- Returns the parent group of this group.
- getParentPeerGroupID() -
Method in class net.jxta.peergroup.PeerGroupID
- Returns the parent peer group id of this peer group id, if any.
- getPayload() -
Method in class net.jxta.protocol.ResolverSrdiMsg
- returns the payload
- getPeer() -
Method in class net.jxta.rendezvous.RendezvousEvent
- Returns peerid
- getPeerAdv() -
Method in class net.jxta.protocol.DiscoveryQueryMsg
- Deprecated. Peer Advertisement is available directly via
DiscoveryQueryMsg.getPeerAdvertisement()
.
- getPeerAdv() -
Method in class net.jxta.protocol.DiscoveryResponseMsg
- Deprecated. access peer advertisement directly
- getPeerAdvertisement() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Return the PeerAdvertisement of the local Peer within this Peer Group.
- getPeerAdvertisement() -
Method in interface net.jxta.peergroup.PeerGroup
- Return the PeerAdvertisement of the local Peer within this Peer Group.
- getPeerAdvertisement() -
Method in class net.jxta.protocol.DiscoveryQueryMsg
- returns the querying peer's advertisement
- getPeerAdvertisement() -
Method in class net.jxta.protocol.DiscoveryResponseMsg
- returns the responding peer's advertisement
- getPeerAdvertisement(Element) -
Static method in class net.jxta.util.AdvertisementUtilities
- Deprecated. These utilities are too specialized for general use.
- getPeerGroupAdvertisement() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Return the PeerGroupAdvertisement for this group.
- getPeerGroupAdvertisement() -
Method in interface net.jxta.peergroup.PeerGroup
- Return the PeerGroupAdvertisement for this group.
- getPeerGroupID() -
Method in class net.jxta.codat.CodatID
- Returns PeerGroupID of the Peer Group to which this Codat ID belongs.
- getPeerGroupID() -
Method in class net.jxta.credential.AuthenticationCredential
- Returns the peerGroupID associated with this credential
AuthenticationCredentials are created in the context of a PeerGroup
though they are generally independant of peergroups.
- getPeerGroupID() -
Method in interface net.jxta.credential.Credential
- Returns the peerGroupID associated with this credential
- getPeerGroupID() -
Method in class net.jxta.meter.MonitorEvent
- PeerGroup of reported event
- getPeerGroupID() -
Method in class net.jxta.peer.PeerID
- Returns PeerGroupID of the Peer Group to which this Peer ID belongs.
- getPeerGroupID() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Return the Peer Group ID of this Peer Group.
- getPeerGroupID() -
Method in interface net.jxta.peergroup.PeerGroup
- Return the Peer Group ID of this Peer Group.
- getPeerGroupID() -
Method in class net.jxta.pipe.PipeID
- Returns PeerGroupID of the Peer Group to which this Peer ID belongs.
- getPeerGroupID() -
Method in class net.jxta.protocol.PeerAdvertisement
- Returns the id of the peergroup this peer advertisement is for.
- getPeerGroupID() -
Method in class net.jxta.protocol.PeerGroupAdvertisement
- Returns the id of the group.
- getPeerGroupName() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Return the Name of this group. This name is not canonical, meaning that
there may be other groups with the same name.
- getPeerGroupName() -
Method in interface net.jxta.peergroup.PeerGroup
- Return the Name of this group.
- getPeerID() -
Method in class net.jxta.credential.AuthenticationCredential
- Returns the peerID associated with this credential
- getPeerID() -
Method in interface net.jxta.credential.Credential
- Returns the peerID associated with this credential
- getPeerID() -
Method in class net.jxta.meter.MonitorEvent
- PeerID of reporting Peer.
- getPeerID() -
Method in class net.jxta.meter.PeerMonitorInfoEvent
- Get PeerID of remote Peer
- getPeerID() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Return the Peer ID by which this Peer is known within this Peer Group.
- getPeerID() -
Method in interface net.jxta.peergroup.PeerGroup
- Return the Peer ID by which this Peer is known within this Peer Group.
- getPeerID() -
Method in class net.jxta.protocol.AccessPointAdvertisement
- Returns the PeerId of the associated access point.
- getPeerID() -
Method in class net.jxta.protocol.PeerAdvertisement
- Returns the id of the peer.
- getPeerID() -
Method in class net.jxta.protocol.RdvAdvertisement
- get the rdv peer id
- getPeerID() -
Method in class net.jxta.protocol.SrdiMessage
- returns the source peerid
- getPeerID() -
Method in class net.jxta.rendezvous.RendezvousEvent
- Returns peerid
- getPeerIDs() -
Method in class net.jxta.protocol.PipeResolverMessage
- Returns a
Set
(possibly empty) containing the peer ids
which should respond to this query.
- getPeerInfoResponseMessage() -
Method in class net.jxta.peer.PeerInfoEvent
- Returns the response associated with the event
- getPeerInfoService() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Return the PeerInfo Service for this Peer Group.
- getPeerInfoService() -
Method in interface net.jxta.peergroup.PeerGroup
- Return the PeerInfo Service for this Peer Group.
- getPeerMonitorInfo() -
Method in class net.jxta.meter.PeerMonitorInfoEvent
- PeerMonitorInfo of remote peer
- getPeerMonitorInfo() -
Method in interface net.jxta.peer.PeerInfoService
- Obtain the monitoring capabilities of the Local Peer.
- getPeerMonitorInfo(PeerID, PeerMonitorInfoListener, long) -
Method in interface net.jxta.peer.PeerInfoService
- Obtain the monitoring capabilities of a Remote Peer.
- getPeerName() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Return the name of the local peer within this group. This name is not
canonical, meaning that there may be other peers with the same name.
- getPeerName() -
Method in interface net.jxta.peergroup.PeerGroup
- Return the name of the local peer within this group.
- getPipeAdv() -
Method in class net.jxta.socket.JxtaServerSocket
- Gets the PipeAdvertisement associated with this JxtaServerSocket object
- getPipeAdv() -
Method in class net.jxta.util.JxtaServerPipe
- Gets the PipeAdvertisement associated with this JxtaServerPipe
- getPipeAdvertisement() -
Method in class net.jxta.protocol.ModuleSpecAdvertisement
- returns the embedded pipe advertisement if any.
- getPipeAdvertisement(Element) -
Static method in class net.jxta.util.AdvertisementUtilities
- Deprecated. These utilities are too specialized for general use.
- getPipeAdvertisement() -
Method in class net.jxta.util.JxtaBiDiPipe
- Returns the Assigned PipeAdvertisement
- getPipeID() -
Method in interface net.jxta.pipe.InputPipe
- Gets the pipe id
- getPipeID() -
Method in interface net.jxta.pipe.OutputPipe
- Gets the pipe id
- getPipeID() -
Method in class net.jxta.pipe.OutputPipeEvent
- Returns The pipe id associated with this output pipe event
- getPipeID() -
Method in class net.jxta.pipe.PipeMsgEvent
- Returns the pipeID associated with the event
- getPipeID() -
Method in class net.jxta.protocol.PipeAdvertisement
- get the pipe id
- getPipeID() -
Method in class net.jxta.protocol.PipeResolverMessage
- Return the id of the pipe which is the subject of this message.
- getPipeService() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Return the Pipe Service for this Peer Group.
- getPipeService() -
Method in interface net.jxta.peergroup.PeerGroup
- Return the Pipe Service for this Peer Group.
- getPipeTimeout() -
Method in class net.jxta.util.JxtaServerPipe
- Gets the Timeout attribute of the JxtaServerPipe
- getPipeType() -
Method in class net.jxta.protocol.PipeResolverMessage
- Return the pipe type of the pipe which is the subject of this message.
- getPrimaryKey() -
Method in class net.jxta.protocol.SrdiMessage
- get the primary key
- getProtocol() -
Method in class net.jxta.protocol.TransportAdvertisement
- returns the protocol supported by this transport
- getProtocolAddress() -
Method in class net.jxta.endpoint.EndpointAddress
- Return a String that contains the protocol address contained
in the EndpointAddress
- getProtocolName() -
Method in class net.jxta.endpoint.EndpointAddress
- Return a String that contains the name of the protocol
contained in the EndpointAddress
- getProtocolName() -
Method in interface net.jxta.endpoint.MessageTransport
- Returns a String containing the name of the protocol used by this
MessageTransport.
- getProvider() -
Method in class net.jxta.protocol.ModuleImplAdvertisement
- returns the provider
- getProxySpecID() -
Method in class net.jxta.protocol.ModuleSpecAdvertisement
- returns the specID of a proxy module.
- getPublicAddress() -
Method in interface net.jxta.endpoint.MessageSender
- Returns the
EndpointAddress
which will be used as the source
address for all messages sent by this message sender.
- getPublicAddresses() -
Method in interface net.jxta.endpoint.MessageReceiver
- Returns an Iterator of all of the
EndpointAddresses
by which this
MessageReceiver is reachable.
- getQuery() -
Method in class net.jxta.protocol.ResolverQueryMsg
- returns the query
- getQueryAttr() -
Method in class net.jxta.protocol.DiscoveryResponseMsg
- returns the attributes used by the query
- getQueryID() -
Method in class net.jxta.discovery.DiscoveryEvent
- Returns the query id associated with the response returned in this event
- getQueryID() -
Method in class net.jxta.peer.PeerInfoEvent
- Returns The query id associated with the response returned in this
event
- getQueryID() -
Method in class net.jxta.pipe.OutputPipeEvent
- Returns The query id associated with the response returned in this event
- getQueryId() -
Method in class net.jxta.protocol.ResolverQueryMsg
- returns queryid value
- getQueryId() -
Method in class net.jxta.protocol.ResolverResponseMsg
- returns queryid value
- getQueryValue() -
Method in class net.jxta.protocol.DiscoveryResponseMsg
- returns the value used by the query
- getReader() -
Method in interface net.jxta.document.TextDocument
- Returns the sequence of characters which represents the content of this
TextDocument
.
- getReader() -
Method in class net.jxta.endpoint.StringMessageElement
- Returns the sequence of characters which represents the content of this
TextDocument
.
- getReader() -
Method in class net.jxta.endpoint.TextDocumentMessageElement
- Returns the sequence of characters which represents the content of this
TextDocument
.
- getReader() -
Method in class net.jxta.endpoint.TextMessageElement
- Returns the sequence of characters which represents the content of this
TextDocument
.
- getReceiveBufferSize() -
Method in class net.jxta.socket.JxtaSocket
-
- getReferenceAllPurposeMonitorServiceImplAdvertisement(boolean) -
Static method in class net.jxta.meter.MonitorResources
-
- getRegisteredModuleClassIDs() -
Static method in class net.jxta.meter.MonitorResources
- Get a list of all registered Service Monitor types
- getRemoteAdvertisements(String, int, String, String, int) -
Method in interface net.jxta.discovery.DiscoveryService
- This method discovers PeerAdvertisements, GroupAdvertisements and other
jxta Advertisements. jxta Advertisements are documents that describe pipes,
services, etc.
- getRemoteAdvertisements(String, int, String, String, int, DiscoveryListener) -
Method in interface net.jxta.discovery.DiscoveryService
- This method discovers PeerAdvertisements, GroupAdvertisements and jxta
Advertisements. jxta Advertisements are documents that describe pipes,
services, etc.
- getRemotePeerAdvertisement() -
Method in class net.jxta.util.JxtaBiDiPipe
- Returns remote PeerAdvertisement
- getRemotePipeAdvertisement() -
Method in class net.jxta.util.JxtaBiDiPipe
- Returns remote PipeAdvertisement
- getRendezVousService() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Return the Rendezvous Service for this Peer Group. This service is
optional and may not be present in all groups.
- getRendezVousService() -
Method in interface net.jxta.peergroup.PeerGroup
- Return the Rendezvous Service for this Peer Group.
- getRendezVousStatus() -
Method in interface net.jxta.rendezvous.RendezVousService
- Returns the current status of this peer within the current group.
- getReportRate() -
Method in class net.jxta.meter.MonitorEvent
- Reporting rate (unless Cumulative) specified when the report was requested
- getReportRates() -
Method in class net.jxta.meter.PeerMonitorInfo
- Get Suported Reporting Rates (in Milliseconds)
- getRequest() -
Method in class net.jxta.protocol.PeerInfoQueryMessage
- returns the request
- getResolverService() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Return the Resolver Service for this Peer Group. This service is
present in every Peer Group.
- getResolverService() -
Method in interface net.jxta.peergroup.PeerGroup
- Return the Resolver Service for this Peer Group.
- getResponse() -
Method in class net.jxta.discovery.DiscoveryEvent
- Returns the response associated with the event
- getResponse() -
Method in class net.jxta.protocol.PeerInfoResponseMessage
- returns the response
- getResponse() -
Method in class net.jxta.protocol.ResolverResponseMsg
- returns the response body for this message.
- getResponseCount() -
Method in class net.jxta.protocol.DiscoveryResponseMsg
- Get the response count
- getResponses() -
Method in class net.jxta.protocol.DiscoveryResponseMsg
- returns the response(s)
- getRoleMap(ID) -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Returns the map of the assigned IDs currently associated with the given
ModuleClassID by this PeerGroup object. The IDs are returned in the order
of their index in the map. So the first ID returned will be identical to
what would be returned by the lookup method for the given ID and index 0.
If there is no explicit such map, this method will return a singleton
containing the given ID as this is the default mapping. There is no
guarantee that any of the returned IDs correspond to an actually
registered service. This method only maps IDs.
- getRoleMap(ID) -
Method in interface net.jxta.peergroup.PeerGroup
- Returns the map of the assigned IDs currently associated with the given
ModuleClassID by this PeerGroup object.
- getRoot() -
Method in interface net.jxta.document.Element
- Get the root Element of the hierarchy this Element belongs to.
- getRouteAdv() -
Method in class net.jxta.protocol.RdvAdvertisement
- Get the Route Adv.
- getRunningTime() -
Method in class net.jxta.meter.PeerMonitorInfo
- Get the running time since the monitor was reset (probably same as upTime)
- getSearchResults() -
Method in class net.jxta.discovery.DiscoveryEvent
- Returns an array of advertisements contained in the DiscoveryResponse
for this event.
- getSendBufferSize() -
Method in class net.jxta.socket.JxtaSocket
-
- getSequentialName() -
Static method in class net.jxta.endpoint.MessageElement
- Returns a string containing a pseudo-random unique string.
- getServiceMetric(ModuleClassID) -
Method in class net.jxta.meter.MonitorReport
- Get the contained service-specific ServiceMetric for the specified ServiceMonitor's classID
- getServiceMetric(ServiceMonitorFilter, long, long, int, long) -
Method in interface net.jxta.meter.ServiceMonitor
- Get ServiceMetrics accrued in during this pulse interval
- getServiceMetricClassName(ModuleImplAdvertisement) -
Static method in class net.jxta.meter.MonitorResources
- get ServiceMetric ClassName from its ImplAdvertisement
- getServiceMetrics() -
Method in class net.jxta.meter.MonitorReport
- Get the contained service-specific ServiceMetrics
- getServiceMonitorFilter(ModuleClassID) -
Method in class net.jxta.meter.MonitorFilter
- Get ServiceMonitorFilter subfilter
- getServiceMonitorFilterClassName(ModuleImplAdvertisement) -
Static method in class net.jxta.meter.MonitorResources
- get ServiceMonitorFilter ClassName from its ImplAdvertisement
- getServiceMonitorFilterCount() -
Method in class net.jxta.meter.MonitorFilter
- Get the number of subfilters
- getServiceMonitorFilters() -
Method in class net.jxta.meter.MonitorFilter
- Get Iterator of all ServiceMonitorFilters subfilters
- getServiceMonitorImplAdvertisement(ModuleClassID, ModuleImplAdvertisement) -
Static method in class net.jxta.meter.MonitorResources
-
- getServiceName() -
Method in class net.jxta.endpoint.EndpointAddress
- Return a String that contains the service name contained in
the EndpointAddress
- getServiceName() -
Method in class net.jxta.protocol.RdvAdvertisement
- get the rdv service name
- getServiceParam(ID) -
Method in class net.jxta.protocol.ConfigParams
- Returns the parameter element that matches the given key from the
service parameters table.
- getServiceParam(ID) -
Method in class net.jxta.protocol.PeerAdvertisement
- Returns the parameter element that matches the given key from the
service parameters table.
- getServiceParam(ID) -
Method in class net.jxta.protocol.PeerGroupAdvertisement
- Returns the parameter element that matches the given key from the
service parameters table.
- getServiceParameter() -
Method in class net.jxta.endpoint.EndpointAddress
- Return a String that contains the service parameter contained
in the EndpointAddress
- getServiceParams() -
Method in class net.jxta.protocol.PeerAdvertisement
- Returns the sets of parameters for all services.
- getServiceParams() -
Method in class net.jxta.protocol.PeerGroupAdvertisement
- Returns the sets of parameters for all services.
- getServiceParamsEntrySet() -
Method in class net.jxta.protocol.ConfigParams
- Returns the set of params held by this object.
- getSignature() -
Method in class net.jxta.endpoint.MessageElement
- Returns the element containing the digest/digital signature for
this element
- getSigner() -
Method in class net.jxta.protocol.SignedAdvertisement
- Returns the credential which signed the advertisement.
- getSoTimeout() -
Method in class net.jxta.socket.JxtaMulticastSocket
- Gets the Timeout attribute of the JxtaMulticastSocket
- getSoTimeout() -
Method in class net.jxta.socket.JxtaServerSocket
- Gets the Timeout attribute of the JxtaServerSocket object, specified in milliseconds.
- getSoTimeout() -
Method in class net.jxta.socket.JxtaSocket
- Gets the Timeout attribute of the JxtaServerSocket object
- getSourcePid() -
Method in class net.jxta.protocol.PeerInfoQueryMessage
- returns the sender's pid
- getSourcePid() -
Method in class net.jxta.protocol.PeerInfoResponseMessage
- returns the sender's pid
- getSourceService() -
Method in class net.jxta.credential.AuthenticationCredential
- Returns the service which generated this credential.
- getSourceService() -
Method in interface net.jxta.credential.Credential
- Returns the service which generated this credential.
- getSourceService() -
Method in interface net.jxta.membership.Authenticator
- Returns the service which generated this authenticator.
- getSpecURI() -
Method in class net.jxta.protocol.ModuleSpecAdvertisement
- returns the uri.
- getSrc() -
Method in class net.jxta.protocol.ResolverQueryMsg
- Returns the source of the query
- getSrcPeerID() -
Method in class net.jxta.protocol.LimitedRangeRdvMessage
- Get the Source PeerID
- getSrcPeerRoute() -
Method in class net.jxta.protocol.ResolverQueryMsg
- Returns the source route of the query
- getSrcPeerRoute() -
Method in class net.jxta.protocol.ResolverResponseMsg
- Get optional route information that may be attached to the
response.
- getSrcRoute() -
Method in class net.jxta.protocol.RouteQueryMsg
- returns the route of the src peer that issued the routequery
- getSrcRoute() -
Method in class net.jxta.protocol.RouteResponseMsg
- returns the route of the src peer that responded
- getSrcRouteAdv() -
Method in class net.jxta.protocol.LimitedRangeRdvMessage
- Get the Source RouteAdvertisement (listening for the response)
- getSrcSvcName() -
Method in class net.jxta.protocol.LimitedRangeRdvMessage
- Get the Source Service Name (listening for the response)
- getSrcSvcParams() -
Method in class net.jxta.protocol.LimitedRangeRdvMessage
- Get the Source Service Param (listening for the response)
- getState() -
Method in class net.jxta.endpoint.AsyncChannelMessenger
- Returns the current state.
- getState() -
Method in interface net.jxta.endpoint.Messenger
- Returns the current state.
- getState() -
Method in class net.jxta.endpoint.MessengerState
-
- getState() -
Method in class net.jxta.endpoint.ThreadedMessenger
-
- getStream() -
Method in interface net.jxta.document.Document
- Returns the stream of bytes which represents the content of this
Document
.
- getStream() -
Method in class net.jxta.endpoint.ByteArrayMessageElement
- Returns the stream of bytes which represents the content of this
Document
.
- getStream() -
Method in class net.jxta.endpoint.InputStreamMessageElement
- Returns the stream of bytes which represents the content of this
Document
.
- getStream() -
Method in class net.jxta.endpoint.StringMessageElement
- Returns the stream of bytes which represents the content of this
Document
.
- getStream() -
Method in class net.jxta.endpoint.TextDocumentMessageElement
- Returns the stream of bytes which represents the content of this
Document
.
- getString(Message, String, String) -
Static method in class net.jxta.util.MessageUtilities
- Deprecated.
- getString(Element) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Get the value of an element as a String
- getString(Element, String, String) -
Static method in class net.jxta.util.documentSerializable.DocumentSerializableUtilities
- Get the value of a Child Element
- getStructuredXmlDocument(String) -
Static method in class net.jxta.util.DocumentUtilities
- Deprecated.
- getStructuredXmlDocument(byte[]) -
Static method in class net.jxta.util.DocumentUtilities
- Deprecated.
- getStructuredXmlDocument(InputStream) -
Static method in class net.jxta.util.DocumentUtilities
- Deprecated.
- getSubject() -
Method in class net.jxta.credential.AuthenticationCredential
- Returns the subject of this credential. The Objects returned must
support
Object.equals(Object)
and Object.hashCode()
.
There is no straightforward mechansim for identifying the subject
unfortunately.
- getSubject() -
Method in interface net.jxta.credential.Credential
- Returns the subject of this credential.
- getSubtype() -
Method in class net.jxta.document.MimeMediaType
- Get the Subtype of the mime-type
- getSupportedFileExtensions() -
Method in interface net.jxta.document.StructuredDocumentFactory.Instantiator
- Returns the mapping of file extension and mime-types for this type
of document.
- getSupportedIDFormat() -
Method in interface net.jxta.id.IDFactory.Instantiator
- Returns the ID Format value associated with this ID Format
- getSupportedMimeTypes() -
Method in interface net.jxta.document.StructuredDocumentFactory.Instantiator
- Returns the MIME Media types supported by this this Document per
IETF RFC 2046 MIME : Media Types.
- getSupportedReportRates() -
Method in interface net.jxta.peer.PeerInfoService
- Asynchronous reporting of Monitored data may be obtained only at rates supported by
the MonitorManager on the peer.
- getTTL() -
Method in class net.jxta.protocol.LimitedRangeRdvMessage
- Get the TTL
- getTTL() -
Method in class net.jxta.protocol.SrdiMessage
- returns the ttl
- getTargetPid() -
Method in class net.jxta.protocol.PeerInfoQueryMessage
- returns the target pid
- getTargetPid() -
Method in class net.jxta.protocol.PeerInfoResponseMessage
- returns the target pid
- getTextValue() -
Method in interface net.jxta.document.TextElement
- Get the value (if any) associated with an element.
- getThreshold() -
Method in class net.jxta.protocol.DiscoveryQueryMsg
- Get the Threshold for number of responses
- getTimeCreated() -
Method in class net.jxta.util.AbstractTimeStampedData
- Deprecated.
- getTimeCreated() -
Method in interface net.jxta.util.TimeStampedData
- Deprecated.
- getTimeSinceTimeZero() -
Method in class net.jxta.util.AbstractTimeStampedData
- Deprecated.
- getTimeZero() -
Static method in class net.jxta.util.AbstractTimeStampedData
- Deprecated.
- getTimestamp() -
Method in class net.jxta.protocol.PeerInfoResponseMessage
- returns the time when this peer was last polled
- getToTime() -
Method in class net.jxta.meter.MonitorReport
- End time that this report is representing
- getTrafficClass() -
Method in class net.jxta.socket.JxtaSocket
-
- getType() -
Method in class net.jxta.document.MimeMediaType
- Get type of the mime-type
- getType() -
Method in class net.jxta.meter.MonitorEvent
- Get the Type of Event (one of the above constants)
- getType() -
Method in class net.jxta.meter.MonitorException
- get Type of event (see constants above)
- getType() -
Method in interface net.jxta.pipe.InputPipe
- Gets the pipe type
- getType() -
Method in interface net.jxta.pipe.OutputPipe
- Gets the pipe type
- getType() -
Method in class net.jxta.protocol.PipeAdvertisement
- get the pipe type
- getType() -
Method in class net.jxta.rendezvous.RendezvousEvent
- Returns the event type
- getURL() -
Method in class net.jxta.id.ID
- Deprecated. URIs are now the prefered way of manipulating IDs
- getUniqueName() -
Static method in class net.jxta.endpoint.MessageElement
- Returns a pseudo-random unique string which can be used as an element
name.
- getUniqueValue() -
Method in class net.jxta.id.ID
- Returns an object containing the unique value of the ID.
- getUnknownModuleClassIDs() -
Method in class net.jxta.meter.MonitorFilter
- Get a list of ModuleClassIDs for subfilters that could not be deserialized because they weren't registered
- getUnknownModuleClassIDs() -
Method in class net.jxta.meter.MonitorReport
- Get iterator of ModuleClassIDs of serviceMetrics for which there weren't registered ServiceMetric classes
- getUptime() -
Method in class net.jxta.protocol.PeerInfoResponseMessage
- returns the number of milliseconds since this peer was started
- getUri() -
Method in class net.jxta.protocol.ModuleImplAdvertisement
- returns the uri; that is a reference to or representation of a package from which
the executable code referenced by the getCode method may be loaded.
- getValidMonitorFilter() -
Method in class net.jxta.meter.MonitorEvent
- The Validated MonitorFilter from the registration or query
- getValue() -
Method in class net.jxta.document.Attribute
- Return value of this attribute
- getValue() -
Method in interface net.jxta.document.Element
- Get the value (if any) associated with this Element.
- getValue() -
Method in class net.jxta.protocol.DiscoveryQueryMsg
- returns the value of Attr
- getVectorEndpointAddresses() -
Method in class net.jxta.protocol.AccessPointAdvertisement
- Returns the vector of endpoint addresses associated with this access
point.
- getVectorHops() -
Method in class net.jxta.protocol.RouteAdvertisement
- returns the list of hops
- getVersion() -
Method in class net.jxta.protocol.ModuleSpecAdvertisement
- returns the specification version number
- getWeakInterface() -
Method in class net.jxta.peergroup.LightWeightPeerGroup
- Returns a weak interface object that represents this
group.
A weak interface object has no life-cycle privileges over
the group that it represents and therefore its users have
no accountability. A weak interface object is safe to
give away but holds no promise of sustained validity.
Whatever code gave away a weak interface object retains
the power of terminating the group object from which it
was obtained, thereby making the weak interface
object invalid.
A weak interface object is immutable; its unref and stopApp
methods do nothing. Its validity is exactly that of the
group or interface object from which it was obtained.
A weak interface object can be obtained from an interface
object, or from a real group object, or from a weak interface
object. In the later case, the object returned may be
the original weak interface object since such objects
are immutable.
Whatever code obtains a weak interface object from a group object
or regular interface object, remains entirely liable for invoking unref
on the initial object before discarding it. Giving away a weak interface
object is not equivalent to transfering ownerhsip of the original.
- getWeakInterface() -
Method in interface net.jxta.peergroup.PeerGroup
- Returns a weak interface object that represents this
group.
- getWindowSize() -
Method in class net.jxta.socket.JxtaSocket
- When in reliable mode, gets the Reliable library window size
- globalRegistry -
Static variable in interface net.jxta.peergroup.PeerGroup
-
- group -
Variable in class net.jxta.socket.JxtaMulticastSocket
-
- group -
Variable in class net.jxta.socket.JxtaServerSocket
-
- group -
Variable in class net.jxta.socket.JxtaSocket
-
- group -
Variable in class net.jxta.util.JxtaBiDiPipe
-
protected boolean handleElement( Element elem ) {
if ( super.handleElement() ) {
// it's been handled.
return true;
}
... handle elements here ...
// we don't know how to handle the element
return false;
}
PipeService
.
InputStream
as the source for the
element data. true
if this messenger is closed and no longer
accepting messages to be sent. The messenger should be discarded.
This is a minimal implementation.
(getState() & USABLE == 0)
instead.
true
if this pipe is closed and no longer
accepting messages to be sent.
Messenger.IDLE
state.
MembershipService.join(Authenticator)
.
true
if the sendMessage
methods of
this messenger are fully synchronous.
Messenger.sendMessageB(net.jxta.endpoint.Message, java.lang.String, java.lang.String)
method is always blocking.
SimpleSelector
will report the change to SimpleSelector.select()
and invoke AbstractSimpleSelectable.notifyChange()
thereby reporting its own change to cascaded selectors. Other implementations may
only invoke AbstractSimpleSelectable.notifyChange()
or may perform more complex tasks.
IDFactory.fromURI( new URI(...) )
. This method was only
provided to overcome problems with registration of URL handlers in
foreign class loader environments (Servlets, Applets, etc.).
IDFactory.fromURI( new URI(String) )
. This
method was only provided to overcome problems with registration of URL
handlers in foreign class loader environments (Servlets, Applets, etc.).
Integer
which details the lineage (history
of cloning) that produced this message.
count
argument.
ModuleImplAdvertisement
. Socket
over JXTA pipes. Advertisement
matching the type
specified by the advertisementType
parameter.
Advertisement
from the provided
InputStream
.
Advertisement
from the provided
Reader
.
Advertisement
matching the type
specified by the root
parameter.
PeerGroup.newGroup(PeerGroupID,Advertisement,String,String)
newGrp = thisGroup.loadModule(gid, impl); newGrp.publishGroup(name, description);or, but only if the implementation advertisement has been published:
newPGAdv = AdvertisementFactory.newAdvertisement( PeerGroupAdvertisement.getAdvertisementType()); newPGAdv.setPeerGroupID(gid); newPGAdv.setModuleSpecID(impl.getModuleSpecID()); newPGAdv.setName(name); newPGAdv.setDescription(description); newGrp = thisGroup.newGroup(newPGAdv);
PeerGroup.loadModule(ID,Advertisement)
or even:
grp = new GroupSubClass();
grp.init(parentGroup, gid, impladv);
then, REMEMBER TO PUBLISH THE GROUP IF IT IS ALL NEW.
Advertisement
matching the type
specified by the advertisementType
parameter.
Advertisement
matching the type
specified by the advertisementType
parameter.
StructuredDocument
matching
the mime-type specified by the mimetype
parameter.
StructuredDocument
matching
the mime-type specified by the mimetype
parameter.
StructuredDocument
matching
the mime-type specified by the mimetype
parameter.
StructuredDocument
matching
the mime-type specified by the mimetype
parameter.
PipeService
.
OutputPipe
resolution events.
OutputPipe
which can
be used to communicate with the remote peer.
PeerInfoService
events.
PipeMsgEvent
events.
Object
values are Object
DEFAULT_LIFETIME
and default expiration time for "others" of DEFAULT_EXPIRATION
Advertisement indexes are shared with a rendezvous peer upon connect,
and subsequent publications are shared at a an implementation specified interval
newGroup()
was called.
Calling this method is only useful if the group is being created
from scratch and the PeerGroup advertisement has not been
created beforehand. In such a case, the group has never been named or
described. Therefore this information has to be supplied here.
If this group has already been previously published, this method does
nothing.
len
bytes of data from this input stream
into an array of bytes.
createOuputputPipe
.
RendezVousService.removePropagateListener(String, String, EndpointListener)
.
MessageElement
in the message.
MessageElement
in the message using the specified
namespace.
mark
method was last called on this input stream.
join()
operations.
String
or InputStream
PeerGroup
services) so that their
startApp()
method may be invoked multiple times.
PeerGroup
services) so that their startApp
method may be invoked multiple times.
startApp()
completed successfully.
Document
which allows the content of a document to be
specified by a hierarchy of elements. StructuredDocument
.
StructuredDocument
to provide accessors appropriate for text
based documents.OutputPipe.send(Message)
call is
made.
sendMessage(msg, null, null)
This is a legacy method. Modern code should prefer the other methods and select messages. If a listener API is preferred, it is possible to use a ListenerAdaptor
object explicitly to have a listener called.
IOException
means that this message is invalid or that this messenger is now in one of the
non Messenger.USABLE
states and may no longer send new messages, and that the message was not sent. The exact state of
the messenger may be obtained from the Messenger.getState()
method.false
indicates that the message was not accepted to be sent. Usually this is due to
local resource limits being reached. If needed, another attempt at sending the message, may be made after waiting for the
congestion to clear (for example by using Messenger.waitState(int, long)
).true
indicates that the message was accepted for sending. It does not imply that
the message will be sent or that the destination will receive the message. There will be no immediate indication of any
errors in sending the message. If this messenger subsequently reaches an Messenger.IDLE
state that is either Messenger.CLOSED
or a Messenger.USABLE
state, then it may be inferred that all outsdanding messages have been processed without this
messenger detecting an error.Message.getMessageProperty(Messenger.class)
will return
an object of class OutgoingMessageEvent
. Changes in a message's set of properties may be tracked by selecting
the message.
sendMessage
:
messenger.sendMessage( (Message) myMessage.clone(), theService, theParam );
There is no guarantee that a message successfully sent will actually be received.
Limitation: using this method along with SimpleSelector.select()
on the same message may occasionaly
cause some errors to not be thrown. Prefer Messenger.sendMessageN(net.jxta.endpoint.Message, java.lang.String, java.lang.String)
when using SimpleSelector.select()
.
This is a legacy method. Modern code should prefer the other methods and select messages. If a listener API is preferred, it is possible to use a ListenerAdaptor
object explicitly to have a listener called.
sendMessage(msg, null, null)
This is a legacy method.
Messenger.sendMessageN(net.jxta.endpoint.Message, java.lang.String, java.lang.String)
to send messages in a non blocking fashion.
Messenger.USABLE
; whichever occurs
first. If a service name and service param are specified, they will replace those specified at construction for the
purpose of sending this message only.
Error Handling:
IOException
means that this message is invalid or that this messenger is now in one of the non Messenger.USABLE
states and may no longer send new messages, and means that the message was not sent. The exact state of the
messenger may be obtained from the Messenger.getState()
method. If no exception is thrown, the message is accepted for
sending and may or may not be fully processed.Message#getMessageProperty(Messenger.class)
will return an
object of class OutgoingMessageEvent
. Changes in a message's set of properties may be tracked by selecting the
message. If an exception was thrown, the message's properties will not be modified
Messenger.IDLE
state that is either Messenger.CLOSED
or a Messenger.USABLE
state, then it may be inferred
that all outsdanding messages have been processed without this messenger detecting an error.Messenger.sendMessageB(net.jxta.endpoint.Message, java.lang.String, java.lang.String)
:
messenger.sendMessageB( (Message) myMessage.clone(), theService, theParam );
There is no guarantee that a message successfully sent will actually be received.
Messenger.USABLE
; whichever occurs
first.
Messenger.sendMessage(Message, String, String)
, except that it does not throw an exception. The invoker
has to retrieve a detailed status from the message if needed.
Error Handling:
false
indicates that the message was not accepted to be sent. This may be due to
local resource limits being reached or to the messenger being in a state that is not Messenger.USABLE
or to the message
being invalid. The exact cause of the failure can be retrieved from the message by using
Message.getMessageProperty(Messenger.class)
. If appropriate,
another attempt at sending the message, may be made after waiting for the congestion to clear (for example by using
Messenger.waitState(int, long)
).true
indicates that the message was accepted for sending. It does not imply that
the message will be sent or that the destination will receive the message. There will be no indication by this method
of any errors in sending the message. If this messenger subsequently reaches an Messenger.IDLE
state that is either Messenger.CLOSED
or a Messenger.USABLE
state, then it may be inferred that all outsdanding messages have been processed without this
messenger detecting an error.Message.getMessageProperty(Messenger.class)
will return an object of class OutgoingMessageEvent
. Changes in a message's set of properties may be tracked by
selecting the message.
Messenger.sendMessageN(net.jxta.endpoint.Message, java.lang.String, java.lang.String)
:
messenger.sendMessageN( (Message) myMessage.clone(), theService, theParam );
There is no guarantee that a message successfully sent will actually be received.
Messenger.sendMessage(Message, String, String)
, except that it does not throw an exception. The invoker
has to retrieve a detailed status from the message if needed.
Error Handling:
false
indicates that the message was not accepted to be sent. This may be due to
local resource limits being reached or to the messenger being in a state that is not Messenger.USABLE
or to the message
being invalid. The exact cause of the failure can be retrieved from the message by using
Message.getMessageProperty(Messenger.class)
. If appropriate,
another attempt at sending the message, may be made after waiting for the congestion to clear (for example by using
Messenger.waitState(int, long)
).true
indicates that the message was accepted for sending. It does not imply that
the message will be sent or that the destination will receive the message. There will be no indication by this method
of any errors in sending the message. If this messenger subsequently reaches an Messenger.IDLE
state that is either Messenger.CLOSED
or a Messenger.USABLE
state, then it may be inferred that all outsdanding messages have been processed without this
messenger detecting an error.Message.getMessageProperty(Messenger.class)
will return an object of class OutgoingMessageEvent
. Changes in a message's set of properties may be tracked by
selecting the message.
Messenger.sendMessageN(net.jxta.endpoint.Message, java.lang.String, java.lang.String)
:
messenger.sendMessageN( (Message) myMessage.clone(), theService, theParam );
There is no guarantee that a message successfully sent will actually be received.
In this case, this method is here out of principle but is not really expected to be invoked.
Document
to the specified stream.
Document
to the specified stream.
This version probably has sub-optimal performance. Sub-classes
should override this implementation.
Document
to the specified stream.
This version probably has sub-optimal performance. Sub-classes
should override this implementation.
Document
to the specified stream.
This version probably has sub-optimal performance.
Document
to the specified stream.
This version probably has sub-optimal performance. Sub-classes
should override this implementation.
Document
to the specified stream.
This version probably has sub-optimal performance. Sub-classes
should override this implementation.
TextDocument
to the specified
Writer.
TextDocument
to the specified
Writer.
This version probably has sub-optimal performance. Sub-classes
should override this implementation if possible.
TextDocument
to the specified
Writer.
This version probably has sub-optimal performance. Sub-classes
should override this implementation if possible.
TextDocument
to the specified
Writer.
This version probably has sub-optimal performance.
n
bytes of data from the
input stream.
startApp()
is completed. That is
also the opportunity to supply arbitrary arguments (mostly to
applications).
If this module is a PeerGroup
service, it may be invoked
several times depending on its return value.
init()
completes and should not assume that startApp()
has been
called or completed.
The Module cannot be forced to comply, but in the future
we might be able to deny it access to anything after some timeout.
Document
for text documents.Element
to provide String
oriented
accessors for instances of StructuredTextDocument
String
representation of this
TextDocument
.
'charset'
parameter of the message element's mimetype, if
any, is used to determine encoding. If the charset specified is
unsupported then the default enconding will be used.
synchronized for caching purposes.
Returns the string representation of this element.
'charset'
parameter of the message element's mimetype, if
any, is used to determine encoding. If the charset specified is
unsupported then the default enconding will be used.
synchronized for caching purposes.
synchronized for caching purposes.
'charset'
parameter of the message element's mimetype, if
any, is used to determine encoding. If the charset specified is
unsupported then the default enconding will be used.
synchronized for caching purposes.
synchronized for caching purposes.
'charset'
parameter of the message element's mimetype, if
any, is used to determine encoding. If the charset specified is
unsupported then the default enconding will be used.
synchronized for caching purposes.
synchronized for caching purposes.
OR
ed together.
This class defines the list of constants that may be used and how these may be combined.
Note that the state can change as soon as this method returns, so any observation is only an indication of the
past. Synchronizing on the object itself has no other effect than interfering with other threads doing the same. Obviously,
certain transitions cannot happen unless a new message is submitted. So unless another thread is using a messenger, it is
safe to assume that a non-saturated messenger will not become saturated spontaneously. Note that messengers returned by
different endpoint service interface objects (what PeerGroup.getEndpointService()
returns) are
different. However a given endpoint interface object will return an existing messenger to the same exact destination if
there is a Messenger.USABLE
one.
With an unshared messenger, one can wait for any change with waitState(~getState(), 0);
.
Note that it is advisable to always OR
the desired states with Messenger.TERMINAL
, unless being blocked passed
the messenger termination is an acceptable behaviour.
Examples:
Ensure that the messenger can take more messages (or is UNUSABLE
): waitState(~SATURATED)
Ensure that all submitted messages have been sent: waitState( TERMINAL | IDLE )
Ensure that the messenger is already resolved and can take more messages: waitState(TERMINAL | (RESOLVED &
~SATURATED) )
This method synchronizes on the lock object supplied at construction.
StructuredTextDocument
which are implemented by XML Documents.
|
JXTA J2SE | ||||||||||
PREV NEXT | FRAMES NO FRAMES |